Location: PHPKode > projects > Leafnode Web Administration > leafwa-0.7.0a1-ap/runcmd.php
<?
/*****
runcmd.php 
==========

Setup for running commands

Note that all commands will be run as user "news".
*****/

$numCmd = 5;

$cmdTitle[1] = "list";
$cCmd[1] = "ls";
$lookFor[1] = "ls";

$cmdTitle[2] = "list (verbose)";
$cCmd[2] = "ls -laF";
$lookFor[12] = "ls";

$cmdTitle[3] = "list subdirectories recursively";
$cCmd[3] = "find .";
$lookFor[3] = "find";

$cmdTitle[4] = "list subdirectories recursively, from /";
$cCmd[4] = "find / | grep abc";
$lookFor[4] = "find";

$cmdTitle[5] = "fetch news";
$cCmd[5] = "/home/philh/ftpin/leafnode-2.0a14-ph/fetchnews -vvv";
$lookFor[5] = "fetchnews";

?>
Return current item: Leafnode Web Administration