Desktop productivity for business analysts and programmers

execute shel scripts from EG

Reply
Occasional Contributor LS
Occasional Contributor
Posts: 15

execute shel scripts from EG

Hi,
I am running EG on AIX. From within a "Program" in EG I can run UNIX commands such as
x 'mkdir xxxx' , x "\rm file.txt' , etc..
Is there a way to run a .ksh script the same way I run the commands above?

Thank you
Respected Advisor
Posts: 4,132

Re: execute shel scripts from EG

Yes it is.
Why don't you just try?
Occasional Contributor LS
Occasional Contributor
Posts: 15

Re: execute shel scripts from EG

Hi Patrick,

Actually I have tried it before.
I may be missing something but, here is what I did -->
X 'cd'; (where my customer4.ksh script is)
X 'customer4.ksh'; (intended to trigger the execution of the script)

This is the script -->

#! /usr/bin/ksh
sas -work /sasdata/bicoc_work01 -log ./ -sysin ./procsetinit.sas

From a command line in SSH, the script runs fine.

Thank you for your help,

Luiz
Community Manager
Posts: 2,889

Re: execute shel scripts from EG

SAS Employee
Posts: 25

Re: execute shel scripts from EG

Assuming you're able to use X to submit OS commands from SAS, you should be able to use:

x '/full/path/to/customer4.ksh' ;

without needing to use the cd command at all.
Frequent Contributor
Posts: 139

Re: execute shel scripts from EG

Hello
Generally in EG system shell commands are turned off. Following this thread for details.

http://support.sas.com/forums/message.jspa?messageID=41152#41152
Ask a Question
Discussion stats
  • 5 replies
  • 844 views
  • 0 likes
  • 5 in conversation