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

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

Reply via email to