Re: Off Topic "at" command

From: Green, Simon (SGreen@KRAFTEUROPE.COM)
Date: Thu Jan 16 2003 - 09:29:58 EST


You need your mail command within the quotes:

echo "echo Export Finished With StartTime $STARTT EndTime $ENDT |
mail ora_admin_success" | at 0700

Simon Green
Philip Morris ITSC Europe

AIX-L Archive at http://marc.theaimsgroup.com/?l=aix-l&r=1&w=2
AIX FAQ at http://www.faqs.org/faqs/aix-faq/

N.B. Unsolicited email from vendors will seldom be appreciated.

> -----Original Message-----
> From: John F Riordan [mailto:jriorda2@CSC.COM]
> Sent: 16 January 2003 14:23
> To: aix-l@Princeton.EDU
> Subject: Off Topic "at" command
>
>
> Hi All,
>
> I regret to ask this question, however the "at" command is
> getting the best
> of me.
>
> I have taken over a 7026-6H1 with many oracle instances. One
> of these has
> an export script that runs every night. And in the script
> there is a line
> that should page the Oracle DBA's that the export was
> successful. But the
> intention was to page the DBA's at 7:00am not at Midnight
> when the export
> finishes. The following is the original line of the script.
>
> ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
> ++++++++++++++++++++++++++++++++++++
> echo "echo Export Finished With StartTime $STARTT EndTime
> $ENDT" | mail
> ora_admin_success | at 0700
> ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
> ++++++++++++++++++++++++++++++++++++
>
> I have tried changing the line using many combinations of syntax etc..
> However, the mail is sent as soon as this part of the script
> is read. I
> have read the man page on "at" several times but no matter
> what type of
> changes I make it mails as soon as it is executed.
>
> I am convinced I am doing something wrong, but I just can't
> put my finger
> on it.
>
> Any help would be greatly appreciated.
> Ass Always, thanks in advance.
>
> John
>



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 22:16:29 EDT