LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Write results to log? (https://www.linuxquestions.org/questions/linux-software-2/write-results-to-log-65211/)

eXor 06-12-2003 12:58 PM

Write results to log?
 
How do i write in Slacwkare that if I wan't a porgram to write it's results in a logg fil.


E.g

I wan't the results of hwclock to be writen on a new line in test.log.

Dose anybody know how to do this?

david_ross 06-12-2003 01:11 PM

If you mean you want to redirect the output of a command and have it written to the end of a file then:
command >> /path/to/file

eXor 06-12-2003 01:18 PM

thx....it worked like a charm


All times are GMT -5. The time now is 05:02 AM.