Joey K Tuttle wrote:
I had a similar experience ...
...
#!/bin/bash
tf=/tmp/fdat$$
cat > $tf
./pfdat $tf "$REMOTE_ADDR" "$HTTP_USER_AGENT" "$$"
that, as you can see, invokes a j #! script named pfdat
In turn, that script reads the /tmp file and processes
it (with an arbitrary 20 megabyte limit on file size).
This seems to work pretty well.
Using cat > in a shell script wrapper is the work-around I had hit on
too. It
seems to get the job done. Once I get it all working I will go back and
rework
mine to use a different filename for each user to eliminate the small
possibility of
two users colliding. (I say small here because I anticipate rather low
traffic).
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm