Hello - 

I'm trying to automate a process and running into some problems, hoping
someone can help.  What i want to do is take an e-mail attachment that has
been mailed to me, and put that attachment into my home directory.  When I
use Pine manually it works great, and the document, which is a .txt file
coming from Win95, retains its original line breaks and everything's fine.
I figured I could automate it by having Procmail put the e-mail in my
home directory but the problem i ran into was that the attached file loses all its
original line breaks.  So I went back to Pine and used Autoexpect to
generate an Expect script that would run Pine and save the attachment.
After some tinkering I got it to work, but when i try to use it as part of
Crontab I get the following error message:


-------
spawn /bin/sh
pine -f /home/jddaly/mail/file -i

vs
qbash$ pine -f /home/jddaly/mail/file -i
Your terminal, of type "dumb", is lacking functions needed to run pine.

bash$
bash$ vs
sh: vs: command not found
bash$ q
-------

Is there any way around this?  

Thanks in advance

Jack Daly

-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to [EMAIL PROTECTED]
Please read the FAQ at http://www.linux-learn.org/faqs

Reply via email to