LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 07-12-2004, 12:05 AM   #1
MS3FGX
LQ Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 361Reputation: 361Reputation: 361Reputation: 361
Serving saved websites to Windows clients


I have saved a website to my server using wget. The directory is shared with Samba, so all the Windows clients have to do is point their browser to the file share, and they can surf the page from the server. This works fine for the index page, but anything else fails.

From the server it works fine. Files are stored in the format:

Code:
index.html?page=about
Now, that is all well and good on Linux, but unfortunately, Windows will not accept a "?" in a file name. While it displays properly in Windows Explorer, when you try to open the file it doesn't do anything.

You also can't try to rename the file or modify it, since Windows screams about illegal characters in the file name.

Now, all of the programs that download websites for Windows save the files like:

Code:
index.html@page=about
The difference here is that while "?" is an illegal character in Windows, "@" isn't.

So here is my question, how can I get wget to use "@" instead of "?" when it names files?

I was thinking of just making a script to change the characters in the file names on the Linux side, but that isn't going to work since all of the links on the page are still going to point to "?".

So it needs to be done on the wget side. Does anybody know how this can be done?
 
Old 07-12-2004, 12:18 AM   #2
Jerre Cope
Member
 
Registered: Oct 2003
Location: Texas (central)
Distribution: ubuntu,Slackware,knoppix
Posts: 323

Rep: Reputation: 37
Are you really trying to proxy? If so, I would suggest squid @
www.squid-cache.org
 
Old 07-12-2004, 12:28 AM   #3
MS3FGX
LQ Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Original Poster
Rep: Reputation: 361Reputation: 361Reputation: 361Reputation: 361
No, the website is going down and I need to save a copy of it that users can browse.

And it isn't a web server, so I can't serve the pages up that way.
 
Old 07-12-2004, 12:37 AM   #4
Jerre Cope
Member
 
Registered: Oct 2003
Location: Texas (central)
Distribution: ubuntu,Slackware,knoppix
Posts: 323

Rep: Reputation: 37
not a webserver?

I think I would be prone to install apache and just copy the files to the /var/www/htdocs directory.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Saved files on floppy aren't read in Windows SirLancelotX Linux - Newbie 6 12-30-2005 01:48 PM
serving multiple domain websites on one server? gsgleason Linux - Software 1 06-03-2005 10:50 AM
Serving up JSP pages from Linux to Windows 1newbie2 Linux - Networking 1 03-28-2005 05:13 AM
Serving DNS IP to Macintosh clients via DHCPD Darieus Linux - Networking 1 08-08-2003 10:06 AM
Windows Media Player ported to Linux. Hooray we're saved! LOL Pcghost General 6 04-30-2003 03:19 PM

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

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