PROBLEM

System commands access the wrong directory

Last Published: April 25, 2020

Solution or Workaround

Description:

When 'ls' or 'pwd' is typed at the Arc: prompt, it lists the contents of the home directory.

Cause:

This is caused by having a 'cd' line in the .cshrc file.

A 'cd' line may have been placed in the .cshrc file to display the current location, or to remove the '/tmp_mnt' string that the automounter adds to the returned pathname. Arc sub-processes that access the system (any command submitted to the operating system: ls, &DATA, &SYS, etc.) re-execute the .cshrc file; thus, if 'cd' is found in the .cshrc file, the Arc sub-process returns to the home directory before executing.

Article ID:000001253

Software:
  • Legacy Products

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options

Discover more on this topic