LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 08-08-2021, 05:20 PM   #1
Dysfunctionator
LQ Newbie
 
Registered: Oct 2019
Posts: 2

Rep: Reputation: Disabled
WGET. wording it properly.


So, i have to pull files from a website.
On the left i have server (A).
On the right i have client (B).
I am trying to pull from (A) using "wget".
While using (B), i get the entire pull from (A).
I am downloading it into my /var/www/html folder.
The output i get makes (B) also contain all of the websites info of (A).
i am attempting to make it just take from (A)"http://A/stuff/things/*" to (B) "/var/www/html/*" instead of including the info/folder structure of (A).
(ie using wget, i result with "http://A/stuff/things/*"in (B)'s /var/www/html, so it looks like: /var/www/html/http://A/stuff/things/*
Im sure it has to do with the output file, but i am also not sure how to construct this.
essentially, i want to copy a root directory of the website i have into my /var/www/html folder. any simple way of doing this?!?!
 
Old 08-09-2021, 10:30 AM   #2
shruggy
Senior Member
 
Registered: Mar 2020
Posts: 3,670

Rep: Reputation: Disabled
From the GNU Wget Manual:
Quote:
‘-nH’
‘--no-host-directories’
Disable generation of host-prefixed directories. By default, invoking Wget with ‘-r http://fly.srk.fer.hr/’ will create a structure of directories beginning with fly.srk.fer.hr/. This option disables such behavior.

Last edited by shruggy; 08-09-2021 at 10:36 AM.
 
Old 08-09-2021, 06:47 PM   #3
Dysfunctionator
LQ Newbie
 
Registered: Oct 2019
Posts: 2

Original Poster
Rep: Reputation: Disabled
Thumbs up

Thank you, shruggy, you are god among mortals.(sorry the man page was kinda conflusterating to me).
 
  


Reply



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
[SOLVED] How to get wget to deal properly with duplicate filenames like old times? comcastuser Linux - Software 8 06-19-2012 10:00 PM
How to resume an interrupted wget using wget.log? misterJ Linux - Software 2 06-19-2011 01:21 PM
Do you stumble over wording in slackpkg? AGer Slackware 15 02-01-2010 01:56 PM
wget pipe doesn't execute sh script properly. jfain Programming 7 07-30-2009 08:16 AM
wget not working! but "man wget is" ??? wrapster Solaris / OpenSolaris 5 07-30-2008 03:00 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 09:43 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