I am using contrab in Solaris 8 for make my Oracle DB Backup and every day I
saw the log in the Solaris Mailbox.
I need to send this log to an Internet email.
Do you know how can I do it ?
Thanks
Javier from Argentina
Pipe the command's output to a mail command.
--
Barry Margolin, barry.m...@level3.com
Level(3), Woburn, MA
*** DON'T SEND TECHNICAL QUESTIONS DIRECTLY TO ME, post them to newsgroups.
Please DON'T copy followups to me -- I'll assume it wasn't posted to the group.
Thanks
"Barry Margolin" <barry.m...@level3.com> wrote in message
news:r5Slb.182$lK3...@news.level3.com...
Please don't top-post.
> "Barry Margolin" <barry.m...@level3.com> wrote in message
> news:r5Slb.182$lK3...@news.level3.com...
> > In article <igQlb.319697$tq.2...@fe12.atl2.webusenet.com>,
> > Javier Villegas <ma...@impsat1.com.ar> wrote:
> > >I am using contrab in Solaris 8 for make my Oracle DB Backup and every
> day I
> > >saw the log in the Solaris Mailbox.
> > >
> > >I need to send this log to an Internet email.
> > >
> > >Do you know how can I do it ?
> >
> > Pipe the command's output to a mail command.
> >
> Could you give me an example ?
10 3 * * * /home/fatherted/bin/wurfle -z | /bin/mailx -s "Wah!"
som...@foo.bar.net
> Thanks
>
> > --
> > Barry Margolin, barry.m...@level3.com
--
Noel R. Nihill
UNIXŽ platform development
Motorola NSS
I *could* be arguing in my spare time.
try this: mail xx...@yyyyy.net < "/full_path_to/your_log_file" (leave out
the quotes)
where xxxxx and yyyyy are valid email "parts" and "your_log_file" is the
log you wish to send. Not the "<" redirect symbol.
I do this on a Linux box so it should also work for you.
>
> Thanks
>
> Javier from Argentina
>
>
>
Also make an entry in a crontab. as root for example do: crontab -e and
put in something like
0 3 * * * /cron_scripts/producer_cron.sh > /dev/null 2>&1
this will cause a file by the name of test.sh conatain the mail
xx...@yyyyy.net < "/full_path_to/your_log_file" to run at 3am.
>
>
> >
> > Thanks
> >
> > Javier from Argentina
> >
> >
> >
>
>
If that does not work try
mailx -s "subject text" xx...@yyyyy.net < /full/ilename_here
--Jules