ein versuch mit nano
Hi,
wie ich in einer vorherigen E-Mail geschrieben habe, hat 'dialog'
keine --editbox, also versuchte ich mich mit einem Behelf wie:
----8<--------------------------------------------------------------
dlg1()
{
# echo -e "$BODY" |dialog --begin 3 3 --clear --stdout \
# --title "TDMailBody" \
# --backtitle "`gettext 'Please edit the Text to your needs.\nYou can add multiple TAGS one per line, where each TAG can be one or more words.'`" \
# --editbox - 20 74
TMPFILE=`mktemp -t XXXXXX || exit 1`
echo -e "$BODY" >$TMPFILE
nano --smooth --mouse --nowrap $TMPFILE
if [ $? -eq 0 ] ; then
cat $TMPFILE
echo "rm -f $TMPFILE" 1>&2
exit 0
fi
echo "rm -f $TMPFILE" 1>&2
exit 1
}
----8<--------------------------------------------------------------
nur beendet nano mit SIGHUP oder SIGTERM.
----8<--------------------------------------------------------------
cat message2 |./tdmailbody --add=spam_body3_test --whitelist=spam_body3_test_wl
+++ mktemp -t XXXXXX
++ TMPFILE=/tmp/michelle.konzack/4q5g1h
++ echo -e '
Hello, paul gordon
Health Package for paul gordon is ready.
Please re-confirm your Data.
http://geocities.com/MarciaOneill5084
The Buyer as per our records: paul gordon
http://ddkndk93483dfjf.zyxebyway.net/
your address if wrong order please help us to correct it
Just visit our site above to make sure.
Regards,
Marco'
++ nano --smooth --mouse --nowrap /tmp/michelle.konzack/4q5g1h
SIGHUP oder SIGTERM empfangen
++ '[' 1 -eq 0 ']'
++ echo 'rm -f /tmp/michelle.konzack/4q5g1h'
rm -f /tmp/michelle.konzack/4q5g1h
++ exit 1
----8<--------------------------------------------------------------
Ein Aufruf von
nano --smooth --mouse --nowrap /tmp/michelle.konzack/4q5g1h
funktioniert allerdings perfekt.
Woran kann das liegen?
Greetings
Michelle Konzack
--
Linux-User #280138 with the Linux Counter, http://counter.li.org/
##################### Debian GNU/Linux Consultant #####################
Michelle Konzack Apt. 917 ICQ #328449886
50, rue de Soultz MSM LinuxMichi
0033/6/61925193 67100 Strasbourg/France IRC #Debian (irc.icq.com)
Reply to: