2 /*=====================================================================*\
3 || ################################################################### ||
4 || # ViewSVN [#]version[#]
5 || # --------------------------------------------------------------- # ||
6 || # Copyright ©2002-[#]year[#] by Iris Studios, Inc. All Rights Reserved. # ||
7 || # This file may not be reproduced in any way without permission. # ||
8 || # --------------------------------------------------------------- # ||
9 || # User License Agreement at http://www.iris-studios.com/license/ # ||
10 || ################################################################### ||
11 \*=====================================================================*/
14 * Class that interacts with the command line system
20 * Interacts with the command line via escapes and executions
28 * Wrapper for escapeshellarg()
32 * @param string The argument
34 * @return string Cleaned argument
36 function arg($argument)
38 return escapeshellarg($argument);
42 * Wrapper for escapeshellcmd
46 * @param string Command
48 * @return string Cleaned command
50 function cmd($command)
52 return escapeshellcmd($command);
56 * Executes a shell command and returns all the output
61 * @param string UNIX command
63 * @return array Output
65 function exec($command)
67 exec($command, $output);
72 /*=====================================================================*\
73 || ###################################################################
76 || ###################################################################
77 \*=====================================================================*/