CSE 326 - Autumn 2002

Assignment 0

Assigned: Monday, Sept. 30
Due: Monday, Oct. 7

This assignment is designed to help you acquire some familiarity with the use of the Unix environment.

1) Write a "Hello world" program in Java on the instructional Unix machines, i.e. a program which does nothing other than print the text "Hello, world!" and terminates.

2)

    a) Write a csh script that takes a program name as a parameter, runs the program 10,000 times, and outputs to the screen the real/user/system time to run the program each time.
    b) Write a csh script that does the same as the script in (a), only the program output is sent to a file whose name is given as a second parameter to the script.
    c) Write a csh script that does the same as the script in (a), only the output is sent to /dev/null.