|
|||||||
| Forums | Search Forums | Register | Forum Rules | Man Pages | Albums | FAQ | Members | Calendar | 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 Tools | Search this Thread | Display Modes |
|
#1
|
||||
|
||||
|
Nohup not returns to the prompt
Hi i have a script and i ma running that via nohup and &. I am expecting that to return to the user prompt immediately. But it's not returning and returns only after i press ctrl+c. i am invoking the script as follow as : Code:
nohup ./script args & Code:
$ nohup: appending output to `nohup.out' How to make that to return it to the user prompt immediately rather than displaying the above message and waiting? Thanks |
| Sponsored Links | ||
|
|
#3
|
||||
|
||||
|
It's working. But what makes the difference and how it works?
Thanks, |
|
#4
|
|||
|
|||
|
The only difference is redirecting the message to the text file. Otherwise they act the same.
I think it is actually returning control to your prompt, especially since you put & after it, but it prints (once) over your prompt before it does, causing confusion. |
| Sponsored Links | |
|
|
#5
|
|||
|
|||
|
Quote:
Quote:
That informational message is written by nohup to stderr only when stdout is a terminal, forcing it to choose a new destination for stdout (and possibly stderr, if it to is a terminal). Regards, Alister |
| Sponsored Links | ||
|
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Calculation returns no value | Daniel Gate | Shell Programming and Scripting | 3 | 07-21-2011 02:14 PM |
| Grep returns nothing | DallasT | Shell Programming and Scripting | 16 | 04-29-2010 09:34 AM |
| Grep without returns... | mrwatkin | UNIX for Dummies Questions & Answers | 1 | 07-24-2009 01:22 PM |
| longjmp never returns | axes | Programming | 2 | 09-10-2006 08:22 PM |
| script returns prompt | kburrows | UNIX for Dummies Questions & Answers | 3 | 10-06-2003 10:12 AM |
|
|