Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: run in-program shell script under windows using cygwin

by ikegami (Pope)
on Jul 31, 2014 at 14:50 UTC ( #1095744=note: print w/replies, xml ) Need Help??


in reply to run in-program shell script under windows using cygwin

Sounds like you are using a Windows build of Perl, not a cygwin one. While cygwin knows how to execute /old/new2.sh (i.e. by looking for the shebang), Windows doesn't know anything about shebang lines (and wouldn't find /usr even if it did). Windows uses file associations to determine how to execute a non-binary.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1095744]
help
Chatterbox?
[LanX]: Yeah option a doesn't go into history
[LanX]: probably I need to teach the app to restart after C-c Kill
[Corion]: LanX: Maybe have an infinite-loop cmd file? Much easier than trying to manage that from within Perl IMO
[Corion]: Alternatively, relaunch the application from cron (or a Windows cron) every minute
[LanX]: will try infinite loop ...
[Corion]: :START ... goto START
[LanX]: oh .bat you mean?
[LanX]: obscure cult ...
[Corion]: LanX: cmd.exe is just another way to launch Perl
[LanX]: I know its a cult... and I repent it every time

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (13)
As of 2017-03-27 15:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should Pluto Get Its Planethood Back?



    Results (320 votes). Check out past polls.