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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
10-09-2015, 06:16 PM
|
#1
|
Member
Registered: Oct 2013
Posts: 531
Rep:
|
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
|
|
|
10-09-2015, 08:34 PM
|
#2
|
Member
Registered: Sep 2015
Posts: 733
Rep:
|
You can write to stdout from wget and read from stdin in tar. Is that your goal?
|
|
|
10-10-2015, 10:16 AM
|
#3
|
Member
Registered: Oct 2013
Posts: 531
Original Poster
Rep:
|
Quote:
Originally Posted by Rinndalir
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.
|
|
|
|
10-10-2015, 09:22 PM
|
#4
|
Member
Registered: Oct 2008
Posts: 344
Rep:
|
look into pipe
|
|
|
10-10-2015, 09:31 PM
|
#5
|
Member
Registered: Oct 2008
Posts: 344
Rep:
|
Actually don't pipe
Google
Quote:
write to standard out from standard in
|
|
|
|
10-11-2015, 04:25 PM
|
#6
|
Member
Registered: Sep 2015
Posts: 733
Rep:
|
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.
|
|
|
10-11-2015, 05:16 PM
|
#7
|
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
|
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.
|
All times are GMT -5. The time now is 06:06 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|