LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-04-2016, 12:24 AM   #1
julianvb
Member
 
Registered: Apr 2009
Posts: 390

Rep: Reputation: 3
How to Specify Running Time of a Background Process in a Bash Script


2016-01-03

I am interested in knowing how to specify the amount of time I want a background
program to run in a bash script. As an example, I would like to tell cvlc to play
only the first minute of an mp3 file and bash to terminate the script afterwards.

Any help will be greatly appreciated.

Julianvb

Last edited by julianvb; 01-05-2016 at 01:46 PM. Reason: improving appearance of post.
 
Old 01-04-2016, 01:30 PM   #2
julianvb
Member
 
Registered: Apr 2009
Posts: 390

Original Poster
Rep: Reputation: 3
Hi, Everyone,

This thread of mine was accidentally posted before I could edit and finalize it. Now I've no control over it. How can I delete it?
I've just solved the problem under consideration by using the run-time and play-and-exit options of VLC.

Julianvb
 
Old 01-04-2016, 01:49 PM   #3
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Yawnstown, Ohio
Distribution: Mojave
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
Quote:
Originally Posted by julianvb View Post
Hi, Everyone,

This thread of mine was accidentally posted before I could edit and finalize it. Now I've no control over it. How can I delete it?
I've just solved the problem under consideration by using the run-time and play-and-exit options of VLC.

Julianvb
You can't delete it.
You can edit it. Go to the first post and hit the edit button.
Edit, hit "save", or "post" and ta da.

And/or use the "Thread Tools" drop-down menu near the top of the opening post.
Mark thread as Solved... or similar.

Last edited by Habitual; 01-04-2016 at 01:50 PM.
 
Old 01-05-2016, 01:50 PM   #4
julianvb
Member
 
Registered: Apr 2009
Posts: 390

Original Poster
Rep: Reputation: 3
Habitual,

Thanks very much. With your advice, I finally managed to clean up my initial post, via 'Go Advanced'.

Julianvb
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Bash Script: Kill a process after fixed time. bruno.miranda Linux - Newbie 8 06-28-2012 09:31 PM
Bash Script: Kill a process after fixed time. bruno.miranda Linux - Newbie 1 06-28-2012 03:48 PM
How to stop a process running in background (on a shell script) Azk00 Linux - Newbie 3 02-01-2008 05:24 AM
time a process within bash script aubrey-calm2 Linux - General 2 06-15-2007 02:39 PM
bash script to accept input ONLY until background process completes andrewstr Linux - Software 2 03-17-2004 01:02 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:14 PM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration