| 1 | |
| 2 | <refentry id="pwd"> |
| 3 | |
| 4 | <indexterm id="Indexpwd"><primary>pwd</primary></indexterm> |
| 5 | <refentryinfo><title>Miscellaneous</title></refentryinfo> |
| 6 | <refmeta> |
| 7 | <refentrytitle>pwd</refentrytitle> |
| 8 | </refmeta> |
| 9 | |
| 10 | |
| 11 | |
| 12 | <refnamediv> |
| 13 | <refname>pwd</refname> |
| 14 | <refpurpose> |
| 15 | Asks the underlying operating system for the current directory |
| 16 | name as a string. |
| 17 | </refpurpose> |
| 18 | </refnamediv> |
| 19 | |
| 20 | <refsect1> |
| 21 | <title>Description</title> |
| 22 | <para>Plugin opcode in cs_date.</para> |
| 23 | <para> |
| 24 | <command>pwd</command> call the operating system to determine |
| 25 | the current directory (folder). <command>pwd</command> runs |
| 26 | at i-time only. |
| 27 | </para> |
| 28 | </refsect1> |
| 29 | |
| 30 | <refsect1> |
| 31 | <title>Syntax</title> |
| 32 | <synopsis>Sres <command>pwd</command></synopsis> |
| 33 | </refsect1> |
| 34 | |
| 35 | <refsect1> |
| 36 | <title>Performance</title> |
| 37 | <para> |
| 38 | <emphasis>Sres</emphasis> -- the returned string. |
| 39 | </para> |
| 40 | </refsect1> |
| 41 | |
| 42 | <refsect1> |
| 43 | <title>Example</title> |
| 44 | <para> |
| 45 | Here is an example of the pwd opcode. It uses the file <ulink url="examples/pwd.csd"><citetitle>pwd.csd</citetitle></ulink>. |
| 46 | |
| 47 | <example> |
| 48 | <title>Example of the pwd opcode.</title> |
| 49 | |
| 50 | <para>See the sections <link linkend="UsingRealTime"><citetitle>Real-time Audio</citetitle></link> and <link linkend="CommandFlags"><citetitle>Command Line Flags</citetitle></link> for more information on using command line flags.</para> |
| 51 | <xi:include href="examples-xml/pwd.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/> |
| 52 | </example> |
| 53 | </para> |
| 54 | </refsect1> |
| 55 | |
| 56 | <refsect1> |
| 57 | <title>See also</title> |
| 58 | <para><link linkend="MiscopcodesTop"><citetitle>Miscellaneous opcodes</citetitle></link></para> |
| 59 | </refsect1> |
| 60 | |
| 61 | <refsect1> |
| 62 | <title>Credits</title> |
| 63 | <para> |
| 64 | <simplelist> |
| 65 | <member>Author: &namejohn;</member> |
| 66 | <member>July 2012</member> |
| 67 | </simplelist> |
| 68 | <para>New in version 5.18</para> |
| 69 | </para> |
| 70 | </refsect1> |
| 71 | </refentry> |