aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Elliston <bje@gnu.org>2018-12-07 17:08:23 +1100
committerBen Elliston <bje@gnu.org>2018-12-07 17:08:23 +1100
commitc10ea972b141ddd6307cd679fad4f1d8306a7904 (patch)
tree91af6e25e430ca2353fb147c1eb7f0c10b3d9d4b
parent608a986a4d59a7864017fc94f10c729dc34006ec (diff)
downloaddejagnu-c10ea972b141ddd6307cd679fad4f1d8306a7904.zip
dejagnu-c10ea972b141ddd6307cd679fad4f1d8306a7904.tar.gz
dejagnu-c10ea972b141ddd6307cd679fad4f1d8306a7904.tar.bz2
* doc/dejagnu.texi: Add more missing material.
-rw-r--r--ChangeLog4
-rw-r--r--doc/dejagnu.texi42
2 files changed, 46 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index be7b83c..57ca69e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2018-12-07 Ben Elliston <bje@gnu.org>
+
+ * doc/dejagnu.texi: Add more missing material.
+
2018-12-07 Jacob Bachmeyer <jcb62281@gmail.com>
* testsuite/runtest.all/default_procs.tcl (lib_ret_test): Tidy.
diff --git a/doc/dejagnu.texi b/doc/dejagnu.texi
index d2629ef..32ef3e6 100644
--- a/doc/dejagnu.texi
+++ b/doc/dejagnu.texi
@@ -3080,14 +3080,28 @@ variable (@code{$var}).
@subsubheading local_exec Procedure
@findex local_exec
+Run the specified command on the local machine, redirecting input from
+file @code{inp} (if non-empty), redirecting output to file @code{outp}
+(if non-empty), and waiting @code{timeout} seconds for the command to
+complete before killing it. A two-element list is returned: the exit
+status of the command and any output produced by the command. If output
+is redirected, this may or may not be empty. If output is redirected,
+both stdout and stderr will appear in the specified file.
+
@quotation
@t{@b{local_exec} @i{commandline} @i{inp} @i{outp} @i{timeout}}
@end quotation
@table @asis
@item @code{inp}
+Redirect input into the input filename if not set to @code{""}.
+
@item @code{outp}
+Redirect output into the output filename if not set to @code{""}.
+
@item @code{timeout}
+Timeout in seconds.
+
@end table
@node remote_binary procedure, remote_close procedure, local_exec procedure, Procedures For Remote Communication
@@ -3127,6 +3141,10 @@ parameter can be left off if the @code{fileid} field in the
@subsubheading remote_download Procedure
@findex remote_download
+Download a file to a destination machine. This procedure returns either
+an empty string (indicating failure) or the name of the file on the
+destination macine.
+
@quotation
@t{@b{remote_download} @i{dest}
@i{file}
@@ -3135,22 +3153,46 @@ parameter can be left off if the @code{fileid} field in the
@table @asis
@item @code{dest}
+Destination machine name.
+
@item @code{file}
+Filename.
+
@item @code{args}
+If the optional destination filename is specified, that filename will be
+used on the destination machine.
@end table
@node remote_exec procedure, remote_expect procedure, remote_download procedure, Procedures For Remote Communication
@subsubheading remote_exec Procedure
@findex remote_exec
+Execute the supplied program on a remote host. A two-element list is
+returned. The first element is the exit status of the program or -1 if
+execution failed. The second element is any output produced by the
+program. This may be an empty string if output from the program was
+redirected.
+
@quotation
@t{@b{remote_exec} @i{hostname} @i{program} @i{args}}
@end quotation
@table @asis
@item @code{hostname}
+Name of the host to execute the command on.
+
@item @code{program}
+Command
@item @code{args}
+There are four optional arguments:
+
+@enumerate
+@item arguments to pass to the program;
+@item an input filename to feed to stanard input of the command;
+@item an output filename where the output from the command should be written; and
+@item timeout value in seconds.
+@end enumerate
+
@end table
@node remote_expect procedure, remote_file procedure, remote_exec procedure, Procedures For Remote Communication