Register
It is currently Sat Dec 20, 2014 6:34 am

append Output logfile.log on first line


All times are UTC - 6 hours


Post new topic Reply to topic  [ 2 posts ] 
Author Message
 PostPosted: Fri Jan 10, 2014 10:03 am   

Joined: Mon Nov 25, 2013 10:04 am
Posts: 9
Append the output logfile.log always on the first line?

./myscript | tee -a logfile.log

i use:

./myscript | tee -a logfile.log |tac logfile.log > logfile1.log |mv logfile1.log logfile.log


Top
 Profile  
 PostPosted: Tue Jan 14, 2014 11:06 pm   
Site Admin
User avatar

Joined: Sun May 15, 2005 9:36 pm
Posts: 673
Location: Des Moines, Iowa
hmmm your using | ... perhaps you meant to use ; ?


Top
 Profile WWW  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
cron


BashScripts | Promote Your Page Too
Powered by phpBB © 2011 phpBB Group
© 2003 - 2011 USA LINUX USERS GROUP