I hope any of you can give me a hand with this recipe, I want to append a
variable to a file.
I have isolated the part of it, which doesn't work
# First I extract the variable, for example FROM
:0 c
FROM=|formail -zx From:
# Now, as a suggestion from Era (Thank you), I want to write it to a file
named "lista", but it doesn't work
# Note I tested creating an empty file also
:0 c
| formail -XFrom: >>$HOME/public_html/webmaster/lista
# Then, I tried another suggestion which didn't work either
:0 c
| echo $FROM >> $HOME/public_html/webmaster/lista ;\
date +"%B %e %r" >> $HOME/public_html/webmaster/lista ;\
echo $NL >> $HOME/public_html/webmaster/lista
# This lines below, are just to check if the path and extraction of the
variable were correct, and it works #fine, I obtain the message written on a
file named the variable FROM
:0 c
$HOME/public_html/webmaster/$FROM
# This line is just to test if the recipe was running, and it is
:0
!danielf(_at_)bipbip(_dot_)com(_dot_)uy
I hope you can give me some clues,
Thank you
Daniel
Daniel Fernandez
danielf(_at_)bipbip(_dot_)com(_dot_)uy Tel: 59899667353
Domital Corporation