From 53869ff15ed8e28649b586857e14fce49acebbe5 Mon Sep 17 00:00:00 2001 From: Martin Stjernholm <mast@lysator.liu.se> Date: Wed, 28 Jun 2000 20:46:47 +0200 Subject: [PATCH] Used to run any command on the NT, e.g. rc. Rev: NT/tools/rntany:1.1 --- NT/tools/rntany | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100755 NT/tools/rntany diff --git a/NT/tools/rntany b/NT/tools/rntany new file mode 100755 index 0000000000..9ac773ebef --- /dev/null +++ b/NT/tools/rntany @@ -0,0 +1,23 @@ +#!/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); +} -- GitLab