kubabuk Posted May 3, 2007 Share Posted May 3, 2007 Hi there, Could someone explain me please the following behavior. I am testing the following script which basically logs in to another computer using ssh in cygwin and creates a folder. Everything is fine when I test that directly under cygwin, csh or dos shell. But when I am trying to do that in Houdini using Shell ROP or unix command, the script stops after first line ad wait until I type in correct password. It looks like houdini is able to send only one line at a time. Is that true? How can I overcome this problem? I will really appreciate any suggestion. Thanks! I'm on XP, and thats a script: ssh -l kuba ws-001 thepassword cd temp/test_project/hip mkdir test logout cheers kuba Quote Link to comment Share on other sites More sharing options...
SpencerL Posted May 3, 2007 Share Posted May 3, 2007 I would try piping it. That way it will still be all on one line. So it would look something like this ssh -l kuba ws-001 | thepassword | cd temp/test_project/hip | mkdir test or if that doesnt work, you could do a hack and have 4 shell ROPs, one for each line a code, with a post render script that triggers one shell ROP after another. Quote Link to comment Share on other sites More sharing options...
kubabuk Posted May 4, 2007 Author Share Posted May 4, 2007 I would try piping it. That way it will still be all on one line. So it would look something like this ssh -l kuba ws-001 | thepassword | cd temp/test_project/hip | mkdir test or if that doesnt work, you could do a hack and have 4 shell ROPs, one for each line a code, with a post render script that triggers one shell ROP after another. Thanks, I think the second one will not work because houdini opens separate shell window for each shell ROP. The piping method didn't work as well, it doesn't understand the syntax and prompts me: Command not found. Well I'll keep on searching... cheers kuba Quote Link to comment Share on other sites More sharing options...
snafu Posted May 4, 2007 Share Posted May 4, 2007 Thanks,I think the second one will not work because houdini opens separate shell window for each shell ROP. The piping method didn't work as well, it doesn't understand the syntax and prompts me: Command not found. Well I'll keep on searching... cheers kuba If practical you could create an authorized_keys file in /home/kuba/.ssh on ws-001 for the Houdini workstation and eliminate the need for the password altogether. -K Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.