Jump to content

Csh Weird Behaviour


kubabuk

Recommended Posts

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...