[leaf-user] sending a mail from a script
Hi, I am running LEAF_Bering uclibc3.0 and have a problem with dyndns. It seems that very,very occasionally, after Telekom changes the ip address, ezipupdate is failing. It always does this when I am at work, so I am unable to connect back to investigate (I call my wife to perform an 'ultimate reset' (unplug WRAP box reconnect because I need to stay vpn connected for e-mails) which then destroys all the evidence. I decided to write a script to be executed when the ip changes, that would compare the value in /etc/ez-ipup with that of the external interface and send me a mail if they do not agree. The Box is internet connected OK, just the dyndns is not updated. Now the question: What is the syntax for the mail binary that is in the LEAF distro? I have tried using man mail, but whatever I do, all I get is: /usr/sbin/mail: /usr/sbin/mail: 6: Syntax error: Bad function name Does anyone know how to use this? I tried copy examples from scripts on the box that are supposed to send mails, but always get the same. Google is not my friend here. Grateful for any suggestions, Bob von Knobloch -- EditLive Enterprise is the world's most technically advanced content authoring tool. Experience the power of Track Changes, Inline Image Editing and ensure content is compliant with Accessibility Checking. http://p.sf.net/sfu/ephox-dev2dev leaf-user mailing list: leaf-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/leaf-user Support Request -- http://leaf-project.org/
Re: [leaf-user] sending a mail from a script
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 6/9/2011 12:24 PM, bob wrote: What is the syntax for the mail binary that is in the LEAF distro? I have tried using man mail, but whatever I do, all I get is: /usr/sbin/mail: /usr/sbin/mail: 6: Syntax error: Bad function name Does anyone know how to use this? I tried copy examples from scripts on the box that are supposed to send mails, but always get the same. Google is not my friend here. The mail command used to be a shell script that I wrote, I'm not sure if it's been replaced by an actual binary. Given the error, I suspect it's still a script and either something has gotten messed up and you're the lucky finder of a bug or you may need to setup the configuration file in /etc. - -- Charles Steinkuehler char...@steinkuehler.net -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk3xEnsACgkQLywbqEHdNFxKUwCeJKTcoKtcWJhnvjhwM0DRAULC i1oAoLGsNlBodaZZeAgigE6o2x9ZvlEY =6b59 -END PGP SIGNATURE- -- EditLive Enterprise is the world's most technically advanced content authoring tool. Experience the power of Track Changes, Inline Image Editing and ensure content is compliant with Accessibility Checking. http://p.sf.net/sfu/ephox-dev2dev leaf-user mailing list: leaf-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/leaf-user Support Request -- http://leaf-project.org/
[leaf-user] dyndns and logging problems (was: sending a mail from a script)
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Am 09.06.2011 19:24, schrieb bob: I am running LEAF_Bering uclibc3.0 and have a problem with dyndns. It seems that very,very occasionally, after Telekom changes the ip address, ezipupdate is failing. Hello Bob, I cannot help you with sending mails from your leaf system, but I have other suggestions. I created the package dyndnsup.lrp and I'm using it at least since 2006 without noticing any problem. (The oldest file in the current package on leaf.sourceforge.net has been modified 2006-04-12) Of course I don't know if it would be more reliable than ez-ipupdate in your case. It is a simple shell script that is installed as /etc/ppp/ip-up.d/dyndnsupdate and uses wget to do the updates at dyndns and no-ip. (This means it depends on ppp and wget packages.) It always does this when I am at work, so I am unable to connect back to investigate (I call my wife to perform an 'ultimate reset' (unplug WRAP box reconnect because I need to stay vpn connected for e-mails) which then destroys all the evidence. I use both dyndns and no-ip and my script uses two separate wget calls to do the updates. So if one of these fails I might still have the other DNS entry. For logging I use remote syslog to a different server running a normal linux system. So I might have some evidence there if anything fails on my router. (But this remote syslog is not very reliable for unknown reason.) Bodo -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (GNU/Linux) iEYEARECAAYFAk3xMi8ACgkQnMz9fgzDSqfLSQCfeSxWPHoiBLI2Z2s5TAtt3xlg n0cAnRhDI1pTKyrhzQRg2LzM3mrc5to5 =7dMM -END PGP SIGNATURE- -- EditLive Enterprise is the world's most technically advanced content authoring tool. Experience the power of Track Changes, Inline Image Editing and ensure content is compliant with Accessibility Checking. http://p.sf.net/sfu/ephox-dev2dev leaf-user mailing list: leaf-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/leaf-user Support Request -- http://leaf-project.org/