On Mon, 2003-01-27 at 17:10, surinder makkar wrote:
> HI List,
> 
> I am running a command in background on Unix(Solaris)
> by suffixing it with & and in order for this command
> to run uniterrupted, I am prefixing it with nohup. I
> want the pid returned by it to be trapped in some
> file. The command is something like this:--
> 
> $ nohup rmiregistry& > abc.out
> 
  Try 
    $ nohup rmiregistry > abc.out &

> The problem is that it returns the pid on the console
> but does not redirect it to the file. I have tried
> this command in many different styles eg:--
> 
> $ nohup rmiregistry& 2>abc.out
> $ nohup rmiregistry& 1>abc.out
> $ nohup rmiregistry& 0>abc.out
> 
> and some other stupid combinations but nothing seems
> to be working
> 
> Suggest me a solution
> 
> No PID is coming in the nohup as well. Infact even if
> i try the command without nohup option this way:--
> 
> $ rmiregistry& > abc.out
> 
> still there is no output in the file. This is probably
> because the PID returned is not the output of the
> command, thats why. Please suggest a solution
> 
> Thanks in advance
> 
> __________________________________________________
> Do you Yahoo!?
> Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
> http://mailplus.yahoo.com
> 
>           ================================================
> To unsubscribe, send email to [EMAIL PROTECTED] with unsubscribe in subject 
>header. Check archives at http://www.mail-archive.com/ilugd%40wpaa.org
> 



**************************Disclaimer************************************

Information contained in this E-MAIL being proprietary to Wipro Limited is 
'privileged' and 'confidential' and intended for use only by the individual
 or entity to which it is addressed. You are notified that any use, copying 
or dissemination of the information contained in the E-MAIL in any manner 
whatsoever is strictly prohibited.

***************************************************************************

Reply via email to