Operating System - HP-UX
1834220 Members
2665 Online
110066 Solutions
New Discussion

running a script with the TIMEX command

 
SOLVED
Go to solution
Peter Gillis
Super Advisor

running a script with the TIMEX command

Hi there,

op sys - ux11.00
machine - d220

I have issued the following:
timex maria.test

resulting output follows:
maria.test: No such file or directory

real 0.02
user 0.00
sys 0.01

Question - the job runs fine but why does the first line say 'No such file or directory'?
When I issue ./maria.test there is no similar message.
I dont understand what is happening here - I am trying to check out the processing time of jobs - how can I actually be running this job and it returns to me, saying it doesnt exist?!

Thanks for your help in advance.
Maria
4 REPLIES 4
Michael Tully
Honored Contributor
Solution

Re: running a script with the TIMEX command

Hi Maria,

'timex' is a program on it's own. If you run it in combination with a script, which is what you are doing it will return the information oin how long it took. Now depending on what is in the script, as to whether it displays it's output to the screen or elsewhere.
The reason for the error message is that the script your running is not in your path. That is why ./maria.test worked.

Here is my test with the same result.

# timex bdfit
bdfit: No such file or directory

real 0.00
user 0.00
sys 0.00

When I run it as 'timex ./bdfit' no problem, only the stats are printed.

HTH
Michael
Anyone for a Mutiny ?
Peter Gillis
Super Advisor

Re: running a script with the TIMEX command

Thanks Michael,
It's all so obvious when we stop and think straightforward!
regards,
maria.
Paula J Frazer-Campbell
Honored Contributor

Re: running a script with the TIMEX command

Maria

Remember to asign points.


Paula
If you can spell SysAdmin then you is one - anon
Peter Gillis
Super Advisor

Re: running a script with the TIMEX command

Michael - my apologies for not checking the points I assigned to you, had been registered.
It might be worthwhile for newer users to be aware that after assigning points you must submit and then you can send a reply (if want to). It looks to me that you cant assign points, then send a reply and have both actions registered on the system at the same time.
Anyway, you have your points now and your answer is still very much appreciated

Regards,
Maria.