[Wylug-help] Bash Scripting question.
Jim Jackson
jj at comp.leeds.ac.uk
Wed, 26 Feb 2003 13:24:40 +0000 (GMT)
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?
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
>