Running Applications in UNIXThis document is intended to explain the basic commands and procedures for running statistical applications on a UNIX platform. This Information is tailored to the UNIX environment present in SSD's Economics Laboratory, yet links are provided which reflect a more general and complete introduction to the UNIX operating system, as well as each particular software application.Getting a UNIX Command PromptAfter you have logged on to a machine in the Econ Lab, there are two ways to bring up a UNIX command prompt:
Running Applications From HomeTo run applications on the Athens server from home, follow the same steps as in #2 above. (If you are on the UC network you can get a copy of SSH here. If not, check out www.ssh.com.)To run applications from home in Xwindows mode, you also need a copy of X-Win32. X-Win32 is licensed by SSCS for use for members of the Social Sciences Division. Instructions for obtaining and installing X-Win32 can be found here. Basic UNIX CommandsHere are some of the most common commands that you will need to get started running applications in a UNIX environment.
SPSSTypespss to start, and ctrl-Z to exit.To run an SPSS prodram from the UNIX prompt, type: spss -m inputfile
>outputfileThe biggest difference in running SPSS in UNIX rather than windows is that output files are saved in a different format. Windows output files are saved as .out, while UNIX output files are .lst. These formats are incompatible, so to open a Windows output file on UNIX, or vice versa, you will have to save it first as plain text. Data and syntax files are the same however, so as long as your analyses are saved as a syntax file, they can be run to produce output on either platform. For more information on running SPSS in UNIX, check out these sites: SASTypesas to start, and ctrl-D to exit.To run a SAS program from the UNIX prompt, type sas filename.
The SAS log file will be saved to filename.log and the output will be saved
to filename.lst.While running, all the data files created by the SAS program are stored under a temporary workspace (/tmp). After running the program, the temporary files are erased automatically, but if the running process is interrupted the temporary files will remain. If this occurs, go to /tmp to delete the working files and release the space back for public use. You may save the SAS working data file as a permanent data file if you want to use the data periodically. The simplest way to do this is to specify the storage space by assigning the library. For more information on running SAS in UNIX, check out these sites: StataTypestata to run in plain text mode, or xstata to run
in XWindows mode. Type exit to exit.To run a Stata program from the UNIX prompt, type: stata -b do mydofile
Stata runs basically the same in Windows and UNIX. The only thing you will need to get a feel for is the filesystem setup. Once you have started Stata, you can type pwd to find what directory you are in. This is your default working
directory. To find where the Stata executable resides, where ado files are stored,
etc., use the sysdir command.For more information on running Stata in UNIX, check out these sites: |