Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Pipe to a program Parameter(s)

Discussion in 'General Discussion' started by oscarhc, Jan 6, 2008.

  1. oscarhc

    oscarhc Registered

    Joined:
    Dec 19, 2007
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    51
    Hello,

    I've a Perl script that receives a mail message via mail filter with action "Pipe to a program".

    I just simply call the script ".../bin/filter.pl" and think the script gets the message as a STDIN parameter (correct me if I'm wrong).

    Would like to know i it is possible to call the script with extra parameters and how can I handle them inside the script; something like:

    ".../bin/testfilter.pl param2 param3"

    Adding those parameters is valid?
    Message still is param1 or it is lost?

    I'll appreciate any help.

    TIA, Oscar.
     
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice