Can you launch a unix script inside progress code?

jarrath

New Member
Hi guys,

I'm a complete novice when it comes to progress code so go easy on me.. More of a unix scripter...

Is it possible to launch a .ksh script via progress code? If so can anyone give me an idea of how one would write that?

Also can someone explain what SKIP does.. I'm reviewing some code and I can't figure out what its purpose is...

i.e.

Code:
PUT  UNFORMATTED "prompt " SKIP.
PUT  UNFORMATTED "quote site umask 002 " SKIP.
PUT  UNFORMATTED "lcd " vfrompath SKIP .
PUT  UNFORMATTED "cd  " vtopath SKIP.


Thanks,
Jarrath
 

RealHeavyDude

Well-Known Member
Most likely the code creates a script which is then invoked by the OS-COMMAND ( preferable ) or the UNIX command.

SKIP inserts a line break in the file. Depending on the operating system on which the program is running is CHR(13) + CHR(10) on Windows or only CHR(10) on Unix or Linux.

Heavy Regards, RealHeavyDude.
 

ttobba

New Member
How would you pass mult. parameters to a .sh script??? Some code for example..

Progress Code
--------------
def var v1 as char init "Var1".
def var v2 as char init "Var2".

UNIX(sh script.sh v1 v2) /* ??????? Only echos "v1 v2" ???? */

#script.sh
echo $1 $2



Thanks in advance.
 

ttobba

New Member
SORRY.. scratch that post figured it out.. Well if anyone else new like me and jumps to post stuff before reading:blush:.

UNIX(sh script.sh VALUE(v1) VALUE(v2))
 
Top