|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
SlickEdit: Code in over 40 languages across 7 platforms. SlickEdit’s unmatched power, speed, and flexibility allows even the most accomplished developers to write better code faster. Download a free trial today! |
|
#1
|
|||
|
|||
|
working_dir,system.pl --> uid=500 gid=100
------------------------------------------- #!/usr/bin/perl # Here is system.pl use CGI; $foo=new CGI; print $foo->header; # -- chdir is ok $working_dir="/home/httpd/htdocs/webalizer/"; chdir($working_dir); # -- mkdir no action mkdir("html",0755); #-- no action chown("500","100","html"); #-- no action $temp1="-Q"; # -- first parameter $temp2="/var/log/httpd/access_log"; #-- second parameter @output=`webalizer $temp1 $temp2`; #-- no action # --`cp * *` could be no action too @output=`webalizer $temp2`; print "@output<br>"; #--- output is ok,..but # --but no any file created # --if I chmod all exist files to -rw-r--rw(others)- # --the exist files will be updated @output=`ls`; #-- output is ok print "<P>List files: @output<br>"; ------------------------------------------- # --if I chmod $working_dir to -rw-r--rw(others)- # --no any file created too |
![]() |
| Viewing: Dev Shed Forums > Programming Languages > Perl Programming > system command ->no action |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|