Shell Script Parameters (was RE: how to?)
Posted in 1998
Topics: Connectivity: ESQL/C, 4GL & Embedded SQL
To more a file from within 4GL in a ridiculously convoluted way: In the 4GL: run "mymore.sh filename" -----------------START SCRIPT mymore.sh------------------ #!/bin/ksh more $1 -----------------END SCRIPT mymore.sh------------------ $1...$9 refers to the 1st...9th parameters. $* refers to all the commandline parameters $0 refers to the script being run. You can have as many parameters inside the quoted run string as you like. "man sh" will tell you more. Jon Knight Rebus Insurance Systems Ltd, 120 Leman Street, London, E1 8EU Tel: 0171 488 4080 jknight@fusiond.com > ---------- > From: ori96@batelco.com.bh[SMTP:ori96@batelco.com.bh] > Sent: 19 May 1998 06:45 > To: informix-list@iiug.org > Subject: how to? > > > Hallo everybody, > I am writing a 4gl program in which I want to pass a value to a > shell > script and I am not sure how to do it. From the 4gl code I try to use > : > run "myscript" but I want to pass a value from the 4gl to myscript and > then > read it from inside the script. > Regards > Osman >