Re: Time Command error in Slink? FIXED!!
Subject: Re: Time Command error in Slink? Date: Mon, Apr 26, 1999 at 02:31:13PM -0600 In reply to:Gary L. Hennigan Quoting Gary L. Hennigan([EMAIL PROTECTED]): Wayne Topa [EMAIL PROTECTED] writes: | I have found a problem when using the time command. From the man page | -o FILE, --output=FILE | -a, --append | | So the command 'time -a -o log makebzImage' should log the time used | to compile the kernel (in this example) to the file 'log'. What is | does instead is : bash: -a: command not found Then reports the time | when the compile completes. Nothing is appended to the log file. time is also a Bash builtin command. To use the utility you're trying to get at specify the entire path, e.g., on a slink system, /usr/bin/time. Doh! :-( That was it alright! Time command works if used with the complete path! Thanks to Gary and Christopher for pointing out, so nicely, that I should pull my head out. Sheesh, sorry about the waste of bandwidth guys. Forest for the trees! -- Just about every computer on the market today runs Unix, except the Mac (and nobody cares about it). -- Bill Joy 6/21/85 ___ Wayne T. Topa [EMAIL PROTECTED]
Re: Time Command error in Slink?
On %M 0, Wayne Topa wrote I have found a problem when using the time command. From the man page -o FILE, --output=FILE -a, --append So the command 'time -a -o log makebzImage' should log the time used to compile the kernel (in this example) to the file 'log'. What is does instead is : bash: -a: command not found Then reports the time when the compile completes. Nothing is appended to the log file. the man page example: The man page example: time -f %E real,%U user,%S sys ls -Fs returns: bash: -f: command not found real0m0.015s user0m0.000s sys 0m0.020s My question is, is this a problem version of bash I have installed, or is the time program slink installs just not working as advertised? You are running the bash built-in command 'time'. Try running /usr/bin/time instead. Watch out for other conflicts between built-ins and real commands: if you run csh on some systems, nohup and /usr/bin/nohup have significantly different behaviour. Good luck, John P. -- [EMAIL PROTECTED] [EMAIL PROTECTED] Oh - I - you know - my job is to fear everything. - Bill Gates in Denmark
Re: Time Command error in Slink?
Wayne Topa [EMAIL PROTECTED] writes: | I have found a problem when using the time command. From the man page | -o FILE, --output=FILE | -a, --append | | So the command 'time -a -o log makebzImage' should log the time used | to compile the kernel (in this example) to the file 'log'. What is | does instead is : bash: -a: command not found Then reports the time | when the compile completes. Nothing is appended to the log file. time is also a Bash builtin command. To use the utility you're trying to get at specify the entire path, e.g., on a slink system, /usr/bin/time. Gary
Re: Time Command error in Slink?
Wayne Topa [EMAIL PROTECTED] writes: I have found a problem when using the time command. From the man page -o FILE, --output=FILE -a, --append So the command 'time -a -o log makebzImage' should log the time used to compile the kernel (in this example) to the file 'log'. What is does instead is : bash: -a: command not found Then reports the time when the compile completes. Nothing is appended to the log file. the man page example: The man page example: time -f %E real,%U user,%S sys ls -Fs returns: bash: -f: command not found real0m0.015s user0m0.000s sys 0m0.020s My question is, is this a problem version of bash I have installed, or is the time program slink installs just not working as advertised? bash -version GNU bash, version 2.01.1(1)-release (i486-pc-linux-gnu) %uname -a Linux mtntop 2.2.6 #21 Thu Apr 22 14:03:47 EDT 1999 i686 unknown Could someone running Potato with bash 2.02.1-1.3, see if the same thing happens there? I'm running potato with bash 2.02.1-1.4 and time 1.7-4. I get the same result you do. I tried substituting --format for -f, and got essentially the same result: bob:vc-p1:bobtime --format %E real,%U user,%S sys ls -Fs bash: --format: command not found real0m0.010s user0m0.000s sys 0m0.000s Bob -- _ |_) _ |_ Robert D. Hilliard[EMAIL PROTECTED] |_) (_) |_) Palm City, FL USAPGP Key ID: A8E40EB9