SUMMARY: cron problem - output redirection not working

From: Karl Devitt <kdevitt_at_iel.ie>
Date: Mon Jun 11 2001 - 05:35:17 EDT
This is a multi-part message in MIME format.

------=_NextPart_000_038A_01C0F262.34C64620
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Thanks all, and special thanks goes to Paul Hedgepeth who suggested the =
use of parenthesis:
(tar cvf $TAPE \
  /usr /u1 /u2 /opt \
  /build /etc /export /TT_DB \
  >> $LOG) \
  2> $ERROR

Have used this in a test script from cron and it works fine, still =
unsure why there is a discrepancy between the systems though.

Karl.
  ----- Original Message -----=20
  From: Karl Devitt=20
  To: sunmanagers@sunmanagers.org=20
  Sent: Friday, June 08, 2001 11:17 AM
  Subject: cron problem - output redirection not working


  Hi all,

  I have one server in particular that is running a common backup script =
with output and errror redirection:
  tar cvf $TAPE \
          /usr /u1 /u2 /opt \
          /build /etc /export /TT_DB \
          >> $LOG \
          2> $ERR
  Instead of following the redirects as indicated, the error and output =
are spent via mail to root. any ideas what I should check?

  Thanks,
  Karl


  Karl Devitt
  UNIX System Administrator
  IT Department

  Interactive Enterprise Ltd.
  Tel: +353-1-4660600
  Fax: +353-1-4660284
  htpp://www.interactive-enterprise.com



***************************************************************************
This email and any files transmitted with it are confidential and 
intended solely for the use of the individual or entity to whom they 
are addressed. If you have received this email in error please notify 
the system manager (postmaster@iel.ie).

Any opinions expressed within the message are those of the sender, and are
not necessarily reflective of the prevailing company policies.

Copyright in this E-Mail remains with the sender.
***************************************************************************

------=_NextPart_000_038A_01C0F262.34C64620
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=3D"text/html; charset=3Diso-8859-1" =
http-equiv=3DContent-Type>
<META content=3D"MSHTML 5.00.3103.1000" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Thanks all, and special thanks goes to =
Paul=20
Hedgepeth who suggested the use of parenthesis:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>(tar cvf $TAPE \<BR>&nbsp; /usr /u1 /u2 =
/opt=20
\<BR>&nbsp; /build /etc /export /TT_DB \<BR>&nbsp; &gt;&gt; $LOG) =
\<BR>&nbsp;=20
2&gt; $ERROR<BR><BR>Have used this in a test script from cron and it =
works fine,=20
still unsure why there is a discrepancy between the systems =
though.</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Karl.</FONT></DIV>
<BLOCKQUOTE=20
style=3D"BORDER-LEFT: #000000 2px solid; MARGIN-LEFT: 5px; MARGIN-RIGHT: =
0px; PADDING-LEFT: 5px; PADDING-RIGHT: 0px">
  <DIV style=3D"FONT: 10pt arial">----- Original Message ----- </DIV>
  <DIV=20
  style=3D"BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: =
black"><B>From:</B>=20
  <A href=3D"mailto:kdevitt@iel.ie" title=3Dkdevitt@iel.ie>Karl =
Devitt</A> </DIV>
  <DIV style=3D"FONT: 10pt arial"><B>To:</B> <A=20
  href=3D"mailto:sunmanagers@sunmanagers.org"=20
  title=3Dsunmanagers@sunmanagers.org>sunmanagers@sunmanagers.org</A> =
</DIV>
  <DIV style=3D"FONT: 10pt arial"><B>Sent:</B> Friday, June 08, 2001 =
11:17=20
AM</DIV>
  <DIV style=3D"FONT: 10pt arial"><B>Subject:</B> cron problem - output=20
  redirection not working</DIV>
  <DIV><BR></DIV>
  <DIV><FONT face=3DArial size=3D2>Hi all,</FONT></DIV>
  <DIV>&nbsp;</DIV>
  <DIV><FONT face=3DArial size=3D2>I have one server in particular that =
is running a=20
  common backup script with output and errror redirection:</FONT></DIV>
  <DIV><FONT face=3DArial size=3D2>tar cvf $TAPE=20
  \<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /usr /u1 /u2 /opt=20
  \<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /build /etc /export =
/TT_DB=20
  \<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &gt;&gt; $LOG=20
  \<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 2&gt; $ERR<BR>Instead =
of=20
  following the redirects as indicated, the error and output are spent =
via mail=20
  to root. any ideas what I should check?</FONT></DIV>
  <DIV>&nbsp;</DIV>
  <DIV><FONT face=3DArial size=3D2>Thanks,</FONT></DIV>
  <DIV><FONT face=3DArial size=3D2>Karl</FONT></DIV>
  <DIV>&nbsp;</DIV>
  <DIV>&nbsp;</DIV>
  <DIV><FONT face=3DArial size=3D2>Karl Devitt<BR>UNIX System =
Administrator<BR>IT=20
  Department</FONT></DIV>
  <DIV>&nbsp;</DIV>
  <DIV><FONT face=3DArial size=3D2>Interactive Enterprise Ltd.<BR>Tel:=20
  +353-1-4660600<BR>Fax:=20
  =
+353-1-4660284<BR>htpp://www.interactive-enterprise.com<BR></FONT></DIV><=
/BLOCKQUOTE>
<BR>
***************************************************************************<BR>
This email and any files transmitted with it are confidential and <BR>
intended solely for the use of the individual or entity to whom they <BR>
are addressed. If you have received this email in error please notify <BR>
the system manager (postmaster@iel.ie).<BR>
<BR>
Any opinions expressed within the message are those of the sender, and are<BR>
not necessarily reflective of the prevailing company policies.<BR>
<BR>
Copyright in this E-Mail remains with the sender.<BR>
***************************************************************************<BR>
</BODY></HTML>

------=_NextPart_000_038A_01C0F262.34C64620--
Received on Mon Jun 11 10:35:17 2001

This archive was generated by hypermail 2.1.8 : Wed Mar 23 2016 - 16:24:56 EDT