Remote shell invokation

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
mydsworld
Participant
Posts: 321
Joined: Thu Sep 07, 2006 3:55 am

Remote shell invokation

Post 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).
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Yes, subject to all the caveats associated with rsh from wherever it's invoked.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
narasimha
Charter Member
Charter Member
Posts: 1236
Joined: Fri Oct 22, 2004 8:59 am
Location: Staten Island, NY

Post by narasimha »

Yes you can, look into "remote shell" execution, search for the same here.
Narasimha Kade

Finding answers is simple, all you need to do is come up with the correct questions.
mydsworld
Participant
Posts: 321
Joined: Thu Sep 07, 2006 3:55 am

How to use 'rsh'

Post by mydsworld »

Thanks for the reply.
Can you please let me know how to invoke 'rsh' in a DataStage job.
narasimha
Charter Member
Charter Member
Posts: 1236
Joined: Fri Oct 22, 2004 8:59 am
Location: Staten Island, NY

Post by narasimha »

Similar to how you invoke other shell commands.
Narasimha Kade

Finding answers is simple, all you need to do is come up with the correct questions.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post 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.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
DSguru2B
Charter Member
Charter Member
Posts: 6854
Joined: Wed Feb 09, 2005 3:44 pm
Location: Houston, TX

Post by DSguru2B »

Hereis a nice discussion on rsh.
Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.
Post Reply