Re: dialog - absolute beginner problems

From: Enrique Perez-Terron (enrio_at_online.no)
Date: 10/13/05

  • Next message: Chris F.A. Johnson: "Re: Why doesn't this test script with timeout work as I expect?"
    Date: Thu, 13 Oct 2005 19:17:10 +0200
    
    

    On Thu, 13 Oct 2005 10:24:22 +0200, Amelia <peggy.hummel@compaso.de> wrote:

    > Thank you all for your help so far!
    >
    > It nearly works now! The only problem left:
    > The input of $mac - I save in menuitems/config.txt -
    > gets deleted as soon as I start the programm again! :/
    > I don't know how to resolve the problem :(
    >
    >
    > $aps=3
    >
    > mac()
    > {
    > while true
    > do
    > count=1
    > while [ "$count" -le "$aps" ]
    > do
    > dialog --backtitle "" --title "" --inputbox "" 12 40\
    > "$mac" 2> menuitems/mac$count.txt
    > mac=`cat menuitems/mac$count.txt`
    > echo "mac$count=\"$mac\"" >> menuitems/config.txt

    Any chance that you have only one '>' character in your actual script?

    A single '>' means delete the file, and write a new one.
    A double '>>' means append to the existing file, creating it only if necessary.

    > count=`expr $count + 1`
    > rm menuitems/mac?.txt
    > done
    > return
    > done
    > }
    >
    >

    -Enrique


  • Next message: Chris F.A. Johnson: "Re: Why doesn't this test script with timeout work as I expect?"

    Relevant Pages

    • Re: WMI script
      ... If I understand your question you want the script to resolve the machine by ... When resolving a machine name by MAC address I ... > for each IPConfig in IPConfigSet ...
      (microsoft.public.windows.server.general)
    • Re: Why Canšt You Buy a Microsoft Branded PC?
      ... and give tech support down the phone to my parents. ... said Mac. ... problem with the lack of integration between Windows and the PC? ... Some are able to resolve the issue, ...
      (comp.sys.mac.advocacy)
    • Re: How to rearrange text fields in sed?
      ... bugs where the expression didn't resolve to true in corner ... but at first sight it looks like it's an assignment. ... least what the algorithm is. ... newline, append " " otherwise. ...
      (comp.unix.questions)
    • Re: Error: -3253 Connection to the server failed or was dropped
      ... Entourage on my Mac. ... Test your network with tcpflow. ... Script to activate tcpflow: ...
      (microsoft.public.mac.office.entourage)
    • Re: vbs script
      ... current nic card or cards in the computer. ... but i have a little vbs script that we use to print basic info about the computer and then we print it off and paste to the computer. ... RAS Async Adapter mac addresses I just want the macs for the Nic's ...
      (microsoft.public.scripting.vbscript)