LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
LinkBack Search this Thread
Old 08-26-2004, 08:37 PM   #1
luwigie
Member
 
Registered: Aug 2004
Location: Michigan, USA
Distribution: Fedora Core 2
Posts: 42

Rep: Reputation: 15
> writes a new file, how to append?


I'm now running some programs in the /etc/rc.d/rc.local script, but I want to be able to log the outputs. Right now I have "ls > /root/systembootmessages/ls" for example. But every time I reboot, it will be over written, correct? Is there a way that I can make the output append to a file? Thanks!
 
Old 08-26-2004, 08:42 PM   #2
rob.rice
Member
 
Registered: Apr 2004
Distribution: slack what ever
Posts: 680

Rep: Reputation: 68
>> instead of > if your going to do multiple appends its best to start with a empty file made with the touch command
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
bash programming-append single line to end of file pheasand Linux - General 3 01-12-2006 06:59 PM
c++ append data to file blizunt7 Programming 3 07-04-2005 12:47 AM
pipe output to append to a text file davee Linux - Newbie 3 08-27-2003 05:03 AM
tar append file juno Linux - General 5 10-24-2002 02:59 AM
append to file d-rez Linux - Newbie 2 06-20-2002 04:55 AM


All times are GMT -5. The time now is 03:39 AM.

Main Menu
 
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration