Focal Point Banner
Community Center Education Summit Technical Support User Groups
Let's Get Social!

Facebook Twitter LinkedIn YouTube
Focal Point    Focal Point Forums  Hop To Forum Categories  iWay Software Product Forum on Focal Point    How to call a unix shell script in the process flow?
Go
New
Search
Notify
Tools
Reply
  
How to call a unix shell script in the process flow?
 Login/Join
 
Member
posted
Hi All,

I need to run a unix shell script at the end of the process flow. Please let me know how to call a unix shell script in a process flow?

Thanks in advance.


WebFOCUS 7.7, iWay Data Migrator, Windows
Excel, PDF, HTML
 
Posts: 12 | Registered: December 27, 2011Reply With QuoteReport This Post
Virtuoso
posted Hide Post
Use a RunCmdAgent

Sorry. Just realized that you are using iDM not iSM.

Two ways. In both cases, you need to create a stored proc:

If you do not need to know the return code then use the exclamation sign "!" to shell to the os:

! ls -al | grep fex

If you need to know the return code from your script, then:

-SET &MYRETURN=SYSTEM(17,'ls -al | grep fex','D3');
-IF &MYRETURN NE 0 THEN do-something;

This message has been edited. Last edited by: dhagen,


"There is no limit to what you can achieve ... if you don’t care who gets the credit." Roger Abbott
 
Posts: 1090 | Location: Toronto, Ontario | Registered: May 26, 2004Reply With QuoteReport This Post
  Powered by Social Strata  
 

Focal Point    Focal Point Forums  Hop To Forum Categories  iWay Software Product Forum on Focal Point    How to call a unix shell script in the process flow?

Copyright © 1996-2018 Information Builders, leaders in enterprise business intelligence.