Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Termination Running Program [Unix Admin] help ...

Status
Not open for further replies.

hendnov

Technical User
Feb 27, 2006
73
AU
Hi guys,

Here's another question as I'm dealing with different situation all the time.

I was running my production program which meant to be around 17 hrs, and when it reached half way through or couples of hours (not sure), it stopped/ has been cut off.

And I asked to my senior, he said there's differentiation about our firewall, so if there's no command input for couples of hours, the firewall is gonna cut off all running program including back end query!!!

So, the solution is temporarily using nohup in front of the command and long term solution using 'corn schedule'.

and my question is why using nohup or 'corn schedule' can stop firewall to cut it off ?

Any experience from you guys ? or input about this knowledge will be much appreciated.

THX
 
Hi,

nohup tells the os that the command you started this way should ignore hangup signals, which are sent when you log off or lose connection.
Your senior said cron not corn I guess. It's a scheduling mechanism that let's you start programs without human interaction.
Another possibility would be the screen command (built in in some linux distros, freeware for some other *nix flavours).

Stefan
 
Hi Stefan,

Thanks for your explanation,

Yeah you're right about cron should be it, I just misstyped ;p
sorry.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top