Home » questions » in perl script: How to execute rlogin command i need only syntax please help.?

in perl script: How to execute rlogin command i need only syntax please help.?

2006-08-10 00:06:26, Category: Programming & Design
I want to enter into remote host through perl script but enable to execute rlogin command so how it will be possible through rlogin command.Because when i execute this through [ print(`rlogin $ip_address`);] then program hangs at this place and for exit i have to press control+d.

Answers

  1. anonymous

    On 2006-08-10 00:36:38


    rlogin is an interactive program, so I don't think you can run it that way properly. I think it's logging in and hanging there because it's waiting for more input. I don't know perl, but I think you have the right syntax for rlogin. The only problem is that you need to give it some input to actually get it to do something useful. I checked the man pages for rlogin on my system, and I don't see any reference to running rlogin in batch mode either. So I think you'll have to figure out another way to do what you're doing. What exactly are you trying to do? Maybe I could tell you something more helpful if I knew what it was you were trying to do.