2
votes
1answer
134 views

How to pause with specific time between two command in script?

I want to do such as following: #!/bin/bash command1 pause 30 seconds command2 exit This is only example script with pause of 30 seconds between run of 2 command. How to do this?
2
votes
2answers
39 views

Stop process on power button press

I have an old ubuntu pc running a minecraft server, but I only want it on at certain times. I want to be able to turn it on and off using only the power button. I am able to turn it on, but to turn ...
0
votes
1answer
1k views

How can I stop a terminal connection from timing out

At work I have two machines: Windows XP and Ubuntu 11.04. On my XP machine I use Putty to connect to some servers and can leave those windows open for weekends without them timing out. However, when ...
3
votes
3answers
2k views

How to run a program for a fixed period of time?

I am looking for a method built-in to ubuntu that will allow me to run a script or program or whatever for a fixed period of time. I found a program that does this in a way I like, but the package is ...