ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I've got a perfectly running SMTP script under Redhat ES 3, but when I run it under Redhat ES 4 it doesn't work any more. Messages have got strange characters or messages are not being send at all. I don't know what the problem is, is there anyone who can tell me what the problem might be?
When the script runs 4 times after each other, only the first message has been received. And sometimes characters have been replaced by questionmarks (?). It's very weird!
Whose mailserver are you using? Your own? Your ISPs? Other MTAs? Since you didn't post any exact errors or anything else to go on, about the timing, if you're not using your own MTA, try adding a sleep of say 30 seconds after each send, then decrease until you hit the threshold. Wrt the chars, comparing your input with output should show where it fails. If that's all too generic for you please post the exact error messages you receive from the MTA along with some examples from your comparison.
I don't get any errors from the MTA, the strange characters only exist in the textmessage we receive on our mobile phone. This script sends a SMTP flux to our VOIP/SMS gateway. Under Redhat3 this works perfect, under Redhat4 it doesn't. I allready build in a sleep 60, then the problem with not receiving al messages is solved, but i'm still getting some change characters while the send message doesn't.
Nope, I also redirected the output to a text-file which is allright so there's really nothing wrong with the output or send message! But why doesn't it work right under Redhat4 :S
OK. I know you're interested to find out but you have to realise responses like "nope" (did or didn't you check receiving as email?) "nothing wrong" (on which different machines and in what ways did you check?) or "doesn't work" don't give me much to go on. So. What parts of $TEXT show "strange characters"? Separate characters, whole words, words with certain characters? Where does the text originate (log watcher, monitoring application, database)? Can you compare locale on both machines (type 'locale', save to tempfile, then diff). What happens if you convert ('man iconv') the $TEXT to 7-bit something vaguely resembling The GSM 03.38 Default Character Set (see for http://www.gammu.org/wiki/index.php?...Set_Conversion or http://smstools.meinemullemaus.de/GS...cification.pdf) or force the charset used on the RHEL-3 machine?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.