Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

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

by Laurent_R (Canon)
on Jul 30, 2014 at 17:56 UTC ( [id://1095639]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $ cat hello.sh
    #!/usr/bin/bash
    
    echo "hello world!"
    
  2. or download this
    $ perl -e '$command = "./hello.sh"; $out = `$command`; print $out, "\n
    +";'
    
  3. or download this
    $ perl -e '$command = "./hello.sh"; $out = `bash $command`; print $out
    +, "\n";'
    hello world!
    
  4. or download this
    $ perl -e '$command = "bash ./hello.sh"; $out = `$command`; print $out
    +, "\n";'
    hello world!
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (6)
As of 2024-04-23 07:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found