in reply to Re: Re: Re: How was my script ran?
in thread How was my script ran?

Wouldn't it be a bit simpler to pass a caller-id parameter into the script?

perl -s yourscript -C=cgi ..other params...

perl -s yourscript -C=mta ..other params...

perl -s yourscript -C=cli ..other params...