I've been banging my head against this for hours, and hope someone can help.

I'm calling a shell script using an external action. I cannot seem to get the output of the shell script to return to Witango so it can be evaluated in the resultset. Server debugging always shows the following:
*[External Action]* *[1112]* check_for_mask
*[Query]* *[1113]* /TOU/masks/checkMask2.sh; Parameters: tariffID=430.txt;
*[External Action]* *[1113]* Forking process
*[External Action]* *[1125]* Waiting on the child process
*[External Action]* *[1226]* Error: No child processes
*[External Action]* *[1226]* Waiting done
*[ActionResults]* *[1231]*
*[External Action]* *[1234]* Complete
*[Changed Vars]* *[1234]* request$maskPresent=;



I know that the "430.txt" file is present and readable by Witango, and when I test it on the command line the script returns the name of the file. Permissions are set correctly for Witango to execute the script. I have several other scripts running (although they don't need to return results), and this script is set up identically to the functional ones, so I'm reasonably certain it is being called. The variable maskPresent is being set to @@resultset.


Here is the actual script.

#! /bin/sh
echo `ls | grep $tariffID`

How can I get the results to come back to Witango? Server is OS X (10.3.4) Server running Witango 5.0.1.062 Chimera (Mac OS X)

thanks for any help you can give.

Maggie Pinckard
________________________________________________________________________
TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf

Reply via email to