core/builtins/start.cif
changeset 0 7f656887cf89
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/core/builtins/start.cif	Wed Jun 23 15:52:26 2010 +0100
@@ -0,0 +1,54 @@
+# start.cif
+# 
+# Copyright (c) 2010 Accenture. All rights reserved.
+# This component and the accompanying materials are made available
+# under the terms of the "Eclipse Public License v1.0"
+# which accompanies this distribution, and is available
+# at the URL "http://www.eclipse.org/legal/epl-v10.html".
+# 
+# Initial Contributors:
+# Accenture - Initial contribution
+#
+
+==name start
+
+==short-description
+
+Starts the specified process and then completely disowns it.
+
+==long-description
+
+This is useful in the situation where you want the process to have a longer lifetime than the L<fshell|fshell> instance that created it. Note the child process does not inherit fshell's I/O handles or environment variables.
+
+==see-also
+
+L<disown|disown>, L<time|time>
+
+==argument string exe-name
+
+The executable to start.
+
+==argument string arguments optional last
+
+The arguments to pass to the exe.
+
+==option bool r rendezvous
+
+Wait for the child process to call C<RProcess::Rendezvous> before exiting. Can not be used with C<--wait>.
+
+==option bool w wait
+
+Wait for the child process to exit before exiting. May not be used with C<--rendezvous>.
+
+==option int t timeout
+
+Only relevant with either C<--rendezvous> or C<--wait>. Causes the command to abort after the specified number of seconds if the child process hasn't called C<RProcess::Rendezvous> or exited (as appropriate) in that time. If the timeout is zero or not specified, the command will wait indefinitely.
+
+==option bool m measure
+
+If specified, measure the time taken for the child process to rendezvous (if C<--rendezvous> is specified) or exit (if C<--wait> is specified). This can be more accurate than using the fshell L<time|time> command if C<exe-name> is not an fshell command, because start doesn't attempt to parse its arguments as an fshell command line (adding the overhead of variable expansion, pipeline establishment etc) or to set up iosrv connections for the child process.
+
+==copyright
+
+Copyright (c) 2006-2010 Accenture. All rights reserved.
+