Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Echo to a file

Status
Not open for further replies.

sethu

Programmer
Apr 15, 2000
29
US
Hi,<br><br>I would like to echo to a file and find whether some scripts has executed while system startup and shutdown. How can I do that? I was thinking of echoeing some message to a file while the script is executing.<br><br>Thanks in advance
 
<br>Sure, we do it all the time. Just add an echo line to the appropriate rc file.<br>
 
Hello,Try echoing like that:<FONT FACE=monospace><b>echo</b> &gt;&gt; /some/file/is/the/log</font>then you can count on a cumulative log.I hope it works
 
Sneaking a &quot;date&quot; command into the echo might help as well. eg:<br><FONT FACE=monospace><br>echo &quot;`date` nfs startup script run&quot; &gt;&gt;/path/to/my/log/file<br></font><br>Note the apostrophes around &quot;date&quot; are the &quot;backtic&quot; apostrophes found just to the left of the &quot;1&quot; key on a UK PC keyboard.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top