Re: [shell]
This WebDNA talk-list message is from 2002
It keeps the original formatting.
numero = 46426
interpreted = N
texte = Kalin Mintchev wrote:> command line:> ./replc.sh <\!--HAS_WEBDNA_TAGS--> <\!--HAS_WEBDNA_TAGS-->[include> \/includes\/counters\/booooo_counter.inc]> /path/to/file/moo.html> I think you are fighting your knowledge of how shell scripts work vs how WebCat's [shell] context works. You are escaping the special characters because that is what you are required to do in the shell to prevent other special handling. Those backslashes are removed by the shell processor itself, prior to being passed to your script. I suspect that the [shell] context is not preprocessed, but rather the script is directly exec'd with the parameters passed in intact (with the backslashes still there) and hence the sed fails.Two things you can do is write a simple shell script which merely echos out its commandline parameters, to see whether the shell escapes are processed or not. Or else, you could just take my guess as correct and do this instead:[shell]./replc.sh [include/includes/counters/booooo_counter.inc]/path/to/file/moo.html[/shell]NOTE: it is not clear to me what directory is current when the [shell] script it run: is it the current template directory? or the WebCatalogEngine directory? or where?NOTE 2: if this is a one-time change, it is much more appropriate to ssh to the server and use find to walk the tree and update all of the files...HTHJohn-- John PeacockDirector of Information Research and TechnologyRowman & Littlefield Publishing Group4720 Boston WayLanham, MD 20706301-459-3366 x.5010fax 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:
Kalin Mintchev wrote:> command line:> ./replc.sh <\!--HAS_WEBDNA_TAGS--> <\!--HAS_WEBDNA_TAGS-->[include> \/includes\/counters\/booooo_counter.inc]> /path/to/file/moo.html> I think you are fighting your knowledge of how shell scripts work vs how WebCat's [shell] context works. You are escaping the special characters because that is what you are required to do in the shell to prevent other special handling. Those backslashes are removed by the shell processor itself, prior to being passed to your script. I suspect that the [shell] context is not preprocessed, but rather the script is directly exec'd with the parameters passed in intact (with the backslashes still there) and hence the sed fails.Two things you can do is write a simple shell script which merely echos out its commandline parameters, to see whether the shell escapes are processed or not. Or else, you could just take my guess as correct and do this instead:[shell]./replc.sh [include/includes/counters/booooo_counter.inc]/path/to/file/moo.html[/shell]NOTE: it is not clear to me what directory is current when the [shell] script it run: is it the current template directory? or the WebCatalogEngine directory? or where?NOTE 2: if this is a one-time change, it is much more appropriate to ssh to the server and use find to walk the tree and update all of the files...HTHJohn-- John PeacockDirector of Information Research and TechnologyRowman & Littlefield Publishing Group4720 Boston WayLanham, MD 20706301-459-3366 x.5010fax 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:
ShowNext (1997)
Tcp Connect and IPaddress (2000)
Anyone running WebMerchant 4.0? (2000)
Next (1997)
[OT] Theiving B*****ds (2004)
PC Auth Hub+Merchant (1998)
Replacing entry (1998)
MacOS X 10.2.2 (2002)
New Webcatalog for Mac (1997)
Cool ShowNext (was Blasted shownext (request for 4.0)) (1998)
For those of you not on the WebCatalog Beta... (1997)
[OT] Helllllooooooo.... (2002)
[OT] Read and weep (2003)
Installing 4.5 under 10.2 (2002)
Ok here is a question? (1997)
Solve the Problem, get the code! (2001)
appleshare/ip (1997)
Re[2]: Base64 encryption limitations? (1999)
Multiple security dbs (1997)
Signal Raised Error (1997)