[Linux-users] time stamp in bash script

2011-05-23 Thread Roger Searle
Hi, I have various bash scripts for backing up to S3 storage, run via s3cmd and cron which kindly sends me a nice email with the output of either s3cmd or echo 'some text' lines in the script. One such script for user emails changes to bob's email folder, does the backup, changes to jane's

Re: [Linux-users] time stamp in bash script

2011-05-23 Thread Steve Holdoway
On Tue, 2011-05-24 at 09:23 +1200, Roger Searle wrote: Hi, I have various bash scripts for backing up to S3 storage, run via s3cmd and cron which kindly sends me a nice email with the output of either s3cmd or echo 'some text' lines in the script. One such script for user emails changes

Re: [Linux-users] time stamp in bash script

2011-05-23 Thread Anatoly Kern
you can run time /backupscript from cron to see elapsed time without manual comparison. On Tue, May 24, 2011 at 9:23 AM, Roger Searle roger.sea...@gmail.com wrote: Hi, I have various bash scripts for backing up to S3 storage, run via s3cmd and cron which kindly sends me a nice email with the

Re: [Linux-users] time stamp in bash script

2011-05-23 Thread C. Falconer
Anatoly Kern wrote, On 05/24/2011 09:53 AM: you can run time /backupscript from cron to see elapsed time without manual comparison. On Tue, May 24, 2011, Roger Searleroger.sea...@gmail.com wrote: I'm interested in knowing how long each user's backing up takes That would work to time

Re: [Linux-users] time stamp in bash script

2011-05-23 Thread Jim Cheetham
On Tue, May 24, 2011 at 9:34 AM, Steve Holdoway st...@greengecko.co.nz wrote: Oldschool... echo Backup starts at: `/bin/date +%H:%M:%S` printf is the POSIX-preferred command, as echo has too many different implementations across different operating systems. Not something that will bother

Re: [Linux-users] time stamp in bash script

2011-05-23 Thread Ross Drummond
On Tue, 24 May 2011, Jim Cheetham and others wrote: Discussion about time taken for a process. You guys are reinventing the wheel. Go to; http://directory.fsf.org/project/time/ Cheers Ross Drummond ___ Linux-users mailing list

Re: [Linux-users] time stamp in bash script

2011-05-23 Thread Ross Drummond
On Tue, 24 May 2011, Ross Drummond wrote: On Tue, 24 May 2011, Jim Cheetham and others wrote: Discussion about time taken for a process. You guys are reinventing the wheel. Go to; http://directory.fsf.org/project/time/ Cheers Ross Drummond

Re: [Linux-users] time stamp in bash script

2011-05-23 Thread C. Falconer
Ross Drummond wrote, On 05/24/2011 11:18 AM: On Tue, 24 May 2011, Jim Cheetham and others wrote: Discussion about time taken for a process. You guys are reinventing the wheel. Go to; http://directory.fsf.org/project/time/ Why yes, yes we are. Sometimes its fun to think how could I do this

Re: [Linux-users] time stamp in bash script

2011-05-23 Thread Nick Rout
On Tue, May 24, 2011 at 12:56 PM, C. Falconer cfalco...@totalteam.co.nz wrote: Ross Drummond wrote, On 05/24/2011 11:18 AM: On Tue, 24 May 2011, Jim Cheetham and others wrote: Discussion about time taken for a process. You guys are reinventing the wheel. Go to;

Re: [Linux-users] time stamp in bash script

2011-05-23 Thread Nick Rout
Back to the original question, s3cmd does provide some stats, like: Done. Uploaded 1383064 bytes in 41.2 seconds, 32.79 kB/s ___ Linux-users mailing list Linux-users@lists.canterbury.ac.nz http://lists.canterbury.ac.nz/mailman/listinfo/linux-users