|Welcome to the Monastery|
Calling Windows "time /t" commandby JFarr (Sexton)
|on Jul 27, 2006 at 14:36 UTC||Need Help??|
JFarr has asked for the
wisdom of the Perl Monks concerning the following question:
Hello Monks, I have a small issues with calling the "time /t" command on the windows platform.
In my script I trying to get the values from "time /t" into a variable, let me preface this with, this works on all of our servers except one or two.
So calling system("time \/t") produces this error on our servers in question:
time: cannot run /t: No such file or directory Command exited with non-zero status 127 0.03user 0.00system 0:00.03elapsed 100%CPU (0avgtext+0avgdata 0maxresident)k 0inputs+0outputs (0major+0minor)pagefaults 0swaps
BUT, if I type this same command from the command line, it works fine.
Has anyone else seen a problem like this? Could it be a permission setting on the server in question? If so, what would I need to look at?
Thanks in advance for any suggestions.