Operating System - HP-UX
1753483 Members
4044 Online
108794 Solutions
New Discussion юеВ

How to resolve the background proess issue in HPUX

 
shameemsoft
Frequent Advisor

How to resolve the background proess issue in HPUX

Dear,

Some background process is running in HPUX11.31 server.

But it is killed when the session is closed.

Process should be running even after I close the session.

How to resolve this issue. Kindly help me on this.

Thanks & Regards
Shameem.
7 REPLIES 7
Venkatesh BL
Honored Contributor

Re: How to resolve the background proess issue in HPUX

You could use the 'nohup' command. Check out the man page.
Roopesh Francis_1
Trusted Contributor

Re: How to resolve the background proess issue in HPUX

use
nohup &

Thanks
Hakki Aydin Ucar
Honored Contributor

Re: How to resolve the background proess issue in HPUX

nohup ;
The nohup command executes another command with the hangup and quit signals ignored. Usually a process is attached to a terminal (TTY) or a pseudoterminal (pty). If the user logs out from that terminal, the process also terminates. The nohup command stops process termination in such a case.

Syntax:

# nohup myprog &

Viktor Balogh
Honored Contributor

Re: How to resolve the background proess issue in HPUX

just for completeness: if your session might have some interactivity, it's best to use the screen utility as nohup cannot handle stdin. download the latest screen from the Porting and Archiving Centre, it has a GNU license.

http://hpux.connect.org.uk/hppd/hpux/Sysadmin/screen-4.0.3/
****
Unix operates with beer.
Viktor Balogh
Honored Contributor

Re: How to resolve the background proess issue in HPUX

here is a nice howto for using screen:

http://jmcpherson.org/screen.html
****
Unix operates with beer.
Raj D.
Honored Contributor

Re: How to resolve the background proess issue in HPUX

shameemsoft ,

You can use nohup command to keep the program running , even if you closed that session.

Example:
# nohup myprogram_or_command &

You will see the nohup.out file later and all the stdout informations will be logged there.


Cheers,
Raj.
" If u think u can , If u think u cannot , - You are always Right . "
Torsten.
Acclaimed Contributor

Re: How to resolve the background proess issue in HPUX

If you say **it is** a background process, you should tell a bit more, e.g. a "ps -ef" for this process, how you start it etc. ...

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!