Skip to content
Snippets Groups Projects
Commit 53869ff1 authored by Martin Stjernholm's avatar Martin Stjernholm
Browse files

Used to run any command on the NT, e.g. rc.

Rev: NT/tools/rntany:1.1
parent a0ff7579
No related branches found
No related tags found
No related merge requests found
#!/usr/local/bin/pike
// Used to run an arbitrary command with sprshd.
inherit "lib.pike";
int verbose=0;
int main(int argc, string *argv)
{
int ret;
if(verbose)
{
ret=do_cmd(argv[1..]);
}else{
ret=silent_do_cmd(argv[1..]);
}
if(ret)
werror("The command returned error code %d.\n",ret);
exit(ret);
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment