Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Running a unix script from an SPR

Status
Not open for further replies.

tlohan

Programmer
Sep 14, 2001
19
BE
Hi,

I've created an SPR that selects objects and values from various tables. If these variables exceed certain thresholds I then need to call a script on my unix box and pass these parameters to it. Currently I'm using the SYSTEM command like below:

SYSTEM "/LOCAL/bin/myscript -a "||objectid||" -b 'This is a bit of text' -c .......

Unfortunately I'm outputting a lot of data in this line and am getting Informix complaining that the call to SYSTEM is greater than 255 characters.

Is there any other way around this?
 
Hi!
Why dont't you split this into two systemcalls?

One to write into a file and the second to read from this file into your script.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top