[plug] loading programs on startup
Bernard Blackham
bernard at blackham.com.au
Thu Oct 2 19:15:26 WST 2003
On Thu, Oct 02, 2003 at 06:35:49PM +0800, Ryan Smith wrote:
> I've jsut made a program the continually checks the com port status,
> then shuts down the computer when a button is pressed.
> I was wondering is it possibly to load it when the computer boots, and
> do i have to change the code at all to make this happen (attached).
Hi Ryan,
You could put it in the crontab of a user and use the @reboot time
specifier in crontab. Being security paranoid, you could create a
user to run the program as, that could execute "sudo halt" to
shutdown... :) but getting back to the crontab:
@reboot /path/to/your/program
should start it on boot.
Regards,
Bernard.
--
Bernard Blackham
bernard at blackham dot com dot au
_______________________________________________
plug mailing list
plug at plug.linux.org.au
http://mail.plug.linux.org.au/cgi-bin/mailman/listinfo/plug
More information about the plug
mailing list