Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
12-03-2007, 03:40 PM
|
#1
|
|
LQ Newbie
Registered: Aug 2006
Posts: 7
Rep:
|
Shell script in cron.daily ;Where does the log go ?
So I have this rsync script in cron.daily.
The script works, but I am wondering, where does my log go ?
I was not able to find it, is there a problem with the permissions ?
Is there a place where I can check cron logs ?
My script looks something like this:
rsync -hrvzt --delete --stats /home/bob /media/backup >rsync.log
Any ideas ?
I am just curious, I think if I provide a full path for rsync.log it will put it where I want, but if I don't, where will it end ?
Thanks in advance
Last edited by jeepescu; 12-03-2007 at 03:42 PM.
|
|
|
|
12-03-2007, 04:02 PM
|
#2
|
|
Guru
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Debian Squeeze, Fedora 14
Posts: 7,268
Rep:
|
Quote:
Originally Posted by jeepescu
So I have this rsync script in cron.daily.
The script works, but I am wondering, where does my log go ?
I was not able to find it, is there a problem with the permissions ?
Is there a place where I can check cron logs ?
My script looks something like this:
rsync -hrvzt --delete --stats /home/bob /media/backup >rsync.log
Any ideas ?
I am just curious, I think if I provide a full path for rsync.log it will put it where I want, but if I don't, where will it end ?
Thanks in advance
|
I am not sure but I think that it might be the HOME directory of the user who made the cron entry. I suggest that you use the find command to see if you can find any stray rsync.log commands:
find / -iname "*rsync.log*" | less
--------------------------
Steve Stites
|
|
|
|
12-03-2007, 06:07 PM
|
#3
|
|
Senior Member
Registered: Aug 2007
Location: South Carolina, U.S.A.
Distribution: Ubuntu, Fedora Core, Red Hat, SUSE, Gentoo, DSL, coLinux, uClinux
Posts: 1,300
Rep: 
|
Quote:
Originally Posted by jeepescu
I think if I provide a full path for rsync.log it will put it where I want, but if I don't, where will it end?
|
You should use a full path for your log. Put it in "/var/log" if you want to be "standard".
If you don't provide a full path, your "rsync.log" file will go in the working directory of the cron job. This is probably in "/etc/init.d", since that is where the script to start the cron daemon is. The only exception to this would be if cron changed directory after starting.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 02:23 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|