[Wylug-help] Bash Scripting question.
Thomas, Nicholas
nick.thomas at eldon.co.uk
Wed, 26 Feb 2003 06:39:53 -0700
-----Original Message-----
From: Jim Jackson [mailto:jj@comp.leeds.ac.uk]
Sent: 26 February 2003 13:25
To: Thomas, Nicholas
Cc: Linux User Help (wylug-help@wylug.org.uk)
Subject: Re: [Wylug-help] Bash Scripting question.
> wouldn't it be easier to just write a script that puts the messages in the
log and runs in the
> background. And simply tail -f logfile when you want to see whats
happenning?
Yes, but it isn't as elegant.
> Jim
On Wed, 26 Feb 2003, Thomas, Nicholas wrote:
> This message is in MIME format. Since your mail reader does not
> understand this format, some or all of this message may not be
> legible.
> --
> [ Picked text/plain from multipart/alternative ]
>
> Hi,
>
> I have a bash script to write and it would be nice if it had the
> following
> attributes:
>
> 1) A simple script which throws out text messages to the console when
> running in the foreground, using the echo command. Whilst
> simultaneously sending the same output to a log file.
>
> 2) The script can be sent to the background (Using Ctrl-Z then 'bg' ).
> The log file still gets its message text, but the console no longer
> gets any messages. The script continues to run in the background.
>
> 3) I can resume foreground operation, using 'fg', and the console
> messages start coming out on the console again. I am not worried about
> losing the console messages which were generated while the script was
> in the background because I can review the log file for the complete
> list.
>
> I presume this is possible?
>
> Kind Regards
>
> Nick Thomas
> --
>
> _______________________________________________
> Wylug-help mailing list
> Wylug-help@wylug.org.uk
> http://list.wylug.org.uk/mailman/listinfo/wylug-help
>