Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?

Re^2: remsh using perl script

by RajNaidu (Novice)
on Jan 04, 2012 at 11:18 UTC ( #946224=note: print w/replies, xml ) Need Help??

in reply to Re: remsh using perl script
in thread remsh using perl script

Even as shell script, I am getting same output as perl. i.e on remote machine commands are not getting executing. Any suggestions to improve the code ?

Replies are listed 'Best First'.
Re^3: remsh using perl script
by roboticus (Chancellor) on Jan 04, 2012 at 13:21 UTC


    If it's doing the same as a shell script, then it's not a perl problem. Solve the problem, and *then* bundle it into a perl script. There are many unix support forums that can help you with that bit.

    Having said that, I'd suggest doing something simple in your remsh script to help you find the problem, such as:

    set >RajNaidu.test.remsh

    Then log into the remote machine and locate the RajNaidu.test.remsh file and check that the directory and environment is what you expect. Then add bits of your script to it and echo your errors to a file to get clues as to what's failing and why.


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

      I tried the above approach did'nt work. Is there any other way I could achieve this ?


        It didn't work? It would be a bit more helpful if you could give more detail than "it doesn't work".

        If you mean that you ran remsh from the command line and it didn't work, then contact your sysadmin to find out why running remsh isn't working for you.

        If you mean that you put the command I gave you into your script and it didn't work, then what happened? Did RajNaidu.test.remsh file get created? If so was it empty? Did an error message show up? Did the remote machine show any failures in its logs? There are many things to check and report on. Do so.


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

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://946224]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (5)
As of 2018-04-26 08:27 GMT
Find Nodes?
    Voting Booth?