I am running Ubuntu 10.10 and want to know how to set up a script that will do the following:
a) reboot
b) automatically log in
c) automatically run a program and/or script that requires sudo - that is, in order for the program to run intially, it requires a password

I am familiar with Ubuntu's features and can set the machine to re-boot without the login but do not know how to then get a program to initiate.

Help is appreciated.