NLMISC_CATEGORISED_COMMAND(nel,sleep,"Freeze the service for N seconds (for debug purpose)","<N>")
NLMISC_CATEGORISED_COMMAND(nel,sleep,"Freeze the service for N seconds (for debug purpose)","<N>")
{
{
nlunreferenced(rawCommandString);
nlunreferenced(quiet);
nlunreferenced(human);
if(args.size()!=1)returnfalse;
if(args.size()!=1)returnfalse;
sint32n=atoi(args[0].c_str());
sint32n;
fromString(args[0],n);
log.displayNL("Sleeping during %d seconds",n);
log.displayNL("Sleeping during %d seconds",n);
@ -897,6 +918,10 @@ NLMISC_CATEGORISED_COMMAND(nel, sleep, "Freeze the service for N seconds (for de
NLMISC_CATEGORISED_COMMAND(nel,system,"Execute the command line using system() function call (wait until the end of the command)","<commandline>")
NLMISC_CATEGORISED_COMMAND(nel,system,"Execute the command line using system() function call (wait until the end of the command)","<commandline>")
{
{
nlunreferenced(rawCommandString);
nlunreferenced(quiet);
nlunreferenced(human);
if(args.size()!=1)returnfalse;
if(args.size()!=1)returnfalse;
stringcmd=args[0];
stringcmd=args[0];
@ -915,6 +940,10 @@ NLMISC_CATEGORISED_COMMAND(nel, system, "Execute the command line using system()
NLMISC_CATEGORISED_COMMAND(nel,launchProgram,"Execute the command line using launcProgram() function call (launch in background task without waiting the end of the execution)","<programName> <arguments>")
NLMISC_CATEGORISED_COMMAND(nel,launchProgram,"Execute the command line using launcProgram() function call (launch in background task without waiting the end of the execution)","<programName> <arguments>")
{
{
nlunreferenced(rawCommandString);
nlunreferenced(quiet);
nlunreferenced(human);
if(args.size()!=2)returnfalse;
if(args.size()!=2)returnfalse;
stringcmd=args[0];
stringcmd=args[0];
@ -927,6 +956,10 @@ NLMISC_CATEGORISED_COMMAND(nel, launchProgram, "Execute the command line using l
NLMISC_CATEGORISED_COMMAND(nel,killProgram,"kill a program given the pid","<pid>")
NLMISC_CATEGORISED_COMMAND(nel,killProgram,"kill a program given the pid","<pid>")