procmail
[Top] [All Lists]

Re: Weird problem with shell execution

2008-03-26 09:43:36
Hello Bart,

Am 2008-03-22 14:19:57, schrieb Bart Schaefer:
You might be able to work around that by doing this:

LENGTH=`echo ${#NUMBER} ; :`

The semicolon will tell procmail that it can't execute the command

"semicolon" or "colon"?

directly and must instead spawn a shell, which may bypass its attempt
to do the variable substitution internally.

For one reboot with preceding HARDRESET I tried this out, from a XTerm
and killed my CPU 0 with en exception fault.

I was not aware, that this could happen by an ordinary user.
Yeah, I have never killed my babies my own in the last 9 years.

If that doesn't work, you'll have to do something like

:0
* 1^1 NUMBER ?? .
{ LENGTH=$= }

Unfortunatly I need in a script like:

STRG="`while [ ${#STRG} -le ${TDTP_SERNO_MAX} ] ; 
       do STRG=\"${STRG} \" ; 
       done ;
       echo \"${STRG}\" ; :`"

Linebraak added by me.

I have done this since I am not familar with "printf" which maybe could
do the trick easier...  But AFAIK can "printf" not add spaces.

Ideas?

Thanks, Greetings and nice Day
    Michelle Konzack
    Systemadministrator
    24V Electronic Engineer
    Tamay Dogan Network
    Debian GNU/Linux Consultant


-- 
Linux-User #280138 with the Linux Counter, http://counter.li.org/
##################### Debian GNU/Linux Consultant #####################
Michelle Konzack   Apt. 917                  ICQ #328449886
+49/177/9351947    50, rue de Soultz         MSN LinuxMichi
+33/6/61925193     67100 Strasbourg/France   IRC #Debian (irc.icq.com)

____________________________________________________________
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>