Tuesday, May 14, 2024
 Popular · Latest · Hot · Upcoming
4
rated 0 times [  4] [ 0]  / answers: 1 / hits: 4404  / 2 Years ago, tue, october 4, 2022, 8:09:52

Possible Duplicate:

Automatically close application after custom time?






I want to stop/kill my totem player after a specific amount of time. Can it be done?


More From » time

 Answers
3

It can be done with a simple command. Once Totem is running, open up the terminal and enter the following line:



$ sleep n && totem --quit


Where n is the number of seconds you want to have elapsed before Totem is closed.



Explanation of the command



This is a very simple command, and if you want to learn more about using the terminal you should consider reading a bash tutorial, like this one.



The sleep n command waits until n seconds have elapsed and then the next command can be run.



Writing && after it tells the terminal to run another command as soon as the previous is finished, which is why I have written totem --quit after it.



You can do many more actions and not just quitting. Many applications in linux have a command line interface, which allow you to do this. To see what actions you can do on them through their interface, it is a good idea to check its manual, by running in a terminal $ man <application>; or help text, which is usually shown by running in a terminal $ <application> --help.


[#38794] Wednesday, October 5, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
pilun

Total Points: 270
Total Questions: 100
Total Answers: 94

Location: England
Member since Sat, Feb 13, 2021
3 Years ago
pilun questions
Thu, Sep 16, 21, 18:43, 3 Years ago
Mon, Aug 23, 21, 04:32, 3 Years ago
Wed, Sep 14, 22, 11:04, 2 Years ago
;