![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| nohup.out | ramky79 | AIX | 5 | 10-23-2007 03:28 AM |
| nohup - help! | bluemoon1 | UNIX for Dummies Questions & Answers | 9 | 10-11-2007 08:49 PM |
| Help on nohup | bobbyjohnz | UNIX for Advanced & Expert Users | 3 | 10-18-2006 08:56 AM |
| nohup ( no log message) | mike1022 | Shell Programming and Scripting | 1 | 09-16-2006 05:55 PM |
| nohup usage.. | charan81 | UNIX for Dummies Questions & Answers | 2 | 05-21-2006 11:41 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
Nohup
Hi,
Using nohup it sends output automatically to $HOME/nohup.out - how do I direct this output to another named file instead, so I can run several scripts in the background at once, directing their outputs into individual log files? Cheers |
| Forum Sponsor | ||
|
|
|
#2
|
||||
|
||||
|
Check if the user running the nohup command has permissions to write in the pwd.
Quote:
|
|
#3
|
|||
|
|||
|
Sorry... I'm wanting to state a named file to direct it to, so I can run several at once. I don't mind if they end up in $HOME, I just need to change nohup.out to be something I choose, so I can run several at once and then it won't end up all garbled in together.
Ta |
|
#4
|
||||
|
||||
|
I checked the man page of nohup. Here's what it says:
HTML Code:
nohup.out
the output file of the nohup execution if standard
output is a terminal and if the current directory is
writable.
$HOME/nohup.out
the output file of the nohup execution if standard
output is a terminal and if the current directory is
not writable.
Try running the nohup command as: Code:
# nohup command > /path/to/nohup_logfile 2>&1 & |
||||
| Google The UNIX and Linux Forums |
| Thread Tools | |
| Display Modes | |
|
|