echo 'password' | sudo -S
Another option is to modify /etc/sudoers to specify NOPASSWD for certain users. Edit /etc/sudoeres with visudo. Then add the line
username ALL=(ALL) NOPASSWD: ALL
where username is the user to set.
# .---------------- minute (0 - 59) # | .------------- hour (0 - 23) # | | .---------- day of month (1 - 31) # | | | .------- month (1 - 12) OR jan,feb,mar,apr ... # | | | | .---- day of week (0 - 6) (Sunday=0 or 7) OR sun,mon,tue,wed,thu,fri,sat # | | | | | * * * * * command to be executed
Update 2012-08-13: still can't get cron working (Lucid)
This page provided some hints: http://aplawrence.com/Unixart/crontab_not_running.html
/var/log/syslog did not show the cron jobs running
chkconfig --list | grep cron indicated that cron was off:
cron 0:off 1:off 2:off 3:off 4:off 5:off 6:off