Re: [SLE] rsync log
From: Jerry Feldman (gaf_at_blu.org)
Date: Mon, 1 Dec 2003 15:08:59 -0500 To: firstname.lastname@example.org
-----BEGIN PGP SIGNED MESSAGE-----
On Mon, 01 Dec 2003 11:13:10 -0800
Tom Nielsen <email@example.com> wrote:
> First, kcron is for low-watt bulbs like me that aren't really sure how
> to setup a cron task manually. If you type kcron you should get the
> window pop up...if it's installed.
> Second, I didn't, and still don't, understand what you wanted me to do
> with the > <... thing. Where do you want me to stick it? I mean should
> I put it in the bash script I made (see below)?
> rsync -auvzr --delete /home/tom/Documents/ /mnt/root2/
> What does stdout mean?
Every process in Unix and Linux has 1 standard input from the terminal
(stdin), 1 standard output to the terminal (stdout) and 1 standard error
What this means is the non-error output from a command like rsync prints
on the terminal, and you can redirect it using the right angle bracket
(eg. >). The double right angle bracket means append.
rsync -auvzr --delete /home/tom/Documents/ /mnt/root2/ > mylog
Will direct the output of rsync to the file, mylog, in the current
As I had mentioned earlier, the standard output of a cron job is emailed
to the email address of the owner of the process, which would be tom if
that is the user name you created your cron spec.
So, if you do nothing, the output of your rsync command will be emailed
to your user id. if you want that to go to another email address, set
the mailto variable (using kcron). Select variables, edit/new,
That should cause all your cron output for your account to be redirected
As I mentioned before, kcron is just a GIU way to specify your crontab
file. From the command line, run the "crontab -l" command and you will
see how kcron set up your crontab.
Jerry Feldman <firstname.lastname@example.org>
Boston Linux and Unix user group
http://www.blu.org PGP key id:C5061EA9
PGP Key fingerprint:053C 73EC 3AC1 5C44 3E14 9245 FB00 3ED5 C506 1EA9
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2-rc1-SuSE (GNU/Linux)
-----END PGP SIGNATURE-----
-- Check the headers for your unsubscription address For additional commands send e-mail to email@example.com Also check the archives at http://lists.suse.com Please read the FAQs: firstname.lastname@example.org