1834165 Members
2246 Online
110064 Solutions
New Discussion

Run script as a deamon

 
huongbuixuan
Advisor

Run script as a deamon

Hi all
How can I make a script run as a deamon in HP-UX (do not use cron deamon)
Viet Nam
9 REPLIES 9
Khalid A. Al-Tayaran
Valued Contributor

Re: Run script as a deamon


Hi,
I think you can modify the "/etc/inittab" file to include your script at system start-up or reboot. When done type init q to force the new changes..... but I did not try this solution yet...

Michael Tully
Honored Contributor

Re: Run script as a deamon

Patrick Chim
Trusted Contributor

Re: Run script as a deamon

Hi,

Do you mean just running your job in background ? If yes, just try nohup

i.e. nohup &1 &

The job will be submitted to the background even if you logout that session and all the stdout and stderr will be directed to nohup.out !

Regards,
Patrick
huongbuixuan
Advisor

Re: Run script as a deamon

Thank for all reply, now I can do it.
Viet Nam
KapilRaj
Honored Contributor

Re: Run script as a deamon

why dont you assign some points to them , if their reply hv solved your problem.....
Nothing is impossible
huongbuixuan
Advisor

Re: Run script as a deamon

I'm sorry, because it's the first time I have writen a message, so I don't know how to use it.
Viet Nam
Animesh Chakraborty
Honored Contributor

Re: Run script as a deamon

Just click "Assign Points"
No point for this :)
Did you take a backup?
huongbuixuan
Advisor

Re: Run script as a deamon

But in Assign Points has many number, and I don't know what it's mean.
Viet Nam
Ricardo Bassoi
Regular Advisor

Re: Run script as a deamon

Hi,

Asigning points:

0 - It really didn??t help nothing !!!
1 - It didn??t help but it was funny !
2,3,4 - It didn??t help but it was interesting !
5 - It helps a little to find the problem but not the answer
6,7 - It gaves me a way how to solve the problem
8,9 - It solves the problem and I??m happy
10 - It solves the problem and gives the way to became an Olympic or Pharao.

Regards,

If you never try, never will work