Guest amcflurry@hotmail.com Posted April 2, 2008 Posted April 2, 2008 We have a system which automatically processes incoming pgp encrypted files, but have a problem using munpack. In windows 2000 we reced an email via communigate mail system which is piped to a cygwin script, whicj unpacked the mail, decrypted it and loaded the data to our database. Recently we purchased another server (windows 2003 R2 64 bit), the mail system and cygwin where then installed as a replica of our previous system, all was wel except that we cannot unpack the mail using munpack. The following script is used as an example:- #!/usr/bin/bash LOGZ="F:/autoloaded-files/logtestA.txt" MUNPACK="/usr/local/bin/munpack" ECHO="/usr/bin/echo -e " munout=`$MUNPACK -C D:/tmp/1206620322 D:/tmp/1206620322/input-file` >> $LOGZ /usr/local/bin/munpack -C D:/tmp/1206620322 D:/tmp/1206620322/input- file >> $LOGZ if this script is run manually in a cmd window ie "bash script" it runs perfectly, under my login and the login of the user the email service runs under, but won't run as an automated script activated by the email server, the bash process runs under the email service login I hasten to add that this is the only executable which will not execute and I am totally stumped Thanks in Advance Alastair
Recommended Posts