TWUUG Mailing List Archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [twuug] Capturing Standard Output on tar job



On Tue, 12 Nov 2002 14:25:55 -0500
"Anthony Abby" <anthonyabby@aplusdata.com> wrote:

> Sorry if this seems to be a silly question, but 
> what's the best way of capturing standard output 
> from a tar job to a file? 
>  
> I'm running a cron job to tar my home directory on 
> a daily basis (laptop) and back it up on my 
> desktop. 
>  
> tar cvj ./Documents ./dilbert ./evolution ./nltu 
> ./Wallpapers > "/mnt/smb1/Documents and 
> Settings/Owner/My Documents/backup.tar.bz2" 

There is your problem, you are redirecting the output of the tar command. 
If you don't redirect, then the messages will be Emailed to you
automatically by cron.  Try:

tar cvjf "/mnt/smb1/Documents and Settings/Owner/My
Documents/backup.tar.bz2" /Documents ./dilbert ./evolution ./nltu


Note the "f" option.

-- 
 /-------------------------------------------------------------------\
 |       Mark A. Davis   Norfolk, VA; EDT         (757)-461-5001x431 |
 |   Director of Information Systems & Commun,    www.himss.org      |
 |    Lake Taylor Transitional Care Hospital      www.laketaylor.org |
 | Adjunct Linux Prof., ITT Technical Institute   www.itt-tech.edu   |
 | Charter Member,  TideWater Unix User's Group   www.twuug.org      |
 \-------------------------------------------------------------------/


-
--------------------------------------------------------------------------
* To unsubscribe from the TWUUG discussion list, either send e-mail to
-  twuug-request@twuug.org with the word "unsubscribe" by itself
-  in the body of the message or visit: 
-  http://www.twuug.org/lists/twuuglists.html  


Home | Main Index | Thread Index