Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris

Re^4: Can't write files (even redirected from shell)

by halley (Prior)
on Jan 14, 2008 at 20:20 UTC ( #662371=note: print w/replies, xml ) Need Help??

in reply to Re^3: Can't write files (even redirected from shell)
in thread Can't write files (even redirected from shell)

This is a nice boilerplate use of perl -x to make this into a polyglot batch file. I especially liked the following batch line:
if errorlevel 1 goto script_failed_so_exit_with_non_zero_val 2>nul

[ e d @ h a l l e y . c c ]

Replies are listed 'Best First'.
Re^5: Can't write files (even redirected from shell)
by ikegami (Pope) on Jan 15, 2008 at 00:49 UTC

    The batch file was created by using pl2bat on the Perl script.

    I have personally used cmd /c exit 1 to set the errorcode in the past.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://662371]
[Discipulus]: ahi ahi ahi!!
[Lady_Aleena]: paco is a little over 2 years before my time.
[Discipulus]: you can try tachyon's iterative approach Re: Win32 Recursive Directory Listing
[Lady_Aleena]: I'm on Linux/
[beech]: isn't 2 year about standard recovery time for that kind of surgery?
[Discipulus]: if you hate FIle::Find
[Lady_Aleena]: I don't hate it, it just drives me crazy.
[Discipulus]: LA the solution is portable to whatever

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (10)
As of 2017-04-23 20:42 GMT
Find Nodes?
    Voting Booth?
    I'm a fool:

    Results (432 votes). Check out past polls.