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 09-29-2014, 03:42 PM   #1
julianvb
Member
 
Registered: Apr 2009
Posts: 390

Rep: Reputation: 3
Terminating YouTube html video started with firefox in bash script


2014-09-28

I would like to know how to terminate a short YouTube html video launched with firefox as in the following case.

firefox cat.html &
sleep 50

Any help will be much appreciated.

julianloui
 
Old 09-29-2014, 03:54 PM   #2
astrogeek
Moderator
 
Registered: Oct 2008
Distribution: Slackware [64]-X.{0|1|2|37|-current} ::12<=X<=14, FreeBSD_12{.0|.1}
Posts: 5,265
Blog Entries: 11

Rep: Reputation: 3245Reputation: 3245Reputation: 3245Reputation: 3245Reputation: 3245Reputation: 3245Reputation: 3245Reputation: 3245Reputation: 3245Reputation: 3245Reputation: 3245
I have no idea what you were trying to do, but since you appear to have started the firefox instance as a background process, it should show up if you type 'jobs', then you can kill it with the job number...

Code:
jobs
[X] Running firefox cat.html&

... then take the number shown and type...

kill %X
 
  


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
[SOLVED] bash script runs perfectly when started manually - but not when started by CRON jonasbdk Linux - General 12 08-27-2014 06:54 AM
[SOLVED] [bash] Self-terminating script Mr. Alex Programming 9 08-23-2012 01:38 PM
[SOLVED] No YouTube video when using Firefox, sound okay. Other browsers fine. linustalman Linux - Software 6 12-27-2010 04:56 AM
[SOLVED] Youtube video problem, on Ubuntu Linux using Firefox. prochatz Linux - Software 16 10-29-2009 02:28 AM
Not terminating bash script TheIrish Programming 1 11-13-2008 12:36 AM

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

All times are GMT -5. The time now is 05:39 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