pfranz Posted March 26, 2004 Posted March 26, 2004 First off, not sure which channel to post this in. Apologies if this one is incorrect. I'm trying to write a .bat file to update from my server using wget (a port to Windows). Normal login would be something like "ftp://user:pass@****/" but since the shared servers force the usernames to be "user@****" there becomes a problem and wget gets confused (i tried googling and only found one response suggesting using hex). well, I tried hex. something like, "ftp://user%40mydomain%2Ecom:password@****" While this works pasting in my webbrowser, not with wget. NOTE: I'm using a Win32 port of wget in WinXP (I hope it's not an error with the port because I'd feel really silly for asking here) Quote
TCH-Bruce Posted March 26, 2004 Posted March 26, 2004 What are you wanting to do with wget? You can create macros using CuteFTP to do repetitive things. Moving to better forum for organization. Quote
pfranz Posted March 27, 2004 Author Posted March 27, 2004 There's an app that I use on multiple computers and I write scripts for it. I'd like to have a central place (my website) where I can sync everything when the app starts. I believe wget should do the job nicely, but I'm looking for anything I can get that done easily from a command line. I dont have CuteFTP Quote
pfranz Posted March 28, 2004 Author Posted March 28, 2004 I tried wget in linux with the same style login (ftp://user%40mydomain%2Ecom:password@****) and it worked. So one problem is the windows port doesn't support special characters correctly... i cant seem to find a different port that will. Any suggestions?? I've found alternatives of wget for linux, unfortunately nothing really like it for win. Quote
borfast Posted March 28, 2004 Posted March 28, 2004 Probably silly question but have you tried the Windows port with the regular URL? Quote
pfranz Posted March 28, 2004 Author Posted March 28, 2004 Yeah, i did. The extra @ and period confuse it as well. I did get a response from an author of a port and here's a summary of the email. I know the windows port of wget has quite a history of mangling up urls (and filenames) with escapes in them... Or actually - are you calling this from a batch file perhaps? You do realize that %1,%2 ... %9, %0 are batch parameters right, and are replaced as such? If that were the case, use something like %%40 instead of %40 Turns out that was my problem. I was running it as a batch file Thanks for the assistance. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.