Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
The rsync command runs when entered in to the command line, so does that tell me its correct?
Because your shell uses $PATH to determine the folders where to look into
There used to be FHS. as these days no one really cares where they store the binaries and config files you better check where the binary really is. Also they do not respect runlevels these days
The / in /rsync is throwing off your cli. It's looking for the rsync executable in the root / and not finding it, so it does not execute anything. In your crontab, remove the / from in front your rsync command, or change it to the full path which is something more like /usr/bin/rsync.
Which should run at 8PM but still no luck. I'm running it from /opt as i assume this is where Optware installs the packages, is there a chance it could be somewhere else?>
# ls -l /opt/bin/rsync /usr/bin/rsync /bin/rsync
ls: /usr/bin/rsync: No such file or directory
ls: /bin/rsync: No such file or directory
-rwxr-xr-x 1 root root 366456 Feb 15 2012 /opt/bin/rsync
How would i view a log file? is this done using an editor or just an output command. I have looked in /tmp but dont see an rsync log file, thats if i'm doing it correctly.
there are two logfiles, and you can view them with your favorite text editor, it is a plain text file.
If they were empty (or even not created) that would mean cron is not trying to execute that line at all, most probably it is still incorrect.
check this page: http://manpages.ubuntu.com/manpages/...n8/cron.8.html
you may try to run cron from command line as: cron -f -L 15 and it will print when it tries to start that rsync. Or print an error message....
There are no log files created, which would mean its still not executing the line i wrote, is there a simple cron job that i can give it to see if its my job or the cron itself?. Cron -f and -L return errors.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.