Unix administration - nohup stdout

This is Interesting: Free IT Magazines  
Home > Archive > Unix administration > August 2004 > nohup stdout





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author nohup stdout
sukhpreet

2004-08-05, 8:49 am

i have an expect script "E" that telnets to a remote machine and runs
a script "A" that in turn runs a script "B". B takes a long time to
run and I wanna run it nohup in case i lose my telnet connection. I'm
happy with nohup redirecting stdout to nohup.out or some file i
specify. but i also want to see the output on the screen when the
script is working. i.e. is there any way to get nohup to display the
output to my screen in addition to logging it to a file?


i'd appreciate the help.

regards,
sukh
Bill Marcum

2004-08-05, 8:49 am

On 4 Aug 2004 06:33:31 -0700, sukhpreet
<sukhpreet76@yahoo.com> wrote:
> i have an expect script "E" that telnets to a remote machine and runs
> a script "A" that in turn runs a script "B". B takes a long time to
> run and I wanna run it nohup in case i lose my telnet connection. I'm
> happy with nohup redirecting stdout to nohup.out or some file i
> specify. but i also want to see the output on the screen when the
> script is working. i.e. is there any way to get nohup to display the
> output to my screen in addition to logging it to a file?
>


nohup whatever | tee nohup.out

--
The truth you speak has no past and no future. It is, and that's all it
needs to be.
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com