SoftTree Technologies SoftTree Technologies
Technical Support Forums
RegisterSearchFAQMemberlistUsergroupsLog in
Remote Shell Execution waits for input

 
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite View previous topic
View next topic
Remote Shell Execution waits for input
Author Message
Sotiris Georgiou



Joined: 04 Nov 2004
Posts: 18

Post Remote Shell Execution waits for input Reply with quote

Hi,

I am running a job on Windows
which executes a remote command on a
SCO UNIX machine.

This is done using RSH utility on Windows
as follows:

Set Command, "rsh unixhost -l root TestScript"
RunAndWait Command, "", 0, rcol

The command executes on the SCO host
but the command window on the Windows machine
remains open waiting for input. The command
I run on the SCO machine does not expect
any input.

If I manually press ENTER then the window
closes and the job continues.

I have tried the JAL command RunWithInput
but to no avail.

Does anyone know what the problem is?

Thanks
Sotiris


Mon Nov 29, 2004 4:27 pm View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7969

Post Re: Remote Shell Execution waits for input Reply with quote

Try this

Command, "cmd /C rsh unixhost -l root TestScript"
RunAndWait Command, "", 0, rcol

You can also set the timeout value (third parameter in RunAndWait) to have 24x7 forcibly close this process after certain time.

: Hi,

: I am running a job on Windows
: which executes a remote command on a
: SCO UNIX machine.

: This is done using RSH utility on Windows
: as follows: Set Command, "rsh unixhost -l root TestScript"
: RunAndWait Command, "", 0, rcol

: The command executes on the SCO host
: but the command window on the Windows machine
: remains open waiting for input. The command
: I run on the SCO machine does not expect
: any input.

: If I manually press ENTER then the window
: closes and the job continues.

: I have tried the JAL command RunWithInput
: but to no avail.

: Does anyone know what the problem is?

: Thanks
: Sotiris

Mon Nov 29, 2004 4:45 pm View user's profile Send private message
Sotiris Georgiou



Joined: 04 Nov 2004
Posts: 18

Post Re: Remote Shell Execution waits for input Reply with quote

SysOp,

Thanks.

I solved this problem by doing:

rsh -n .....

However, if the remote command takes
a very long time to complete (ie more
than 5 minutes)rsh times out and the
Windows command prompt shuts down.

Is there a way to entend the timeout for
rsh?

Sotiris

: Try this

: Command, "cmd /C rsh unixhost -l root TestScript"
: RunAndWait Command, "", 0, rcol

: You can also set the timeout value (third parameter in RunAndWait) to have
: 24x7 forcibly close this process after certain time.

Wed Dec 01, 2004 11:50 am View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7969

Post Re: Remote Shell Execution waits for input Reply with quote

You will need to find an alternative utility supporting no timeouts or user-defined timeouts. I think there exist many shareware replacements for RSH. Try searching www.download.com.

Another solution is to run 24x7 RA Server on your Unix system. In your case you can use it as a replacement for RSH service. From 24x7 you will be able to execute any commands with any timeouts, capture remote output (both error and standard) as well as access remote files (both read and write) as if they were your local files.
For more info about 24x7 RA see your 24x7 Automation Suite documentation.

: SysOp,

: Thanks.

: I solved this problem by doing: rsh -n .....

: However, if the remote command takes
: a very long time to complete (ie more
: than 5 minutes)rsh times out and the
: Windows command prompt shuts down.

: Is there a way to entend the timeout for
: rsh?

: Sotiris

Wed Dec 01, 2004 1:17 pm View user's profile Send private message
Sotiris Georgiou



Joined: 04 Nov 2004
Posts: 18

Post Re: Remote Shell Execution waits for input Reply with quote

Thanks SysOp,

I looked at your UNIX agents and I did not
find one for SCO.

Is there one, or can I use an equivalent.

Sotiris

: You will need to find an alternative utility supporting no timeouts or
: user-defined timeouts. I think there exist many shareware replacements for
: RSH. Try searching www.download.com.

: Another solution is to run 24x7 RA Server on your Unix system. In your case
: you can use it as a replacement for RSH service. From 24x7 you will be
: able to execute any commands with any timeouts, capture remote output
: (both error and standard) as well as access remote files (both read and
: write) as if they were your local files.
: For more info about 24x7 RA see your 24x7 Automation Suite documentation.

Thu Dec 02, 2004 3:33 am View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7969

Post Re: Remote Shell Execution waits for input Reply with quote

You can use Universal Java version if you have JDK 1.4

: Thanks SysOp,

: I looked at your UNIX agents and I did not
: find one for SCO.

: Is there one, or can I use an equivalent.

: Sotiris

Thu Dec 02, 2004 11:19 am View user's profile Send private message
Display posts from previous:    
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite All times are GMT - 4 Hours
Page 1 of 1

 
Jump to: 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


 

 

Powered by phpBB © 2001, 2005 phpBB Group
Design by Freestyle XL / Flowers Online.