Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8777199
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T19:13:39+00:00 2026-06-13T19:13:39+00:00

I want to write a html page which embed a youtube video and has

  • 0

I want to write a html page which embed a youtube video and has javascript script.
In the script, I will use youtube api
and embed a youtube video
the youtube api will test whether the video has been downloaded fully

I set up a apache server with mysql and php on the local machine, and put the html page in the apache server

I will use shell script to open firefox with this html page, and use ps -ef|grep “firefox” to get its process id
like

firefox http://localhost/test.html

when the youtube api detect that the video has been downloaded fully, I hope it can send a signal to the shell and kill the firefox process
so I think it is not possible for javascript to send a signal to shell on the client
but since the client and the server are on the same machine, when the youtube api detect that the video has been downloaded fully, ajax can inform the server, like write something the a file or mysql databse on the server.

But I don’t know how to link the ajax to sending a signal to shell

does anyone have idea on this? thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T19:13:40+00:00Added an answer on June 13, 2026 at 7:13 pm

    To give a complete Answer… Fire an Ajax-Request, when the Video is successfully downloaded, to a PHP-Script that is executing the Shell-Command. Quick and Dirty it could look like this

    jQuery

    $.get("/runshellcommand.php");
    

    runshellcommand.php

    <?php system("kill -QUIT 123456"); ?>
    

    …in this Example “123456” is the PID of Firefox 😉

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to write a python script which downloads the web-page only if the
I want write a simple query which will fetch data from a table (which
I want to write a batch script statement where: FINDSTR has to check for
I have implemented an XMLHttpRequest() call to a standalone html page which simply has
I am trying to write an aspx page which will crawl through a directory
I want to embed an HTML input form (search bar) in /View/Layouts/default.ctp (which is
I have a select/drop down in my HTML page which has to appear about
I'm currently investigating whether it's possible to write a html/aspx page which contains an
I want to write a little iOS video client and have to use HTTP
I write ASP.NET application and I want to use jQuery DataTables. In Master Page

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.