Re: [shell]

This WebDNA talk-list message is from

2002


It keeps the original formatting.
numero = 46450
interpreted = N
texte = On Thu, 19 Dec 2002, John Peacock wrote: > Kalin Mintchev wrote: > > command line: > > ./replc.sh <\!--HAS_WEBDNA_TAGS--> <\!--HAS_WEBDNA_TAGS-->[include > > \/includes\/counters\/booooo_counter.inc] > > /path/to/file/moo.html > > > > 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]i can not do that - the tags get interpreted by wc before the thing is passed to the shell so there is no variables anymore and i get the error that the include file is not found....so i changed the variables - instead of i have now only TAGS--> and [raw]ed the [include] tag... i added echos to show the variables the script works with... 1. in the command line the echoed variables are: TAGS--> TAGS-->[include \/includes\/counters\/boo_counter.inc] /path/to/me/file.htmlthis works fine..... i can't do it without escaping the slashes here2. in the [shell]: TAGS--> TAGS-->[include \/includes\/counters\/boo_counter.inc] /path/to/me/file.htmlwhich is the same..... so the script gets executed but it doesn't do the sed... i guess... i added sudo before the sed command in the script and again it works from the command line but not from the template... not escaping the slashes here doesn't help either - and it shouldn't because the variables should be passed to the sed in the script so they'll have to be escaped anyway... even if the [shell] is supposed to prechew the command.... the script is 775ed so everybody can execute it. users don't matter...doesn't do it....> > 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?the script is in the same directory where the template is. that's why is ./rplec.sh and that's how it executes from the command line other suggestions i tried were: /bin/sh ./replc.sh .... and /absolute/path/replc.sh ......> > 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...i wouldn't go through all this trouble if it was only one time change... as i mentioned earlier it's for a custom admin pages for a client that wants to put randomly counter scripts in some of it's site pages... whenever/wherever s/he wants....what next?!....thanks..... > > HTH > > John > >------------------------------------------------------------- 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)
On Thu, 19 Dec 2002, John Peacock wrote: > Kalin Mintchev wrote: > > command line: > > ./replc.sh <\!--HAS_WEBDNA_TAGS--> <\!--HAS_WEBDNA_TAGS-->[include > > \/includes\/counters\/booooo_counter.inc] > > /path/to/file/moo.html > > > > 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]i can not do that - the tags get interpreted by wc before the thing is passed to the shell so there is no variables anymore and i get the error that the include file is not found....so i changed the variables - instead of i have now only TAGS--> and [raw]ed the [include] tag... i added echos to show the variables the script works with... 1. in the command line the echoed variables are: TAGS--> TAGS-->[include \/includes\/counters\/boo_counter.inc] /path/to/me/file.htmlthis works fine..... i can't do it without escaping the slashes here2. in the [shell]: TAGS--> TAGS-->[include \/includes\/counters\/boo_counter.inc] /path/to/me/file.htmlwhich is the same..... so the script gets executed but it doesn't do the sed... i guess... i added sudo before the sed command in the script and again it works from the command line but not from the template... not escaping the slashes here doesn't help either - and it shouldn't because the variables should be passed to the sed in the script so they'll have to be escaped anyway... even if the [shell] is supposed to prechew the command.... the script is 775ed so everybody can execute it. users don't matter...doesn't do it....> > 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?the script is in the same directory where the template is. that's why is ./rplec.sh and that's how it executes from the command line other suggestions i tried were: /bin/sh ./replc.sh .... and /absolute/path/replc.sh ......> > 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...i wouldn't go through all this trouble if it was only one time change... as i mentioned earlier it's for a custom admin pages for a client that wants to put randomly counter scripts in some of it's site pages... whenever/wherever s/he wants....what next?!....thanks..... > > HTH > > John > >------------------------------------------------------------- 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/ Kalin Mintchev

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:

quotation marks (2004) unable to launch acgi in WebCat (1997) upgrading (1997) unsubscribe (1997) authorizenet/webmerchant (2000) [TaxableTotal] - not working with AOL and IE (1997) [WebDNA] [test] last one, sorry...:p (2009) won't serve .tpl (2000) Transferring textareas (1997) Header info in content (1998) Links to show shopping cart. (1998) [WebDNA] How to get a screen size (2009) Clear command and ShoppingCart.tmpl (1997) (2003) Only charge card when product shipped ? (1997) WebCatalog 2.0 & WebDNA docs in HTML ... (1997) Protect (1997) Help needed! (1998) Re:quit command on NT (1997) TCP Connect for a newbie (2002)