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 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. [WebDNA] WebDNA not interpreted inside [shell] (Kenneth Grome 2014)
  2. Re: [WebDNA] ideas as to why [shell] call to imagemagick is failing intermittently? (Govinda 2011)
  3. Re: [WebDNA] ideas as to why [shell] call to imagemagick is ("Terry Wilson" 2011)
  4. Re: [WebDNA] ideas as to why [shell] call to imagemagick is ("Terry Wilson" 2011)
  5. [WebDNA] ideas as to why [shell] call to imagemagick is failing intermittently? (Govinda 2011)
  6. Re: [WebDNA] [shell] issue on Mac; file not appearing a PERL exe... (Palle Bo Nielsen 2009)
  7. Re: [WebDNA] [shell] issue on Mac; file not appearing a PERL exe... (Christer Olsson 2009)
  8. [WebDNA] [shell] issue on Mac; file not appearing a PERL exe... (Palle Bo Nielsen 2009)
  9. Re: See [shell]s ( Marc Thompson 2008)
  10. Re: See [shell]s ( "Dennis J. Bonsall, Jr." 2008)
  11. Re: See [shell]s ( "Dennis J. Bonsall, Jr." 2008)
  12. Re: See [shell]s ( Bob Minor 2008)
  13. Re: See [shell]s ( "Dennis J. Bonsall, Jr." 2008)
  14. Re: See [shell]s ( Donovan Brooke 2008)
  15. Re: See [shell]s ( Dave Hurley 2008)
  16. See [shell]s ( "Dennis J. Bonsall, Jr." 2008)
  17. Re: wget in [shell] ( Paul Willis 2007)
  18. Re: wget in [shell] ( thierry 2007)
  19. wget in [shell] ( thierry 2007)
  20. Re: Can't ping (problem with [shell]) SOLVED ( John Peacock 2006)
  21. Re: Can't ping (problem with [shell]) SOLVED ( "Dennis J. Bonsall, Jr." 2006)
  22. Re: Can't ping (problem with [shell]) ( "Dennis J. Bonsall, Jr." 2006)
  23. Re: Can't ping (problem with [shell]) ( Jesse Proudman 2006)
  24. Can't ping (problem with [shell]) ( "Dennis J. Bonsall, Jr." 2006)
  25. Starting Tomcat from [shell] ( WJ Starck 2006)
  26. Re: [shell] ( Jesse Proudman 2005)
  27. Re: [shell] ( "kalin mintchev" 2005)
  28. [shell] ( Jesse Proudman 2005)
  29. Re: [shell] error? ( Jesse Proudman 2005)
  30. Re: [shell] error? ( "Dan Strong" 2005)
  31. Re: [shell] error? ( Jesse Proudman 2005)
  32. [shell] error? ( "Dan Strong" 2005)
  33. Re: [shell] wget ( John Peacock 2004)
  34. Re: [shell] wget ( Lawrence_webcat 2004)
  35. Re: [shell] wget ( Brian Fries 2004)
  36. [shell] wget ( Lawrence 2004)
  37. Re: RSH [shell] calls. ( Peter J.DiCostanzo Jr. 2004)
  38. Re: RSH [shell] calls. ( Donovan Brooke 2004)
  39. RSH [shell] calls. ( Peter J.DiCostanzo Jr. 2004)
  40. FTP within [shell] ( Mark Derrick 2004)
  41. [shell] and the globals folder ( Mark Derrick 2004)
  42. Re: ImageMagick and [shell] ( Charles Kline 2003)
  43. Re: ImageMagick and [shell] ( Jesse Williams-Proudman 2003)
  44. Re: ImageMagick and [shell] ( Charles Kline 2003)
  45. Re: ImageMagick and [shell] ( "WebDna @" 2003)
  46. ImageMagick and [shell] ( Charles Kline 2003)
  47. Re: [SHELL] SSH more problems ( Dave Hurley 2003)
  48. Re: [SHELL] SSH more problems ( Jesse Williams-Proudman 2003)
  49. [SHELL] SSH more problems ( Philip Edell 2003)
  50. [shell] stopped AGAIN ( Alain Russell 2003)
  51. Re: FTP and [shell] ( Alain Russell 2003)
  52. Re: FTP and [shell] ( Matthew Bohne 2003)
  53. Re: FTP and [shell] ( "WebDna @" 2003)
  54. Re: FTP and [shell] ( Kalin Mintchev 2003)
  55. Re: FTP and [shell] ( Matthew Bohne 2003)
  56. Re: FTP and [shell] ( "WebDna @" 2003)
  57. Re: FTP and [shell] ( Velma Kahn 2003)
  58. Re: FTP and [shell] ( Aaron Lynch 2003)
  59. Re: FTP and [shell] ( Jay Van Vark 2003)
  60. Re: FTP and [shell] ( "WebDna @" 2003)
  61. Re: FTP and [shell] ( Jay Van Vark 2003)
  62. Re: FTP and [shell] ( Matthew Bohne 2003)
  63. Re: FTP and [shell] ( "WebDna @" 2003)
  64. Re: FTP and [shell] ( Alain Russell 2003)
  65. FTP and [shell] ( Matthew Bohne 2003)
  66. Re: [shell] stopped ?? ( Alain Russell 2003)
  67. Re: [shell] stopped ?? ( Le Pham 2003)
  68. Re: [shell] stopped ?? ( Alain Russell 2003)
  69. Re: [shell] stopped ?? ( Paul Uttermohlen 2003)
  70. [shell] stopped ?? ( Alain Russell 2003)
  71. Re: [shell] command seems flaky (Scott Anderson 2003)
  72. [shell] command seems flaky (Paul Uttermohlen 2003)
  73. Re: [shell] (Kalin Mintchev 2003)
  74. Re: [shell] (Brian Fries 2003)
  75. Re: [shell] (Dale's Stuff 2003)
  76. Re: [shell] (Dale's Stuff 2003)
  77. Re: [shell] (Kalin Mintchev 2003)
  78. Re: [shell] (Kalin Mintchev 2003)
  79. [shell] (dale 2003)
  80. Re: [shell] (Me 2002)
  81. Re: [shell] (Michael Davis 2002)
  82. Re: [shell] (Kalin Mintchev 2002)
  83. Re: [shell] (John Peacock 2002)
  84. Re: [shell] (Kalin Mintchev 2002)
  85. Re: [shell] (Dale's Stuff 2002)
  86. Re: [shell] (Kalin Mintchev 2002)
  87. Re: [shell] (Bob Minor 2002)
  88. Re: [shell] (Kalin Mintchev 2002)
  89. Re: [shell] (Kalin Mintchev 2002)
  90. Re: [shell] (Alain Russell 2002)
  91. Re: [shell] (Kalin Mintchev 2002)
  92. Re: [shell] (Kalin Mintchev 2002)
  93. Re: [shell] (Alain Russell 2002)
  94. Re: [shell] (Kalin Mintchev 2002)
  95. Re: [shell] (Alain Russell 2002)
  96. Re: [shell] (Kalin Mintchev 2002)
  97. Re: [shell] (Jesse Williams-Proudman 2002)
  98. Re: [shell] (Alain Russell 2002)
  99. Re: [shell] (Kalin Mintchev 2002)
  100. Re: [shell] (Alain Russell 2002)
  101. Re: [shell] (Kalin Mintchev 2002)
  102. Re: [shell] (Kalin Mintchev 2002)
  103. Re: [shell] (Alain Russell 2002)
  104. Re: [shell] (Kalin Mintchev 2002)
  105. Re: [shell] (Bob Minor 2002)
  106. [shell] (Kalin Mintchev 2002)
  107. Do [object] and [shell] work on OSX/WebSTAR V? (Dennis J. Bonsall, Jr. 2002)
  108. Re: [Shell] help with Tarring files (John Peacock 2002)
  109. Re: [Shell] help with Tarring files (Erol Guneri 2002)
  110. [Shell] help with Tarring files (Joshua Lynn 2002)
  111. Re: [shell] oddity (Kalin Mintchev 2002)
  112. Re: [shell] oddity (Alain Russell 2002)
  113. Re: [shell] oddity (Alain Russell 2002)
  114. Re: [shell] oddity (NovaDerm Skincare Science 2002)
  115. [shell] oddity (Alain Russell 2002)
  116. Re: Possible to reset Linux file permissions w/in webcat [shell] ? (Gary Krockover 2000)
  117. Re: Possible to reset Linux file permissions w/in webcat [shell] ? (Gary Krockover 2000)
  118. Re: Possible to reset Linux file permissions w/in webcat [shell] ? (ShrPAUL1@aol.com 2000)
  119. Re: Possible to reset Linux file permissions w/in webcat [shell] ? (ShrPAUL1@aol.com 2000)
  120. Re: Possible to reset Linux file permissions w/in webcat [shell] ? (John Butler 2000)
  121. Re: Possible to reset Linux file permissions w/in webcat [shell] ? (Bob Sneidar 2000)
  122. Re: Possible to reset Linux file permissions w/in webcat [shell] ? (Bob Sneidar 2000)
  123. Re: Possible to reset Linux file permissions w/in webcat [shell] ? (ShrPAUL1@aol.com 2000)
  124. Re: Possible to reset Linux file permissions w/in webcat [shell] ? (John Butler 2000)
  125. Re: Possible to reset Linux file permissions w/in webcat [shell] ? (ShrPAUL1@aol.com 2000)
  126. Re: Possible to reset Linux file permissions w/in webcat [shell] ? (ShrPAUL1@aol.com 2000)
  127. Re: Possible to reset Linux file permissions w/in webcat [shell] ? (John Peacock 2000)
  128. Possible to reset Linux file permissions w/in webcat [shell] ? (John Butler 2000)
  129. can we reset Linux file permissions w/in [shell] ? (John Butler 2000)
  130. Re: strange [Shell] things / Linux.2 (John Butler 2000)
  131. strange [Shell] things / Linux.2 (Simon Buchanan 2000)
  132. strange [Shell] things / Linux (Simon Buchanan 2000)
  133. Re: [Shell]ps -A[/Shell] Linux Webcat Q (WebDNA Support 2000)
  134. [Shell]ps -A[/Shell] Linux Webcat Q (John Butler 2000)
  135. Re: [shell] command (dale@gmr.dresdner.net 2000)
  136. Re: [shell] command (Aaron Lynch 2000)
  137. Re: [shell] command (dale@gmr.dresdner.net 2000)
  138. Re: [shell] command (Aaron Lynch 2000)
  139. [shell] command (dale@gmr.dresdner.net 2000)
  140. Re: [Shell] question (WebDNA Support 2000)
  141. [Shell] question (Britt T. 2000)
  142. Re: [shell]? (Doug Hardman 2000)
  143. Re: [shell]? (Peter Ostry 2000)
  144. Re[2]: [shell]? (jpeacock@univpress.com 2000)
  145. Re: [shell]? (Doug Hardman 2000)
  146. Re: [shell]? (Bob Minor 2000)
  147. Re: [shell]? (Peter Ostry 2000)
  148. Re: [shell]? (Doug Hardman 2000)
  149. Re: [shell]? (Michael O Shea 2000)
  150. Re: [shell]? (Doug Hardman 2000)
  151. Re: [shell]? (Matt Helbing 2000)
  152. [shell]? (Doug Hardman 2000)
  153. Re: [Shell] not relative (Clement Ross 2000)
  154. Re: [Shell] not relative (Grant Hulbert 2000)
  155. [Shell] not relative (Britt T. 2000)
  156. [shell] (Michael O Shea 2000)
  157. is [shell] working? (Charles Kline 1999)
  158. [shell] (Terry Wilson [she)
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 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:

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)