LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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
  Search this Thread
Old 10-09-2015, 06:16 PM   #1
postcd
Member
 
Registered: Oct 2013
Posts: 531

Rep: Reputation: Disabled
Can i output multiple wget files into archive?


Hello, can i anyhow put (pipe?) multiple wget files

(wget -mk http://domain.tld/folder)
(wget -r http://domain.tld/folder)

into tar archive (tgz, zip ..) ?

I prefer if files are added into archive directly, not downloading all files to hdd, tarring and then deleting whole folder..

Thx
 
Old 10-09-2015, 08:34 PM   #2
Rinndalir
Member
 
Registered: Sep 2015
Posts: 733

Rep: Reputation: Disabled
You can write to stdout from wget and read from stdin in tar. Is that your goal?
 
Old 10-10-2015, 10:16 AM   #3
postcd
Member
 
Registered: Oct 2013
Posts: 531

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Rinndalir View Post
You can write to stdout from wget and read from stdin in tar.
Can you kindly provide an example please

wget says:
Quote:
Cannot specify both -k and -O if multiple URLs are given, or in combination
with -p or -r.
 
Old 10-10-2015, 09:22 PM   #4
Dafydd
Member
 
Registered: Oct 2008
Posts: 344

Rep: Reputation: 29
look into pipe
 
Old 10-10-2015, 09:31 PM   #5
Dafydd
Member
 
Registered: Oct 2008
Posts: 344

Rep: Reputation: 29
Actually don't pipe
Google
Quote:
write to standard out from standard in
 
Old 10-11-2015, 04:25 PM   #6
Rinndalir
Member
 
Registered: Sep 2015
Posts: 733

Rep: Reputation: Disabled
Post the commands you are using.

FYI typically - is used to specify stdin or stdout. So use that where you need it instead of a file name.
 
Old 10-11-2015, 05:16 PM   #7
frieza
Senior Member
 
Registered: Feb 2002
Location: harvard, il
Distribution: Ubuntu 11.4,DD-WRT micro plus ssh,lfs-6.6,Fedora 15,Fedora 16
Posts: 3,233

Rep: Reputation: 406Reputation: 406Reputation: 406Reputation: 406Reputation: 406
hmm, i can see a potential glaring problem inherent to this notion,and that is where would the file names/directory tree come from if you are using stdout->stdin->tar ?
 
1 members found this post helpful.
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] archive problem (multiple types of compression, i think), some files are 0 bytes djmarian Linux - Software 2 12-13-2009 02:52 PM
[SOLVED] wget: download multiple files Steve W Linux - Software 6 05-25-2009 12:29 PM
adding multiple files to jar archive drkstr Linux - Software 2 12-26-2006 08:54 PM
is there a linux-supported archive format that can split into multiple files? Moebius Linux - Software 3 07-11-2006 03:52 PM
divide a directory into multiple archive files with par ddaas Linux - General 1 02-26-2005 02:52 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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

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