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!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Pipe to a program Parameter(s)

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

  1. oscarhc

    oscarhc Registered

    Dec 19, 2007
    Likes Received:
    Trophy Points:

    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/" 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/ param2 param3"

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

    I'll appreciate any help.

    TIA, Oscar.

Share This Page