|
Home > Archive > Solaris General > May 2004 > layered ssh calls
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
|
|
|
| I've got a script (script-a) which uses ssh to run a script (script-b)
on another system. When I run script-a from the command line,
everything works fine; but when I run it via AutoSys the ssh process
does not go away on the host system. On the target system, script-b
completes and exits normally and the target system drops the
connection, but the ssh process on the host system doesn't go away.
If that doesn't make sense, I can probably explain it better.
Thanks,
Bub
| |
| aryzhov 2004-05-22, 10:27 pm |
| tempforpostingnews@yahoo.com (Bub) wrote in message news:<c8e11c13.0405190933.638ea2cf@posting.google.com>...
> I've got a script (script-a) which uses ssh to run a script (script-b)
> on another system. When I run script-a from the command line,
> everything works fine; but when I run it via AutoSys the ssh process
> does not go away on the host system. On the target system, script-b
> completes and exits normally and the target system drops the
> connection, but the ssh process on the host system doesn't go away.
>
Try to add -t option to ssh command.
Run "trap" command in script-a to see what signals does Autosys mask out.
Add your own handlers and redirect traps, if needed.
Regards,
Andrei
| |
|
| aryzhov@my-deja.com (aryzhov) wrote in message news:<7ca75749.0405210022.c90db4@posting.google.com>...
> tempforpostingnews@yahoo.com (Bub) wrote in message news:<c8e11c13.0405190933.638ea2cf@posting.google.com>...
>
> Try to add -t option to ssh command.
> Run "trap" command in script-a to see what signals does Autosys mask out.
> Add your own handlers and redirect traps, if needed.
>
> Regards,
> Andrei
Thanks Adrei,
I'll try trapping and see where that leads.
I tried the "-t" right off, but that didn't work; "Pseudo-terminal
will not be allocated because stdin is not a terminal." Apparently
Autosys doesn't allocate a TTY when making it's call, and there's no
"-t" like option for Autosys...
-
John
|
|
|
|
|