Unix Technical Forum

Lack of options with the prog time

This is a discussion on Lack of options with the prog time within the Slackware Linux Support forums, part of the Unix Operating Systems category; --> Anyone know, why the time prog in slack 9.1 will not accept options, not even --help. The file installed ...


Go Back   Unix Technical Forum > Unix Operating Systems > Slackware Linux Support

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-19-2008, 10:45 AM
Kenneth
 
Posts: n/a
Default Lack of options with the prog time

Anyone know, why the time prog in slack 9.1 will not accept options, not
even --help.

The file installed is about 10k and does not work properly. It will time an
event but does not accept any of the usual options.

However, if you use the sources from the cd set and compile from that you
get a 60k fully functioning time prog.

Any one know why the time prog would be intentionally crippled.

ken
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-19-2008, 10:45 AM
Mark Hill
 
Posts: n/a
Default Re: Lack of options with the prog time

On Sun, 18 Apr 2004 17:51:52 GMT,
Kenneth <Kenneth@pickone.anyone> wrote:
> Anyone know, why the time prog in slack 9.1 will not accept options, not
> even --help.


When you run time, are you sure you're running /usr/bin/time and not
bash's time builtin?

/usr/bin/time's output looks like this:
0.00user 0.02system 0:00.01elapsed 125%CPU (0avgtext+0avgdata
0maxresident)k 0inputs+0outputs (175major+25minor)pagefaults 0swaps

bash's time builtin's output looks like this:
real 0m0.023s
user 0m0.010s
sys 0m0.010s

> The file installed is about 10k and does not work properly. It will time an
> event but does not accept any of the usual options.


I can use /usr/bin/time with options without problems here. (Slackware
-current)

> However, if you use the sources from the cd set and compile from that you
> get a 60k fully functioning time prog.


When I compile from sources, I get a time binary that's about 20K. Once
I use strip(1), the binary size goes down to ~10k. The bin.Slackbuild
file also strips the time binary, so perhaps this accounts for the size
difference you're seeing.


--
Mark Hill <usenet@mark.ukfsn.org> (devnull address not read)
GPG KeyID: 4A3B58AC
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-19-2008, 10:45 AM
Kenneth
 
Posts: n/a
Default Re: Lack of options with the prog time

On 2004-04-18, Mark Hill <devnull@mark.ukfsn.org> wrote:
> On Sun, 18 Apr 2004 17:51:52 GMT,
> Kenneth <Kenneth@pickone.anyone> wrote:
>> Anyone know, why the time prog in slack 9.1 will not accept options, not
>> even --help.

>
> When you run time, are you sure you're running /usr/bin/time and not
> bash's time builtin?


That's the problem! I'm calling bash's time not the one in /usr/bin

>
> When I compile from sources, I get a time binary that's about 20K. Once
> I use strip(1), the binary size goes down to ~10k. The bin.Slackbuild
> file also strips the time binary, so perhaps this accounts for the size
> difference you're seeing.


Strip brings my 64k file down to 10k as well.

Thanks, the help it's appreciated.

ken
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

« Hello! | [OT] Irony »

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 07:33 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com