keep computer from sleeping when terminal is active
On Ubuntu 10.10, I have set my power management preferences to put computer to sleep when inactive for 2 hours.
I run a long-running job in the terminal (it will run for days). After the 2 hours, Ubuntu sleeps my computer.
Is there a way to tell Ubuntu that the job running in the terminal constitutes activity and hence the computer should not sleep while it is running?