- Joined
- Mar 30, 2005
- Location
- Wells, England
Hi,
I am trying to write a script to automate the downloading of email from gmail, the downloaded file of which will then be used as input for another program. The list of actions I am trying to do is:
A few cliffnotes.
Currently all I have is below:
c:/cygwin/bin/bash.exe --login -i -c fetchmail -k;
cp /var/spool/mail/Tom /cygdrive/;
Which executes fetchmail happily but I can't seem to get the copy to work:-(
(Just using copy to see if its working)
I am trying to write a script to automate the downloading of email from gmail, the downloaded file of which will then be used as input for another program. The list of actions I am trying to do is:
- Open and Login to Cygwin
- Execute fetchmail
- change the ending of the downloaded file to .txt
- Move the downloaded file somewhere else
- Repeat every 5 mins
A few cliffnotes.
- Cygwin is installed on C: drive, but I want to move the file to D: drive.
- The program that will use the file deletes it immediately after use and then waits for a specified amount of time before opening it again. (or trying anyway)
- for the repeat of the script I don't want the command window popping up all the time
Currently all I have is below:
c:/cygwin/bin/bash.exe --login -i -c fetchmail -k;
cp /var/spool/mail/Tom /cygdrive/;
Which executes fetchmail happily but I can't seem to get the copy to work:-(
(Just using copy to see if its working)