next up previous contents index
Next: Format of the Up: The ZEBRA and Previous: General utility routines

Remote directory utilities

Change remote directory

CALL SZCD (PATH,IRC)

PATH
Character variable specifying the name of the remote directory to be set.
IRC
Integer variable in which the return code is returned.

This routine changes the remote directory to that specified by the character variable PATH. On VM systems, the remote directory should be given in the form user.address or <user.address> If the address is omitted, 191 is assumed.

Get current remote directory

CALL SZPWD (PATH,IRC)

PATH
Character variable in which the current remote directory is returned.
IRC
Integer variable in which the return code is returned.

This routine returns the current remote directory.

Issue remote LS command

CALL SZLS (PATH,CHOPT,IRC)

PATH
Character variable specifying the path name for the remote ls command. If the intention is to list the current working directory, PATH should be set to a single blank.
CHOPT
Character variable specifying the required options: If CHOPT = 'L' a 'long listing' will be returned (Unix and VM systems). This corresponds to the Unix ls option -l and the VM LISTFILE option L.
IRC
Integer variable in which the return code is returned.

This routine issues a remote LS command and returns the output to the client.


Janne Saarela
Tue May 16 09:22:05 METDST 1995