Beefy Boxes and Bandwidth Generously Provided by pair Networks DiBona
Keep It Simple, Stupid
 
PerlMonks  

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 ?


Comment on Re^2: remsh using perl script
Re^3: remsh using perl script
by roboticus (Canon) on Jan 04, 2012 at 13:21 UTC

    RajNaidu:

    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.

    ...roboticus

    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 ?

        RajNaidu:

        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.

        ...roboticus

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

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (7)
As of 2014-04-17 05:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (440 votes), past polls