As a test I deactivated mod_security and using system() works fine. Thanks PM,<br><br><br>Luis<br><br><div><span class="gmail_quote">On 5/6/07, <b class="gmail_sendername">Luis</b> <<a href="mailto:luis.apiolaza@gmail.com">
luis.apiolaza@gmail.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">I tested using system(etc) in normal text and it produces the same error. I guess that Patrick is right, and it is all about an overzealous mod_security. Thanks for the reply,
<br><br><br>Luis<div><span class="e" id="q_1125fd0ef9273b8c_1"><br><br><div><span class="gmail_quote">
On 5/6/07, <b class="gmail_sendername">Patrick R. Michaud</b> <<a href="mailto:pmichaud@pobox.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">pmichaud@pobox.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On Sat, May 05, 2007 at 08:39:43PM +1200, Luis wrote:<br>> (:source lang=SAS:)[@<br>> data _null_;<br>> call system('c:\simproj\analysis.bat');<br>> run;<br>> @]<br>><br>> when saving the page I get the error message ""The server is temporarily
<br>> unable to service your request due to maintenance downtime or capacity<br>> problems". I have tried several code examples, and have problems only with<br>> call system.<br>><br>> Does anybody:
<br>> 1. Know why is this happening?<br>> 2. have a workaround?<br><br>My guess is that your server has mod_security enabled, and<br>mod_security is disallowing the "system(" part of your post<br>as being a possible site attack.
<br><br>The easy way to verify this would be to simply create a post<br>that doesn't contain any sourceblock directive -- i.e., edit<br>a page and put just the text "system(" or "system('...')".
<br>If the server still blocks the post, it's likely a mod_security<br>issue.<br><br>See <a href="http://www.pmwiki.org/wiki/PmWiki/Troubleshooting#mod_security" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
http://www.pmwiki.org/wiki/PmWiki/Troubleshooting#mod_security
</a> .<br><br>If this is indeed the problem, then you'll want to either disable<br>mod_security for your PmWiki site, or else figure out a way to<br>write the content such that it doesn't trigger mod_security.<br>
<br>In other cases I've recommended using [=...=] as a workaround to<br>separate the "system" from the "(" ... i.e., writing "[=system=]("<br>or "system[==](". But since this text is already inside of a [@...@]
<br>section, that's not going to work. Maybe someone else has an idea.<br><br>Anyway, that's my guess as to the problem -- please let us know<br>how it turns out!<br><br>Pm<br></blockquote></div><br><br clear="all">
<br></span></div><span class="sg">-- <br>Dr Luis A. Apiolaza<br>School of Forestry<br>University of Canterbury<br>Private Bag 4800<br>Christchurch<br>New Zealand</span><div><span class="e" id="q_1125fd0ef9273b8c_3"><br><br>
'We can only see a short distance ahead, but we can<br> see plenty there that needs to be done'--Alan Turing
</span></div></blockquote></div><br>