LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
LinkBack Search this Thread
Old 01-24-2005, 07:17 PM   #1
bglnelissen
Member
 
Registered: Feb 2004
Location: Utrecht Holland
Distribution: Fedora, Debian, Mandrake, OSX, OpenBSD
Posts: 76

Rep: Reputation: 15
Talking quit program after a specific time (prob. BASH)


hello world,

i want my mp3 player to quit after a specific time. How is that done? I bet there is a single BASH command for it, but i can't find none.

bye,
Bas
 
Old 01-24-2005, 07:28 PM   #2
Dark_Helmet
Senior Member
 
Registered: Jan 2003
Posts: 2,786

Rep: Reputation: 367Reputation: 367Reputation: 367Reputation: 367
Well, there's the at daemon (man at). You could add a command to kill your player at a specific time.

If that's not what you're looking for, then you'll probably need to create some sort of shell script to spawn the player, record its PID, and then add the at command to kill it.
 
Old 01-25-2005, 01:22 AM   #3
bglnelissen
Member
 
Registered: Feb 2004
Location: Utrecht Holland
Distribution: Fedora, Debian, Mandrake, OSX, OpenBSD
Posts: 76

Original Poster
Rep: Reputation: 15
thanks for reply,

i was thinking about the same you're talking about, I did not know it was that easy!

bas

Last edited by bglnelissen; 02-21-2005 at 03:07 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
iptables: blocking something.com for specific time farhan Linux - Security 2 06-11-2005 10:15 AM
glibc causes program to quit irisevelyn Linux - Software 9 06-01-2005 01:48 PM
run program automatically at specific time simon_qwl Programming 2 03-20-2005 10:58 AM
Howto run a program for 15 seconds and let it quit itself. bglnelissen Programming 3 03-16-2005 09:37 AM
Running a program for a specific period of time CaptainHowdy Linux - Software 2 08-22-2004 07:02 PM


All times are GMT -5. The time now is 07:52 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration