crontab is to cron as ??? is to rc.local
The crontab command allows non-priviledged users to schedule commands to be run at a specific time.Is there a similar command that allows them to schedule commands to be run when the machine boots? Perhaps some code that I can insert into rc.local? I was thinking of putting like this (syntax may be slightly wrong; this is just to show the idea) into /etc/rc.d/rc.local:
Code:
cd /home for x in *; do if test -f $x/rc; su $x -c "sh $x/rc" fi done