Sonntag, 5. April 2009

timeout(1)

Sometimes we need to test configuration of some process. And sometimes once we start the process we loose control over the system.
That is the case of Xorg. How can we test configuration?
The problem that I faced was that the keyboard in X did not work.
Solution is simple: timeout seconds command
In the case of xinit (to kill it it after 10sec)it would be:
timeout 10 xinit

Suffixes for time can be used: m, h, d.

Keine Kommentare: