Reported by @AnsleyManke on 14 Oct 2004 19:10 UTC
Example:
let pid = {spawn:"perl -e 'print getppid,0'"}
The trailing 0 is just an arbitrary character to prevent the last digit of the
PID from getting chomped by Ferret. (It seems Ferret expects the shell output
to contain a trailing newline, so it eats the last character. I can't think of
any way to tack a newline onto the end of the perl output here, because Ferret
chokes on any quotes, backslashes, or semicolons inside this spawn construct.)
Reported by @AnsleyManke on 14 Oct 2004 19:10 UTC Example:
let pid =
{spawn:"perl -e 'print getppid,0'"}
The trailing 0 is just an arbitrary character to prevent the last digit of the PID from getting chomped by Ferret. (It seems Ferret expects the shell output to contain a trailing newline, so it eats the last character. I can't think of any way to tack a newline onto the end of the perl output here, because Ferret chokes on any quotes, backslashes, or semicolons inside this spawn construct.)
Migrated-From: http://dunkel.pmel.noaa.gov/trac/ferret/ticket/1021