cd
change the current working directory
Supported for RTserver, RTclient, RTmon, RTgms, and RTacl:
The cd
command changes the current working directory. If cd
is called with an argument, it changes to the directory pathname
. If cd
is called without an argument, it changes to the user’s home directory.
On OpenVMS, Windows, and UNIX, the cd
command calls getenv("HOME")
to determine the user’s home directory. On OpenVMS, this fails if the DEC C run-time library has not been fully initialized (for example, when embedding SmartSockets into an OpenVMS FORTRAN program). On Windows systems, this fails where the HOME
environment variable does not exist.
UNIX Examples:
PROMPT>pwd
sh command executing with string: pwd /home/ssuser/src/ipc PROMPT>cd ..
Current directory changed to .. PROMPT>pwd
sh command executing with string: pwd /home/ssuser/src
OpenVMS Examples:
PROMPT>sh show def
sh command executing with string: show default WKST1$DKA300:[DEMO.SS55.STANDARD] PROMPT>cd [-]
Current directory changed to [-] PROMPT>pwd
sh command executing with string: show default WKST1$DKA300:[DEMO.SS55]
Windows Examples:
PROMPT>cd ..
Current directory changed to .. PROMPT>ls
sh command executing with string: dir Volume in drive is WORKSTATION1 Volume Serial Number is 000D-0000 Directory of D:\users\ss55 11/18/99 09:24a <DIR> . 11/18/99 09:24a <DIR> .. 11/18/99 09:24a <DIR> ss55 3 Files(s) 0 bytes 836,960,256 bytes free
TIBCO SmartSockets™ User’s Guide Software Release 6.8, July 2006 Copyright © TIBCO Software Inc. All rights reserved www.tibco.com |