Re: time command

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



On Tue, Apr 10, 2007 at 01:34:23PM -0400, Jerry Geis wrote:
> Hi
> 
> I am wanting to time how long it takes a couple commands to run.
> I can do "time command" and it tells me.
> How do I do multple commands at a time.
> I tried:
> time command; command
> no good
> time "command; command"
> no good

If using shell builtin time:
time { cmd1; cmd2; }

or

time ( cmd1; cmd2 )

If using external command:
/usr/bin/time sh -c "cmd1; cmd2"

-- 
lfr
0/0

Attachment: pgpDUplcnH7Bj.pgp
Description: PGP signature

_______________________________________________
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