Forums before death by AOL, social media and spammers... "We can't have nice things"
|    alt.os.linux.suse    |    Suse is actually not that bad    |    138,051 messages    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
|    Message 137,378 of 138,051    |
|    Carlos E. R. to All    |
|    Re: Just a question.    |
|    01 Nov 21 03:58:15    |
      From: robin_listas@es.invalid              On 31/10/2021 21.54, Sidney_Kotic wrote:       > I've been playing around with sending mail while in a cronjob. Here is       > a test script.       >       > WhoBeI=`hostname`              ...              > # Format to run on openSUSE       > #       > Sendtheshhtuff="mailx -r mydeadcat@fakedomain.ddns.net \       > -s $WhoBeI \       > -q Da_message.msg \       > myname@fakedomain.ddns.net"       > #       > echo "Hey, `date`" > Da_message.msg       > #       > $Sendtheshhtuff < "."       >       > This works.       > My question is...is there a way to get rid of the < "." in the last line       > so that it just says...       > $Sendtheshhtuff              I use this with the nut daemon:              echo -e "$NOTIFYTYPE\r\n\r\nUPS: $UPSNAME\r\nAlert type:       $NOTIFYTYPE\r\n\r\n`upsc $UPSNAME`" | \        mail -r from@address -s "NUT report myhostname ($NOTIFYTYPE)" \        to@address                            Another method, used when I update my dyndns:               echo > /var/lib/DDNS/mailbody.txt        host $CURRENTIP >>/var/lib/DDNS/mailbody.txt        echo >> /var/lib/DDNS/mailbody.txt               echo "See attached files" | mail -r from@address -s "dns things" \        -q /var/lib/DDNS/mailbody.txt \        -a /var/lib/DDNS/router_output.log \        -a /var/lib/DDNS/router_output_err.log \        -a /var/lib/DDNS/router_output_greperr.log \        -a /var/lib/DDNS/wget_out.txt \        -a /var/lib/DDNS/wget_err.txt \        -a /var/lib/DDNS/DDNS_status \        to@address                     (remember than in opensuse mailx and mail are the same program)              cer@Isengard:~> l /usr/bin/mail       lrwxrwxrwx 1 root root 5 May 16 2020 /usr/bin/mail -> mailx*       cer@Isengard:~              --       Cheers,        Carlos E.R.              --- SoupGate-Win32 v1.05        * Origin: you cannot sedate... all the things you hate (1:229/2)    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
(c) 1994, bbs@darkrealms.ca