Re: [shell] wget

This WebDNA talk-list message is from

2004


It keeps the original formatting.
numero = 60420
interpreted = N
texte = Lawrence_webcat wrote: > Ok, I understand the mistake Unfortunately, you don't. :( > > But one of the following code should work > > [Shell]chmod 755 My_TPL.tpl > wget -O pwd/My_file - "http://www.google.com"[/Shell] > > [Shell]chmod u+rwx My_TPL.tpl > wget -O pwd/My_file - "http://www.google.com"[/Shell] > The 'chmod' to the template file is completely useless here. The problem is that the user executing [shell] (typically nobody or wwwuser or some such under *nix) has no rights for the folder that is the default directory (I haven't played around with this so I am not sure if it is the root of the virtual host or the WebCatalogEngine directory). Do these two things: 1) create a directory that is owned by the web user (this may be the pwd directory you want to write to); 2) give the absolute pathname as part of the wget command line -O option, e.g. wget -O /var/www/site1/some/directory/pwd/My_file - "http://www.google.com" And this should work. If you are curious what directory is the default for [shell], try this: [shell]echo $PWD[/shell] which will tell you; I strongly suspect this is a platform dependent location (I would expect Win32 to be different than any *nix platform). HTH John -- John Peacock Director of Information Research and Technology Rowman & Littlefield Publishing Group 4720 Boston Way Lanham, MD 20706 301-459-3366 x.5010 fax 301-429-5747 ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: [shell] wget ( John Peacock 2004)
  2. Re: [shell] wget ( Lawrence_webcat 2004)
  3. Re: [shell] wget ( Brian Fries 2004)
  4. [shell] wget ( Lawrence 2004)
Lawrence_webcat wrote: > Ok, I understand the mistake Unfortunately, you don't. :( > > But one of the following code should work > > [shell]chmod 755 My_TPL.tpl > wget -O pwd/My_file - "http://www.google.com"[/Shell] > > [shell]chmod u+rwx My_TPL.tpl > wget -O pwd/My_file - "http://www.google.com"[/Shell] > The 'chmod' to the template file is completely useless here. The problem is that the user executing [shell] (typically nobody or wwwuser or some such under *nix) has no rights for the folder that is the default directory (I haven't played around with this so I am not sure if it is the root of the virtual host or the WebCatalogEngine directory). Do these two things: 1) create a directory that is owned by the web user (this may be the pwd directory you want to write to); 2) give the absolute pathname as part of the wget command line -O option, e.g. wget -O /var/www/site1/some/directory/pwd/My_file - "http://www.google.com" And this should work. If you are curious what directory is the default for [shell], try this: [shell]echo $PWD[/shell] which will tell you; I strongly suspect this is a platform dependent location (I would expect Win32 to be different than any *nix platform). HTH John -- John Peacock Director of Information Research and Technology Rowman & Littlefield Publishing Group 4720 Boston Way Lanham, MD 20706 301-459-3366 x.5010 fax 301-429-5747 ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/ John Peacock

DOWNLOAD WEBDNA NOW!

Top Articles:

Talk List

The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...

Related Readings:

Multiple fields on 1 input (1997) How To question on setting up downloads (1997) Using Cookie for client specific info? (1997) Re: (1997) Can someone help? (2000) WebCat2b13MacPlugIn - [include] (1997) displaying New products (using [date]) (1997) Simple way to create unique SKU (1997) Not really WebCat- (1997) Running _every_ page through WebCat ? (1997) Re:2nd WebCatalog2 Feature Request (1996) Need relative path explanation (1997) WebDNA tags in WebMerchant email templates ... (1997) Exclamation point (1997) System 8.5.1 question (1999) [BULK] Fwd: [WebDNA] [BULK] WebDNA discovery in the Console - [having many crashes] (2011) WebDNA for Dummies (2004) question: webmerchant connection (1997) select multiple 2 more cents (1997) Append - form based command (1999)