B
BobW
I need to run a simple command whenever a server is rebooted. I don't want
it to run when someone logs in, nor do I want it to require someone to log
in for it to run. Basically I need to run the command "TYPE MYFILE >
MYFILE" which creates a zero byte file that I then use as a "flag" that the
server has been rebooted. After I've done what I need to, this flag is then
deleted until the next time the server gets rebooted.
Obviously, since this is on a server, security is a concern. Don't want
someone "unauthorized" to be able to get to my command and change it.
Thanks in advance.
it to run when someone logs in, nor do I want it to require someone to log
in for it to run. Basically I need to run the command "TYPE MYFILE >
MYFILE" which creates a zero byte file that I then use as a "flag" that the
server has been rebooted. After I've done what I need to, this flag is then
deleted until the next time the server gets rebooted.
Obviously, since this is on a server, security is a concern. Don't want
someone "unauthorized" to be able to get to my command and change it.
Thanks in advance.