Re: dialog - absolute beginner problems
From: Enrique Perez-Terron (enrio_at_online.no)
Date: 10/13/05
- Previous message: Chris F.A. Johnson: "Re: Calculate next business day"
- In reply to: Amelia: "Re: dialog - absolute beginner problems"
- Next in thread: darkknight56: "Re: dialog - absolute beginner problems"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Previous message: Chris F.A. Johnson: "Re: Calculate next business day"
- In reply to: Amelia: "Re: dialog - absolute beginner problems"
- Next in thread: darkknight56: "Re: dialog - absolute beginner problems"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|