procmail
[Top] [All Lists]

Re: Troubles assigning chain of shell pipes to a variable

2005-06-15 20:47:28
* Volker Kuhlmann <list0570(_at_)paradise(_dot_)net(_dot_)nz> [2005-06-15 
02:31]:

If you put the guts into a #!/bin/yourchoice, does it work then?

I'm surprised to find that it does not.  Here is my revised script:

  LIBRARY_DIR=$HOME/pm

  :0 b
  SIGADDY=|$LIBRARY_DIR/sigaddy.sh

[sigaddy.sh]

  #!/bin/sh
  
  tail -15 |\
  grep -i '\b[a-z]\{1,\}(_at_)[a-z]\{1,\}\.[a-z]\{3,\}\b' |\
  sed -e 's/^ *\([a-z1-9]\{1,\}(_at_)[a-z1-9]\{1,\}\.[a-z]\{3,\}\).*/\1/I'

[logfile]

  procmail: Executing "/home/jg/pm/sigaddy.sh"
  procmail: Assigning "SIGADDY="

So it's not my copious piping that blows it.  I unit tested
sigaddy.sh, so it must be the =|.

____________________________________________________________
procmail mailing list   Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

<Prev in Thread] Current Thread [Next in Thread>