Changing the Working Directory

You can change the working directory using the Change Directory panel or by entering a command in the Commands text box in the main window. Changing the working directory changes the path used when you click the button for the working directory in file selectors, and (in most cases) changes the default directory when file selectors are opened. It also changes the directory used to write job files (the job launch directory). You can also change the working directory by setting a preference.

To open the Change Directory panel:

This panel is like a standard file selector panel, but the Files of type option menu is grayed out, so that you can only select a directory.

You can also change the working directory by entering the changedirectory command in the Command Input Area. This command is aliased by default to chdir or cd in Maestro.

The syntax of the command is as follows:

changedirectory directory

where directory can be a relative path (like file1.dat or ../file1.dat) or absolute path (like /home/herc/file1.dat). ~ and ~user can be used. They are expanded out automatically. Other special shell characters are NOT expanded.

Environment variables can also be used in a limited fashion. Environment variables must appear at the beginning of a directory entry. For example, $MYSPECIALDIR/mmodstuff is valid but /home/$PLATFORM/mmodstuff is not, since the environment variable does not appear at the beginning of the directory name.

Environment variables must be defined in the shell from which Maestro is started. For example, if MYSPECIALDIR is defined in the shell used to start Maestro, then it can be used as described above. If it does not exist, a warning dialog is displayed.

Related Topics


Legal Notice

File: project_menu/changedir_panel.html
Last updated: 11 Feb 2014