LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Other *NIX
User Name
Password
Other *NIX This forum is for the discussion of any UNIX platform that does not have its own forum. Examples would include HP-UX, IRIX, Darwin, Tru64 and OS X.

Notices


Reply
  Search this Thread
Old 04-08-2010, 05:51 PM   #1
BaDm00n
LQ Newbie
 
Registered: Apr 2010
Location: Illinois, USA
Distribution: RedHat, Slackware, Gentoo, SCO
Posts: 2

Rep: Reputation: 0
Talking SCO Unix - Capture output from tar that is piped through FTP


Greetings,.
Long time listener, first time caller

For reasons beyond my control, i am backing this box up via tar, piping it through ftp.

current script is this.

ftp -nv someserver.somedomain.local <<EOF
user ftpuser ftppass
binary
put "| tar cvf - /somedir/aa " aa.tar
put "| tar cvf - /somedir/ab " ab.tar
put "| tar cvf - /somedir/ac " ac.tar
bye
EOF

and this works great as is.
However, i need to be able to log the tar output so i can email it to the appropriate individuals.

Any ideas?

Thanks in advance.
 
Old 04-09-2010, 11:40 AM   #2
rweaver
Senior Member
 
Registered: Dec 2008
Location: Louisville, OH
Distribution: Debian, CentOS, Slackware, RHEL, Gentoo
Posts: 1,833

Rep: Reputation: 167Reputation: 167
What do you mean by 'log the tar output'?
 
Old 04-10-2010, 01:12 PM   #3
BaDm00n
LQ Newbie
 
Registered: Apr 2010
Location: Illinois, USA
Distribution: RedHat, Slackware, Gentoo, SCO
Posts: 2

Original Poster
Rep: Reputation: 0
typically, using the -v option and grabbing output and re-directing it to a file, similar to:

tar -zcvpf /u/somedir /u/backup/somedir.tar.gz > /LOG/logfile

i can grab that output and see what files were backed, and errors (if any).

I have tried every iteration of pipe, tee, or redirect that i can think of, but i just cant seem to get a script that will tar directories through an ftp pipe, and give me a log of files backed up and errors.
 
  


Reply

Tags
tar



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to redirect stderr from piped output? redss Programming 2 08-21-2009 03:50 PM
LXer: Piped Variable Scoping In The Linux Or Unix Shell LXer Syndicated Linux News 0 06-06-2008 04:10 AM
SCO Unix FTP/Telnet Problems sparton Other *NIX 5 02-16-2006 02:27 PM
SCO vs Novell - SCO claims ownership to UNIX Ephracis General 5 10-02-2004 02:55 PM
How to redirect standard output of piped command to log file andrewstr Linux - General 10 02-04-2004 02:07 PM

LinuxQuestions.org > Forums > Other *NIX Forums > Other *NIX

All times are GMT -5. The time now is 05:14 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration