Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: Net::SSH2 some programs launch but can't get my script to run

by roboticus (Chancellor)
on Oct 17, 2014 at 12:48 UTC ( [id://1104176]=note: print w/replies, xml ) Need Help??


in reply to Net::SSH2 some programs launch but can't get my script to run

Porax:

Windows doesn't know how to run a batch file normally. That's handled by the command shell. So if you change your command to something like cmd /c c:/foo/bar/myScript.bat you'll likely have better luck.

...roboticus

When your only tool is a hammer, all problems look like your thumb.

Replies are listed 'Best First'.
Re^2: Net::SSH2 some programs launch but can't get my script to run
by Porax (Acolyte) on Oct 17, 2014 at 13:04 UTC

    Thanks for the quick reply Roboticus.

    I tried your suggestion but sadly didn't get any better luck with it.

    Porax

      Porax:

      Try adding a line something like this to the beginning of your batch file:

      dir >C:\Users\roboticus\JUNK
      Then see if the JUNK file is actually created. If so, you're not starting your batch file. I originally guessed that you were having trouble starting the batch file, but I'm thinking that you're actually having problems with Net::SSH2. If that's the case, I won't be much help, as I don't use that package (nor any similar ones).

      ...roboticus

      When your only tool is a hammer, all problems look like your thumb.

        Hi and thanks roboticus !

        My batch does run now but there is still no display of the cmd windows printing the output of my script.

        Still open to any idea :)

        Porax

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (2)
As of 2024-04-26 03:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found