[CentOS] add time to log file for cron job
Tim Dunphy
bluethundr at gmail.comSat May 24 02:20:10 UTC 2014
- Previous message: [CentOS] Newer version of FfMpeg
- Next message: [CentOS] add time to log file for cron job
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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 at xx.x.xx.xx:/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
- Previous message: [CentOS] Newer version of FfMpeg
- Next message: [CentOS] add time to log file for cron job
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the CentOS mailing list