Re: how to do something automatically at boot?

2011-12-29 Thread CamaleĆ³n
On Wed, 28 Dec 2011 23:51:57 -0900, Britton Kerin wrote: > If I understand right you make a script like this one: > > rhino:/etc/init.d# cat /etc/init.d/weird-at (...) Wouldn't be easier to schedule a new cron task that is run on every boot (that is, @reboot)? > Is there something I'm missi

how to do something automatically at boot?

2011-12-29 Thread Britton Kerin
If I understand right you make a script like this one: rhino:/etc/init.d# cat /etc/init.d/weird-at #!/bin/sh set -e touch /tmp/g echo 'touch /tmp/greeber' | at now + 3 minutes touch /tmp/fgg exit 0 rhino:/etc/init.d# rhino:/etc/init.d# ls -l weird-at -rwxr-xr-x 1 ro