Kai Grossjohann wrote:
I am very fond of doing "nohup somecommand & sleep 1; tail -f
nohup.out" to start a background job and then watch its output.  Then
I can stop watching the output and log out and the job continues.

I'm a serious noob so here's a guess:

nohup somecommand & sleep 1; ln -s preferred-file-name nohup.out; tail -f preferred-file-name

seems kludgy and I have no idea what the rest of that line is doing...

but that doesn't actually change the file name... just links to it. hmmm.. can you make a link from nohup.out to the filename you want that redirects nohup? in otherwords if you create the link in advance, won't that force nohup to write to the file you want?

ln -s nohup.out preferred-name

nohup somecommand & sleep 1;  tail -f preferred-name

then the link will stay around and always point to that preferred name?


A




Kai




--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to