How can I write a script that will run a program ( ~/folding/FAH502 ) everytime the server boots up. I know that cronjobs can run things at a certain time, but my server isnt important enough to warrant purchasing a UPS so when we have a powercut i need to run around and restart all my running apps. Is there a way I can put these in a script that can be run on system boot? Ideally I would like a screen session to be opened first, and then the program in question ran. That way I can manage the progress etc remotely without needing local access to the machine.