Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re^2: Calling Windows "time /t" command

by BrowserUk (Patriarch)
on Jul 27, 2006 at 16:52 UTC ( #564163=note: print w/replies, xml ) Need Help??


in reply to Re: Calling Windows "time /t" command
in thread Calling Windows "time /t" command

As backticks spawn a new shell each time, the simplest solution would be to set the path to empty prior to invoking the (builtin) time command:

path='' & time /t

The change to the environment will only last for the duration of the spawned shell, so the will be no knock on effect for subsequent spawned shells.


Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
Lingua non convalesco, consenesco et abolesco. -- Rule 1 has a caveat! -- Who broke the cabal?
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://564163]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (1)
As of 2023-09-28 20:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?