1826331 Members
3407 Online
109692 Solutions
New Discussion

script question

 
SOLVED
Go to solution
Kent Ostby
Honored Contributor

script question

I have a script that I want to kick off one time from a SHELL then I want to be able to log out of the shell and have the script continue running.

Also, if something happens to the script, a user will need to login to the machine to kick the script back off so I'm looking for the simpliest change here.

Thanks,

Kent Ostby
"Well, actually, she is a rocket scientist" -- Steve Martin in "Roxanne"
4 REPLIES 4
Mark Grant
Honored Contributor

Re: script question

Kent,

Run your script using "nohup". It's the easiest way :)
Never preceed any demonstration with anything more predictive than "watch this"
John Poff
Honored Contributor
Solution

Re: script question

Hi Kent,

Have you tried this?


nohup /sompath/to/my_script &

JP
Pete Randall
Outstanding Contributor

Re: script question

Kent,

Probably nohup would be best, but you could also use an at job.


Pete


Pete
Kent Ostby
Honored Contributor

Re: script question

Thanks all.

Nohup works great and is what I was looking for.

I write and run a lot of scripts but usually out of cron or while I'm logged in.

Never had to look for this solution.

Best regards,

Kent M. Ostby
"Well, actually, she is a rocket scientist" -- Steve Martin in "Roxanne"