Here is the shell script:
#!/bin/sh
#$Id: subscreen,v 1.2 1994/08/18 13:44:37 berg Exp $
# $1 contains the mail address of the prospective subscriber
# We return zero if subscription is allowed, and one if not.
case "$1" in
*@openScript.org) exit 1 ;; # Not this one
*@*opn-technologies.com) exit 0 ;; # This one is ok
*@yoursinconfidence.com) exit 0 ;; # Ditto
esac
exit 1 # reject everything else
I want to replace it with an MC based shell script. I think the
environmental variables transfer, but it is returning the result that I want
to check if I am getting right? Should I "return" or sned it to STOUT ie
"put"...
In general if anyone can help with some simple dummy scripts for piping data
between MC, Perl, PHP, and Shell, I think it would be really useful to
anyone on the list just getting into MC based scripting on Linux/OSX.
David
Archives: http://www.mail-archive.com/[email protected]/
Info: http://www.xworlds.com/metacard/mailinglist.htm
Please send bug reports to <[EMAIL PROTECTED]>, not this list.