crontab does not work, but I do not see any trouble with this
Hello.
I have inserted a few entries to the crontab using "sudo crontab -e" and vim editor. My crontab looks like below:
-------
# m h dom mon dow command
5 11 * * * /home/gaali/
~
~
~
-------
db_backup.sh looks like below:
-------
dest="$HOME"
day=$(date '+%y%m%d_%H%M')
name="gaali"
archive_
echo "Backing $name > $dest/$
pg_dump -U postgres -Ft -b $name > $dest/$
echo "... Backup finished"
-------
When I run "sudo /home/gaali/
Does my shell command requiring password cause the crontab failure?
Please help me!!!
Any suggestion would be highly appreciated!
... Orgil
Question information
- Language:
- English Edit question
- Status:
- Answered
- For:
- Ubuntu cron Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
This question was originally filed as bug #694902.
Can you help with this problem?
Provide an answer of your own, or ask Orgil Dashzeveg for more information if necessary.