Using Rucs2

Rucs2 is a file server manufactured by Sun. It runs the Solaris operating system, which is a version of unix. Rucs is a different name for the same machine. This web page provides some information on some of the unix features of using solaris and unix.

.cshrc files

Occasionally students are not able to use rucs2 effectively because the .cshrc files on their account are missing or are not correct. The most obvious symptom of having an incorrect incorrect .cshrc files is that entering commands such as "submit" cause a "Command not found" error to occur.

The commands in your .cshrc file are executed every time you login to your unix account. You can see your .cshrc files using the "ls -a" command under unix. You can also find them on your H: drive, which is the same directory.

To set up your .cshrc files correctly, follow these steps:


Compiling and Running Ada on Rucs2

To compile the file foo.adb, use the command

       gnatmake foo
This will create an executable file called foo which you can execute by simply entering the command
           foo

The libraries used by gnatmake are not the ones normally set up by the default .cshrc.solaris file for solaris. To cause your .cshrc.solaris file to set up the correct libraries you will need to add the line

 
            source /usr/local/bin/ada_env
        
to the end of your
 .cshrc.solaris
file. This line will take effect the next time you login to rucs2 (or you can do the command source .cshrc and it will execute the commands in the .cshrc file).

You do not need to do anything special to run gnatmake on the linux machines.

Using the Submit Command on Rucs2

Here are some examples:
        submit itec320-01 file1 file2 file3

        submit -ls itec320-01 

        submit itec320-01 -file2 

        submit -rm itec320-01 
        

Running Prolog on Rucs2

The command is /software/unix/bin/xsb. You can find this out using "which prolog". Remember that prolog uses the delete key rather than the backspace key.

Some Useful Unix Commands

Directory listing ls
Long information ls -l
Information on a single file ls -l file
Display a file cat file
Copy file1 to file2 cp file1 file2
Edit file1 vim file1
Simple editor pico file1
Make directory dir1 mkdir dir1
Change to directory dir1 cd dir1
Go to parent directory cd ..
Print working directory pwd
Remove file1 rm file1