[Date Prev][Date Next][Thread Prev][Thread Next]
[Author Index]
[Date Index]
[Thread Index]
[SQR-USERS Info]
[SQRUG Home Page]
Multiple lines on system call from SQR
- Subject: Multiple lines on system call from SQR
- From: "Terry Cheung." <Terry.Cheung@BMG.CO.UK>
- Date: Fri, 21 May 1999 12:03:02 +0200
Hi,
I am developing in SQR v4 on UNIX
I want to run some UNIX commands from SQR by using system call.
Two questions I hope you can assist:
1) How can I run multiple line unix commands from SQR? I know we can
run single line commands like e.g. let $cmd = 'mkdir newdirectory'
call system $cmd #rc
but when using 'for loop' or 'if then' how is this done?
2) Alternatively I could write an external shell script and then using
call system to execute it, but how do I ensure that the SQR during runtime
can find the shell script(without me hardcoding the path)?
Thanks in advance
Terry Cheung - Bertelsmann mediaSystems
BMG Distribution, Unit 24 Crystal Drive, Warley, West Midlands, B66 1QG,
United Kingdom.
* terry.cheung@bmg.co.uk
* terry.cheung@bertelsmann.de
* Tel: +(44)-121-543-4276
* Fax: +(44)-121-543-4393