Web Server forum
Back To The Forum Home!Search!Private Messaging System

This is Interesting: Free IT Magazines Now Free shipping to   
Web Server Talk Web Server Talk > Unix and Linux reviews > Sun Solaris support > Solaris General > layered ssh calls




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    layered ssh calls  
Bub


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
05-19-04 10:40 PM

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





[ Post a follow-up to this message ]



    Re: layered ssh calls  
aryzhov


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
05-23-04 03:27 AM

tempforpostingnews@yahoo.com (Bub) wrote in message news:<c8e11c13.0405190933.638ea2cf@posti
ng.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





[ Post a follow-up to this message ]



    Re: layered ssh calls  
Bub


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
05-24-04 09:32 PM

aryzhov@my-deja.com (aryzhov) wrote in message news:<7ca75749.0405210022.c90db4@posting.goog
le.com>...
> tempforpostingnews@yahoo.com (Bub) wrote in message news:<c8e11c13.0405190
933.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





[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 10:48 PM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 

Back To The Top
Home | Usercp | Faq | Register