This lab's goal is to provide you with time and assistance to work on
your assignment #2. The assignment is due Friday at midnight but you're
more than welcome to submit it early.
Send an e-mail message when you're ready to turn it in. Include the source
code and the URL for your two scripts.
Restart your servers.
Notes:
- type
man crontab for information
on crontab
- your default editor is in the EDITOR environment variable. You can use
setenv to change it. Take a look at your .login
file that has at the end a line which sets vi as your default
editor. You can use pico or emacs if you don't like vi.
- starthttpd has two switches, -r and -k that mean restart the server and
kill the server respectively. Before you set your crontab entry try starthttpd
and make sure that it works for you. Try stopping and starting the server and
check in the error_log to see that it worked. You can look at the last n lines
of a file with the command
tail -n filename
- once you're sure starthttpd works fine kill your server and set a crontab
entry that referes to a date that's a few minutes in the future, save your
entry and watch the error_log file with
tail -f to see that
your scheduled action does take effect. After that you can change the entry
to refer to another time
Let me know if you have any questions or if you need help.
Office hours are right after the lab in the same room.
Feel free to stay after the lab to work on the assignment,
we'll be in room LH115 from 4:40pm until 6:30pm.