• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Unix Help. Running a process after logging off

uCsDNerd

Senior member
Hi everyone. I'm pretty sure such a command exists....
I've got a program that takes FOREVER to run ( by design, not b/c I'm a terrible programmer.. )😉 We'll I'd like to run it overnight if possible but the workstations at school will log me off after a certain amount of time of inactivity and thereby stopping my program. There has to be some command that will run this process in the background even AFTER i've logged off ... Does anyone know what this command is?? Thanks in advance!
 
nohup program &

Will run your program in the background and it will keep running after your shell exits.
 
Using "nohup" is not necessary.

Also, workstations at school may be specifically configured to check for background processes started by students and automatically kill them.
 
Makes the program run with it ignore the HUP (hangup) signal, so you can logout and leave it running. Normally when you exit a shell all it's children get sent a HUP and the default signal handler is to quit the program.
 
Back
Top