FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Fedora User

 
 
LinkBack Thread Tools
 
Old 02-01-2011, 09:12 AM
Adel ESSAFI
 
Default outout format of time command

Hello,
I have* followed the man page of* time commande to put a certain output format.
However, time command does not recognise -f* option.

Could you help please.



[adel@localhost generateInstance]$ time -f "%e" ls

bash: -f: command not found

real*** 0m0.001s
user*** 0m0.000s
sys*** 0m0.000s
[adel@localhost generateInstance]$

--
PhD candidate in Computer Science
Address* * **
3 avenue lamine, cité ezzahra, Sousse 4000

Tunisia
tel: +216 97 246 706 (+33640302046 jusqu'au 15/6)
fax: +216 71 391 166


--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
 
Old 02-01-2011, 09:13 AM
Adel ESSAFI
 
Default outout format of time command

Hello,
I have* followed the man page of* time commande to put a certain output format.
However, time command does not recognise -f* option.

Could you help please.




[adel@localhost generateInstance]$ time -f "%e" ls

bash: -f: command not found

real*** 0m0.001s
user*** 0m0.000s
sys*** 0m0.000s
[adel@localhost generateInstance]$

--
PhD candidate in Computer Science
Address* * **
3 avenue lamine, cité ezzahra, Sousse 4000


Tunisia
tel: +216 97 246 706 (+33640302046 jusqu'au 15/6)
fax: +216 71 391 166




--
PhD candidate in Computer Science
Address* * **
3 avenue lamine, cité ezzahra, Sousse 4000
Tunisia
tel: +216 97 246 706 (+33640302046 jusqu'au 15/6)
fax: +216 71 391 166



--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
 
Old 02-01-2011, 09:23 AM
"T. Horsnell"
 
Default outout format of time command

Try specifying the full pathname for time
/usr/bin/time
otherwise you'll be using bash's builtin

Cheers,
Terry
>
>
> Hello,
> I have followed the man page of time commande to put a certain output
> format.
> However, time command does not recognise -f option.
>
> Could you help please.
>
>
>
> [adel@localhost generateInstance]$ time -f "%e" ls
> bash: -f: command not found
>
> real 0m0.001s
> user 0m0.000s
> sys 0m0.000s
> [adel@localhost generateInstance]$
>
>
> --
> PhD candidate in Computer Science
> Address
> 3 avenue lamine, cité ezzahra, Sousse 4000
> Tunisia
> tel: +216 97 246 706 (+33640302046 jusqu'au 15/6)
> fax: +216 71 391 166
>
>
>
> --
> PhD candidate in Computer Science
> Address
> 3 avenue lamine, cité ezzahra, Sousse 4000
> Tunisia
> tel: +216 97 246 706 (+33640302046 jusqu'au 15/6)
> fax: +216 71 391 166
>

--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
 
Old 02-01-2011, 09:27 AM
Rick Sewill
 
Default outout format of time command

On Tuesday, February 01, 2011 04:13:20 am Adel ESSAFI wrote:
> Hello,
> I have followed the man page of time commande to put a certain output
> format.
> However, time command does not recognise -f option.
>
> Could you help please.
>
>
>
> [adel@localhost generateInstance]$ time -f "%e" ls
> bash: -f: command not found

There are two separate time commands.

One is a bash built-in.
To set the format for this time, please set the environment variable,
TIMEFORMAT. Please do "info bash" and search for TIMEFORMAT.

The other is the time command described by "man time".
To use this time command, please do $(which time) -f "%e" ls
On my system, $(which time) happens to be /usr/bin/time
so I can also do /usr/bin/time -f "%e" ls
--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
 
Old 02-01-2011, 03:05 PM
Robert Nichols
 
Default outout format of time command

On 02/01/2011 04:27 AM, Rick Sewill wrote:
> On Tuesday, February 01, 2011 04:13:20 am Adel ESSAFI wrote:
>> Hello,
>> I have followed the man page of time commande to put a certain output
>> format.
>> However, time command does not recognise -f option.
>>
>> Could you help please.
>>
>>
>>
>> [adel@localhost generateInstance]$ time -f "%e" ls
>> bash: -f: command not found
>
> There are two separate time commands.
>
> One is a bash built-in.
> To set the format for this time, please set the environment variable,
> TIMEFORMAT. Please do "info bash" and search for TIMEFORMAT.
>
> The other is the time command described by "man time".
> To use this time command, please do $(which time) -f "%e" ls
> On my system, $(which time) happens to be /usr/bin/time
> so I can also do /usr/bin/time -f "%e" ls

Quoting a command, even quoting must one character of the command
name, will bypass the shell's builtin version:

$ ime -f %e sleep 2
2.00
$

--
Bob Nichols "NOSPAM" is really part of my email address.
Do NOT delete it.

--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
 

Thread Tools




All times are GMT. The time now is 10:03 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2007 - 2008, www.linux-archive.org