Re: Memory: measuring 5 limitations

From: Bart Van der Donck (bart_at_nijlen.com)
Date: 12/11/03


Date: 11 Dec 2003 02:44:38 -0800

James Willmore wrote:

> *If* you have shell access, you *may* be able to use
> 'time "name of script here"'.
> This will give you information about the execution of the script. Not
> Perl, but it will give you more information than what you're getting
> now.

Yeah I have shell access and I can execute the time command.
 
The output of 'time "script.cgi"' is:
script.cgi: command not found

So I played a little around, my best shot was something like this:
'time "perl -e script.cgi"'
But whatever I do, it always says that it can't find the command
between the quotation marks.

However the output format looks great and I believe that it is what I
need:
0.000u 0.000s 0:00.00 0.0% 0+0k 0+0io 0pf+0w
Am I missing something?
 
Regards
Bart



Relevant Pages

  • Re: Most dependable way to run system commands
    ... Eventually I'd like to bring the execution of a few system commands ... specific execution issue (it dealt more with executing Perl code)). ... Unix and many similar systems, the exit status is an integer, with 0 ... variable after running a command via system or backticks. ...
    (perl.beginners)
  • Re: sed/awk, instead of Perl
    ... command anyway (except you incorrectly used non-portable ... Perl for sed-ly stuff. ... started to take off running the sed command. ... average and standard deviation of the execution times. ...
    (freebsd-questions)
  • Re: SIGINT not blocked by system()?
    ... signal the spawned process on its own, Perl doesn't stop it from doing so. ...
    (comp.lang.perl.misc)
  • Re: log output
    ... at the end of the execution, ... > command rather than doing this in Perl? ... > to do this directly in Perl. ... > There's no clear reason to prefer an external program to do this job. ...
    (perl.beginners)
  • Re: ksh silently ignores function if mistakenly not autoloaded
    ... Here's the order of execution. ... This really takes place prior to command ... Shell scripts, with all their power, have one major drawback - they ... In the Korn Shell, there are two separate syntaxes for defining ...
    (comp.unix.shell)