From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Tru64 User Newsgroups: gmane.os.tru64.managers Subject: SUMMARY: Cron Help + MX question Date: Thu, 10 Oct 2002 09:37:48 -0700 (PDT) Sender: tru64-unix-managers-owner@ornl.gov Message-ID: <20021010163748.3564.qmail@web40909.mail.yahoo.com> References: <20021010141337.40612.qmail@web40906.mail.yahoo.com> NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1034267864 1903 127.0.0.1 (10 Oct 2002 16:37:44 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 10 Oct 2002 16:37:44 +0000 (UTC) Return-path: Original-Received: from sws1.ctd.ornl.gov ([160.91.20.101]) by main.gmane.org with smtp (Exim 3.35 #1 (Debian)) id 17zgJh-0000Ts-00 for ; Thu, 10 Oct 2002 18:37:41 +0200 Original-Received: (qmail 24058 invoked by uid 5); 10 Oct 2002 16:38:03 -0000 Original-Followup-To: poster Precedence: bulk Original-Received: (qmail 24045 invoked by uid 49493); 10 Oct 2002 16:38:03 -0000 Original-Received: from tru64user@yahoo.com by sws1 by uid 49491 with qmail-scanner-1.14 (clamscan: 0.51. spamassassin: 2.50-cvs. Clear:SA:0(-2.2/5.0):. Processed in 0.730053 secs); 10 Oct 2002 16:38:03 -0000 Original-Received: from unknown (HELO emroute3.ornl.gov) (160.91.4.110) by 0 with SMTP; 10 Oct 2002 16:38:02 -0000 Original-Received: from emroute3.ornl.gov (localhost [127.0.0.1]) by emroute3.ornl.gov (PMDF V6.1-1 #39060) with ESMTP id <0H3R0062LY7D87@emroute3.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Thu, 10 Oct 2002 12:38:01 -0400 (EDT) Original-Received: from web40909.mail.yahoo.com (web40909.mail.yahoo.com [66.218.78.206]) by emroute3.ornl.gov (PMDF V6.1-1 #39060) with SMTP id <0H3R00A5SY71CL@emroute3.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Thu, 10 Oct 2002 12:37:50 -0400 (EDT) Original-Received: from [128.183.106.140] by web40909.mail.yahoo.com via HTTP; Thu, 10 Oct 2002 09:37:48 -0700 (PDT) In-reply-to: <20021010141337.40612.qmail@web40906.mail.yahoo.com> Original-To: tru64-unix-managers@ornl.gov Xref: main.gmane.org gmane.os.tru64.managers:2037 X-Report-Spam: http://spam.gmane.org/gmane.os.tru64.managers:2037 Thanks much to Peyton Glands and Tim Cutts, for their quick suggestions ( i was forcing this to work one way!, which wasn't!!!!) For MX problem, local grp working on issue. For script/cron issue, this oneliner worked (was looking for a one liner) You could just do: 30 * * * * /usr/local/bin/dosomething 2>&1 | mailx -s "dosomething cron" user1 user2 but that has the disadvantage that both users get the message even if no output was produced. In which case it's probably better to wrap dosomething in a shell script: #!/bin/sh /usr/local/bin/dosomething 2>&1 > /tmp/dosomething.$$ if [ -s /tmp/dosomething.$$ ]; then mailx -s "dosomething output" user1 user2 < /tmp/dosomething.$$ fi rm /tmp/dosomething.$$ And run that script as your cron job. Tim --- Tru64 User wrote: > Greetings, > > I have two quick questions..... > > 1. (cron Help) I need to send the stdout+stderr of a > cronjob to an additional email address. > > eg. 30 * * * * /usr/local/bin/dosomething > > Its stdout + stderr would get mailed to > owner.....Looking for a way make > it send to an additional user (I tried some funny > ways, which i knew wouldn't work) > > eg. 30 * * * * (/usr/local/bin/dosomething) >> - > 2>&1 > |mail some@user < - > > Any clues? Both, job owner and additional address > must > be emailed . > > 2. (MX Question) I am in a Campus environment, and > just finished setting up sendmail-8.14.5 for one > additional Tru64 v4.0G (Used same sendmail.mc > file like other 4 machines I have) > > It sends email out fine, but incoming is the > problem. > > I ran #nslookup > > > set q=mx (then) > > >this_system.com (and results show a wrong MX > record) > > Server: xxx.xxx.xxx.xx > > Address: xxx.xxx.xxx.xx#53 > > this_system.com mail exchanger = 0 > other_system.com > > It is supposed to point to its self. On what side > are > the corrections supposed to be made? (DNS servers > managed by another group. I dont run it on local > system. And how did the other_system.com entry get > there in the first place....so config problems there > or here locally? I am convinced it is no wrongdoing > on > my part)Please advise. > > > > _Thanks > > Richard > > > __________________________________________________ > Do you Yahoo!? > Faith Hill - Exclusive Performances, Videos & More > http://faith.yahoo.com ===== __________________________________________________ Do you Yahoo!? Faith Hill - Exclusive Performances, Videos & More http://faith.yahoo.com