ID:160933
 
I know under *nix one can set up a cron script to check at a given interval if a process is running and, if not, start it. However, I am *nix illiterate and don't know how to do this. IIRC crontab -e allows you to setup cron scripts. I have no idea how you would check to see if the DD process is running and start it if not.

Also, every time I want to run a project, I have to type chmod +x /byond/bin/Dream*
export LD_LIBRARY_PATH=/byond/bin

and then run DD with the project. Is there an easier way to just put all of this into a script or batch file or something to simplify it?
I've read more crap about Linux in the last few days... My head hurts. :P I'm pretty much Linux illiterate as well, but I found a few books and such online I've been reading.

For the library issue, look in your /home/jmurph folder, or whatever your home folder is called, for a file named .bash_profile . Open that file and add the line
export LD_LIBRARY_PATH=/byond/bin
to it. Than, each time you log in, the library path will be set up for you.

I've no idea why you are having to change permissions each time you log in. They shouldn't change back I don't believe.

Are you having problems with the game dying, or is it more of an issue with wanting the game to start when you restart your slice?
Jmurph wrote:
I know under *nix one can set up a cron script to check at a given interval if a process is running and, if not, start it. However, I am *nix illiterate and don't know how to do this. IIRC crontab -e allows you to setup cron scripts. I have no idea how you would check to see if the DD process is running and start it if not.

Cron itself while it can run macros to the command line can't check to see if a process is already running. However you can have whatever file it launches check to see if the process is running and react accordingly

Also, every time I want to run a project, I have to type chmod +x /byond/bin/Dream*
export LD_LIBRARY_PATH=/byond/bin

While this may sound strange try doing it from ftp if this is not your server as it may be a permission issue that's causing it to reset, other than that I'd google for shmod not permanantly changing file permissions in google and add in your flavor of *nix

and then run DD with the project. Is there an easier way to just put all of this into a script or batch file or something to simplify it?

Yes this can be done. the easiest way would probably be a shell script in this scenario due to the parameters being passed back into the shell but you can use almost any language or a batch file to do it then setup the cronjob to run the file you need.

If you need more help than that you're going to have to hit a *nix board for detailed instructions. Sorry but while I know my way around most flavors of *nix I find it really hard to explain