467,081 Members | 1,143 Online
Bytes | Developer Community
Ask Question

Home New Posts Topics Members FAQ

Post your question to a community of 467,081 developers. It's quick & easy.

help_scrit

please help me out to write a script that will log on from server A to server B, pass the authentication by giving password and then cd to dir i on server B and runs a script stored in dir j on server B.

thanks
Jul 23 '08 #1
  • viewed: 1000
Share:
4 Replies
numberwhun
Expert Mod 2GB
To me, this is worded as if it is homework. It is against this sites policy for you to post your homework with the expectation of an answer.

To get help, you will have to put effort into this by coding it. If you get stuck or get errors, post your code here (enclosed in code tags) and we will help you get it working. But, since this is a learning forum, not a scripting service, we will not write it for you.

Regards,

Moderator
Jul 23 '08 #2
eWish
Expert 512MB
Please give it a shot. That is going to be your only chance for success. Much like the rest of us have had to do. The docs are a great place to start.

--Kevin
Jul 24 '08 #3
not an assignment....restricted environment..can not use ssh..have to go through rlogin..dont know how to provide password..?
Jul 26 '08 #4
numberwhun
Expert Mod 2GB
not an assignment....restricted environment..can not use ssh..have to go through rlogin..dont know how to provide password..?
I don't think that there are any modules for rlogin (I did search), but you can use the Expect module to formulate a response to the prompt. Its a little bit of an entailed module, but it is quite powerful.

Regards,

Jeff
Jul 27 '08 #5

Post your reply

Sign in to post your reply or Sign up for a free account.

By using this site, you agree to our Privacy Policy and Terms of Use.