Re: Time consumed

On Mon, Nov 22, 2010 at 9:35 AM, Kaushal Shriyan
<kaushalshriyan@xxxxxxxxx> wrote:

I have ran the command by hand to scp a 200MB file from a remote
server to a local server.
is there a way to time it, I mean how much time it has consumed for
the scp to complete the task.

How do i incorporate in bash shell script.

Like Ranjan said, when the command completes it outputs the time, you
should be able to use awk[1] to get it if you want to do something
with it later (like output it to a log file). It may be redundant in
this case but there is also the time command which outputs the time
for a command to complete with additonal things like system time (cpu


users mailing list
To unsubscribe or change subscription options: