add time to log file for cron job

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



Hey all,

I'm trying to figure out a way to insert a timestamp into a log file I'm
creating for a cron job I'm setting up:

/usr/bin/rsync -v --min-size=1 -rlpgo -O --inplace /home/myuser/Get*
root@xxxxxxxxxx:/mnt/bravotv/media/compass  2>&1 >& /tmp/rsync_user.log

I've googled this but all I could find are tips on how to add the time and
date to the name of the log file itself, not to the contents of the log.


Any tips or pointers would be great.

Thanks
Tim

-- 
GPG me!!

gpg --keyserver pool.sks-keyservers.net --recv-keys F186197B
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos




[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux