summaryrefslogtreecommitdiff
path: root/src/tet3/servlib/tcmexec.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/tet3/servlib/tcmexec.c')
-rw-r--r--src/tet3/servlib/tcmexec.c55
1 files changed, 55 insertions, 0 deletions
diff --git a/src/tet3/servlib/tcmexec.c b/src/tet3/servlib/tcmexec.c
new file mode 100644
index 00000000..40b0107b
--- /dev/null
+++ b/src/tet3/servlib/tcmexec.c
@@ -0,0 +1,55 @@
+/*
+ * SCCS: @(#)tcmexec.c 1.5 (96/11/04)
+ *
+ * UniSoft Ltd., London, England
+ *
+ * (C) Copyright 1992 X/Open Company Limited
+ *
+ * All rights reserved. No part of this source code may be reproduced,
+ * stored in a retrieval system, or transmitted, in any form or by any
+ * means, electronic, mechanical, photocopying, recording or otherwise,
+ * except as stated in the end-user licence agreement, without the prior
+ * permission of the copyright owners.
+ *
+ * X/Open and the 'X' symbol are trademarks of X/Open Company Limited in
+ * the UK and other countries.
+ */
+
+#ifndef lint
+static char sccsid[] = "@(#)tcmexec.c 1.5 (96/11/04) TET3 release 3.3";
+#endif
+
+/************************************************************************
+
+SCCS: @(#)tcmexec.c 1.5 96/11/04 TETware release 3.3
+NAME: tcmexec.c
+PRODUCT: TETware
+AUTHOR: Andrew Dingwall, UniSoft Ltd.
+DATE CREATED: May 1992
+
+DESCRIPTION:
+ function to perform a remote execution request
+
+MODIFICATIONS:
+
+************************************************************************/
+
+#include "dtmac.h"
+#include "avmsg.h"
+#include "servlib.h"
+
+
+/*
+** tet_tcmexec() - execute a unix process (eg: cp or find)
+** on a remote system
+**
+** return pid of exec'd process if successful or -1 on error
+*/
+
+long tet_tcmexec(sysid, path, argv, outfile)
+int sysid;
+char *path, **argv, *outfile;
+{
+ return(tet_tcexec(sysid, path, argv, outfile, -1L, -1L, AV_EXEC_MISC));
+}
+