From e44bd18d6294f3391db162a2a091efb2c7b90c91 Mon Sep 17 00:00:00 2001 From: "Mirar (Pontus Hagland)" <pike@sort.mirar.org> Date: Sat, 13 Dec 1997 18:39:19 +0100 Subject: [PATCH] anchor bla bla NAME bla bla -> method name= Rev: tutorial/tutorial.wmml:1.39 --- tutorial/tutorial.wmml | 32 ++++++++++++-------------------- 1 file changed, 12 insertions(+), 20 deletions(-) diff --git a/tutorial/tutorial.wmml b/tutorial/tutorial.wmml index 64418eba47..cbbe20998a 100644 --- a/tutorial/tutorial.wmml +++ b/tutorial/tutorial.wmml @@ -10153,40 +10153,32 @@ object instead. </anchor> <HR NEWPAGE> -<anchor name=exece> -<dl> -<dt><encaps>NAME</encaps><dd> -<tt>exece</tt> - execute a program -<p> -<dt><encaps>SYNTAX</encaps><dd> -<tt>int exece(string <I>file</I>, array(string) <I>args</I>);<br> +<method name=exece> +<man_syntax> +int exece(string <I>file</I>, array(string) <I>args</I>);<br> or<br> int exece(string <I>file</I>, array(string) <I>args</I>, mapping(string:string) <I>env</I>);<br> -</tt> -<p> -<dt><encaps>DESCRIPTION</encaps><dd> +</man_syntax> +<man_description> This function transforms the Pike process into a process running the program specified in the argument 'file' with the argument 'args'. If the mapping 'env' is present, it will completely replace all environment variables before the new program is executed. This function only returns if something went wrong during exece(), and in that case it returns zero. -<p> -<dt><encaps>NOTA BENE</encaps><dd> +</man_description> +<man_note> The Pike driver _dies_ when this function is called. You must use fork() if you wish to execute a program and still run the Pike driver. -<p> -<dt><encaps>EXAMPLES</encaps><dd> +</man_note> +<man_example> <tt>exece("/bin/ls", ({"-l"}));<br> exece("/bin/sh", ({"-c", "echo $HOME"}), (["HOME":"/not/home"]));<br> </tt> -<p> -<dt><encaps>SEE ALSO</encaps><dd> -<link to=fork>fork</link> and <link to=Stdio.File.pipe>file->pipe</link> -<p> -</dl> -</anchor> +</man_example> +<man_see>fork, Stdio.File->pipe</man_see> +</method> <HR NEWPAGE> <anchor name=exit> -- GitLab