2011-08-27 17:26:11 -04:00
|
|
|
#include <stdio.h>
|
2011-09-21 14:52:29 -04:00
|
|
|
#include <libmaxsi/platform.h>
|
2011-08-27 17:26:11 -04:00
|
|
|
#include <libmaxsi/process.h>
|
|
|
|
|
|
|
|
int main(int argc, char* argv[])
|
|
|
|
{
|
|
|
|
// Reset the terminal's color and the rest of it.
|
|
|
|
printf("Please enter the name of one of the following programs:\n");
|
|
|
|
|
|
|
|
const char* programname = "ls";
|
2011-11-20 18:30:24 -05:00
|
|
|
const char* newargv[] = { programname, "/bin" };
|
2011-08-27 17:26:11 -04:00
|
|
|
|
2011-11-20 18:30:24 -05:00
|
|
|
Maxsi::Process::Execute(programname, 2, newargv);
|
2011-08-27 17:26:11 -04:00
|
|
|
|
|
|
|
return 1;
|
|
|
|
}
|