Page 1 of 1

Remote shell invokation

Posted: Wed Jan 31, 2007 12:05 am
by mydsworld
Please let me know whether I can invoke a remote shell (or a Java program) from a DataStage job.For example,I have my DS server in system A and I need to invoke a process in system B (remote).

Posted: Wed Jan 31, 2007 12:12 am
by ray.wurlod
Yes, subject to all the caveats associated with rsh from wherever it's invoked.

Posted: Wed Jan 31, 2007 12:13 am
by narasimha
Yes you can, look into "remote shell" execution, search for the same here.

How to use 'rsh'

Posted: Wed Jan 31, 2007 12:24 am
by mydsworld
Thanks for the reply.
Can you please let me know how to invoke 'rsh' in a DataStage job.

Posted: Wed Jan 31, 2007 12:59 am
by narasimha
Similar to how you invoke other shell commands.

Posted: Wed Jan 31, 2007 12:59 am
by ray.wurlod
From a before-job or after-job subroutine by using ExecSH or ExecSHSilent as the routine.

From an Execute Command activity in a job sequence.

Depending upon what the remote shell has to do, from a Wrapped stage in a parallel job, or maybe an External Source, External Target or External Filter stage.

Without knowing what the remote shell does, and in particular whether you want to process rows with it, it's very difficult to advise.

Posted: Wed Jan 31, 2007 8:24 am
by DSguru2B
Hereis a nice discussion on rsh.