| View previous topic :: View next topic |
| Author |
Message |
Guest
|
Posted: Sun Apr 18, 2004 7:10 pm Post subject: e-mail feature |
|
|
ive added a "peffisaur" user
ive sent an e-mail with a picture in from my phone,
i waited a few seconds and "recmail.log" appears in /tmp
recmail.log contains the following
| Code: | /home/peffisaur/recmail.pl: use: command not found
/home/peffisaur/recmail.pl: =mysql: command not found
/home/peffisaur/recmail.pl: =: command not found
/home/peffisaur/recmail.pl: =: command not found
/home/peffisaur/recmail.pl: =: command not found
/home/peffisaur/recmail.pl: =: command not found
/home/peffisaur/recmail.pl: =: command not found
/home/peffisaur/recmail.pl: line 12: syntax error near unexpected token `0'
/home/peffisaur/recmail.pl: line 12: `umask( 0 );'
procmail: Error while writing to "/home/peffisaur/recmail.pl"
From +44783434xxxx@mediamessaging.o2.co.uk Sun Apr 18 18:06:45 2004
Subject: Multimedia Message
Folder: /var/mail/peffisaur 41328
|
any idea why it's doing this? any help would be greatly appreciated
ty!  |
|
| Back to top |
|
 |
Peffis Site Admin
Joined: 09 Sep 2003 Posts: 324 Location: Sweden
|
Posted: Sun Apr 18, 2004 10:21 pm Post subject: |
|
|
That looks...ehm...bad
It almost seems like the script is not parsed by perl at all but instead by some other command line interpreter. It actually looks very much like the script is parsed by sh instead of perl. I tried running it with "sh recmail.pl" and the output is similar (but not exactly like it) to yours. Are you running this on a windows machine? Or is there not a perl binary at /usr/bin/perl ?
If you log on the server and type "/home/peffisaur/recmail.pl", do you then get the same error message?
What system are you running on? What perl version do you have at /usr/bin/perl? (type "/usr/bin/perl -v" to find out).
My guess is that there is something broken with your perl. At least it seems like the script is parsed by sh or some other shell instead of perl which is very strange.
/S |
|
| Back to top |
|
 |
Guest
|
Posted: Sun Apr 18, 2004 10:49 pm Post subject: |
|
|
ooh.
i chmodded the perl script +x and it worked fine, perhaps you'd like to include this in your future docs!
ty sorry for wasting time  |
|
| Back to top |
|
 |
Guest
|
Posted: Sun Apr 18, 2004 10:55 pm Post subject: |
|
|
| oh and yes it was a debian linux server, running sendmail and procmail and perl v5.6.1. (incase anyone has the same probs) |
|
| Back to top |
|
 |
Peffis Site Admin
Joined: 09 Sep 2003 Posts: 324 Location: Sweden
|
Posted: Mon Apr 19, 2004 8:23 am Post subject: |
|
|
I see. I just thought about that. That perhaps if it's not executable it will get "sourced" instead and interpreted by the shell. So I went here to suggest that noticing you had already solved it.
Thanks for the info.
Cheers
Stefan |
|
| Back to top |
|
 |
|