2009-01-23 23:11:39 -07:00
|
|
|
% if(! ~ $#debug_shell 0) {
|
|
|
|
<form method="POST" name="prompt">
|
2009-07-28 12:49:53 -06:00
|
|
|
<input size="80" type="text" name="command" value="%($"post_arg_command%)">
|
|
|
|
<input type="submit" Value="Run">
|
2009-01-23 23:11:39 -07:00
|
|
|
</form>
|
|
|
|
<script language="javascript"><!--
|
|
|
|
document.prompt.command.focus()
|
|
|
|
//--></script>
|
|
|
|
|
|
|
|
%{
|
|
|
|
fn evl {
|
|
|
|
# Buffering is probably messing this up:
|
|
|
|
#rc -c 'flag x +;{'^$post_arg_command'} |[2] awk ''{print ">> "$0}'''
|
2009-01-25 07:42:56 -07:00
|
|
|
rc -c 'flag s +; flag x +;'^$post_arg_command
|
2009-01-23 23:11:39 -07:00
|
|
|
}
|
|
|
|
if(! ~ $#post_arg_command 0 && ! ~ $#post_arg_command '') {
|
2009-07-28 12:49:53 -06:00
|
|
|
echo '<hr><pre>'
|
2009-01-23 23:11:39 -07:00
|
|
|
evl | escape_html |[2] awk '{print "<b>"$0"</b>"}'
|
|
|
|
echo '</pre>'
|
|
|
|
}
|
|
|
|
%}
|
|
|
|
% }
|
|
|
|
|
2009-07-28 12:49:53 -06:00
|
|
|
<hr><pre>
|
2008-10-17 19:36:22 -06:00
|
|
|
% env | escape_html
|
2009-07-28 12:49:53 -06:00
|
|
|
</pre><hr>
|
2009-01-23 23:11:39 -07:00
|
|
|
|
2008-10-17 19:36:22 -06:00
|
|
|
% umask
|
|
|
|
|