Hi everyone, I have one question:
I would like to execute a shell script using crond per five minutes. my crontab file is like this
*/5 * * * * /root/cron_shell.sh > /dev/null
#
shell script is like this
cron_shell.sh
#!/bin/bash
date > /root/share/test
cat /root/share/test
/usr/bin/rsync -aze ssh --delete /root/share
uname@xxx.xxx.xxx.xxx:/home/uname/
I got correct result for file test(for every five minutes, it is updated), but rsync could not be executed. However, I execute cron_shell.sh manually, it is OK. Thank you all for reading this question.