Changeset 20 for trunk/www/task.php
- Timestamp:
- Jun 12, 2009, 11:18:23 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/www/task.php
r16 r20 30 30 file_put_contents($this->TempScript, $Task['CommandList']); 31 31 chmod($this->TempScript, 0755); 32 passthru($this->TempScript, $Output);33 //exec($Script, $Output);34 $Output = ''; //implode("\n", $Output);35 //echo($Output);32 //passthru($this->TempScript, $Output); 33 exec($this->TempScript, $Output); 34 $Output = implode("\n", $Output); 35 echo($Output); 36 36 $this->Database->query('UPDATE Task SET State="Finished", Output="'.addslashes($Output).'" WHERE Id='.$Task['Id']); 37 37 }
Note:
See TracChangeset
for help on using the changeset viewer.