Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 7 Jun 2001 12:56:12 -0400 
From:      "Person, Roderick" <personrp@ccbh.com>
To:        'Drew Tomlinson' <drewt@writeme.com>, "FreeBSD Questions (E-mail)" <freebsd-questions@FreeBSD.org>
Subject:   RE: echo in Scripts
Message-ID:  <46AEB8C1B628D511969200508B6FE42A6683B0@1upmc-msx6.isdip.upmc.edu>

next in thread | raw e-mail | index | archive | help
This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

------_=_NextPart_001_01C0EF72.C1F0AE20
Content-Type: text/plain;
	charset="iso-8859-1"

did your try single quotes, since your not usig reference variables.

Roderick P. Person
Programmer II
(412)454-2616
personrp@ccbh.com
http://www.ccbh.com

"It's like trying to get a monkey to do something a monkey can't do."
	-self




> -----Original Message-----
> From: Drew Tomlinson [mailto:drewt@writeme.com]
> Sent: June 07, 2001 12:02 PM
> To: FreeBSD Questions (E-mail)
> Subject: echo in Scripts
> 
> 
> I'm starting a script and directing the output to a file.  This is the
> command:
> 
> /usr/local/sbin/lynx-dyn.sh >> /var/log/lynx_dns_update.log
> 
> In the script (amongst other things), I have lines like this:
> 
> echo "Some meaningful output"
> 
> The script runs and the commands execute but my logfile never 
> shows the echo
> command output.  Can anyone tell me why and what I need to do 
> to fix it?
> 
> Thanks,
> 
> Drew
> 
> 
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-questions" in the body of the message
> 

------_=_NextPart_001_01C0EF72.C1F0AE20
Content-Type: text/html;
	charset="iso-8859-1"

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2653.12">
<TITLE>RE: echo in Scripts</TITLE>
</HEAD>
<BODY>

<P><FONT SIZE=2>did your try single quotes, since your not usig reference variables.</FONT>
</P>

<P><FONT SIZE=2>Roderick P. Person</FONT>
<BR><FONT SIZE=2>Programmer II</FONT>
<BR><FONT SIZE=2>(412)454-2616</FONT>
<BR><FONT SIZE=2>personrp@ccbh.com</FONT>
<BR><FONT SIZE=2><A HREF="http://www.ccbh.com" TARGET="_blank">http://www.ccbh.com</A></FONT>;
</P>

<P><FONT SIZE=2>&quot;It's like trying to get a monkey to do something a monkey can't do.&quot;</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2>-self</FONT>
</P>
<BR>
<BR>
<BR>

<P><FONT SIZE=2>&gt; -----Original Message-----</FONT>
<BR><FONT SIZE=2>&gt; From: Drew Tomlinson [<A HREF="mailto:drewt@writeme.com">mailto:drewt@writeme.com</A>]</FONT>
<BR><FONT SIZE=2>&gt; Sent: June 07, 2001 12:02 PM</FONT>
<BR><FONT SIZE=2>&gt; To: FreeBSD Questions (E-mail)</FONT>
<BR><FONT SIZE=2>&gt; Subject: echo in Scripts</FONT>
<BR><FONT SIZE=2>&gt; </FONT>
<BR><FONT SIZE=2>&gt; </FONT>
<BR><FONT SIZE=2>&gt; I'm starting a script and directing the output to a file.&nbsp; This is the</FONT>
<BR><FONT SIZE=2>&gt; command:</FONT>
<BR><FONT SIZE=2>&gt; </FONT>
<BR><FONT SIZE=2>&gt; /usr/local/sbin/lynx-dyn.sh &gt;&gt; /var/log/lynx_dns_update.log</FONT>
<BR><FONT SIZE=2>&gt; </FONT>
<BR><FONT SIZE=2>&gt; In the script (amongst other things), I have lines like this:</FONT>
<BR><FONT SIZE=2>&gt; </FONT>
<BR><FONT SIZE=2>&gt; echo &quot;Some meaningful output&quot;</FONT>
<BR><FONT SIZE=2>&gt; </FONT>
<BR><FONT SIZE=2>&gt; The script runs and the commands execute but my logfile never </FONT>
<BR><FONT SIZE=2>&gt; shows the echo</FONT>
<BR><FONT SIZE=2>&gt; command output.&nbsp; Can anyone tell me why and what I need to do </FONT>
<BR><FONT SIZE=2>&gt; to fix it?</FONT>
<BR><FONT SIZE=2>&gt; </FONT>
<BR><FONT SIZE=2>&gt; Thanks,</FONT>
<BR><FONT SIZE=2>&gt; </FONT>
<BR><FONT SIZE=2>&gt; Drew</FONT>
<BR><FONT SIZE=2>&gt; </FONT>
<BR><FONT SIZE=2>&gt; </FONT>
<BR><FONT SIZE=2>&gt; To Unsubscribe: send mail to majordomo@FreeBSD.org</FONT>
<BR><FONT SIZE=2>&gt; with &quot;unsubscribe freebsd-questions&quot; in the body of the message</FONT>
<BR><FONT SIZE=2>&gt; </FONT>
</P>

</BODY>
</HTML>
------_=_NextPart_001_01C0EF72.C1F0AE20--

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?46AEB8C1B628D511969200508B6FE42A6683B0>