How do you call an external script periodically?

Hi again
Does anyone know if it's possible to call an external script or take some kind of action (like update a database, write to a file etc) at regular intervals while a video is playing?
So the actions would be
1. Is video playing?
2. If yes and time is more than 5 mins then call a script
3. Sleep and repeat from step 1
That's it. Hopefully quite simple
Thanks

yes, you can use setInterval() to periodically call any function and you can create a function that calls your sever-side script.

Similar Messages

  • Can any one tell me how can i call a shell script from pl/sql

    i like to call shell script from pl/sql procedure.
    can any one suggest how can i do this

    Have you not mastered in asking the same kind of question ?
    First do write a script...
    no one will spoon feed you.
    How can i call a shell script from procedure
    How to call Shell Script from pl/sql block
    -Sk

  • How can i call a shell script from procedure

    I have a shell script.now i am i a situation to call that shell script from one of my procedures and need to get a value from that script.
    can u suggest me that how can a call the shell script from pl/sql?

    Is the same question you asked here
    How to call Shell Script from pl/sql block
    -SK

  • How do you call 0900 numbers on iphone?

    how do you call 0900 numbers on iphone? it keeps saying that i cant call it- is there a code or anything?
    im on vodafone
    thanks

    thanks for the advice both
    ive noticed though that sometimes companies provide a cheaper alternative to an 0900 number as in 8***** or something - if this makes any sense? but even those numbers are still blocked???

  • I have lost my external drive on desk top.  How do you remount the external drive

    I have lost my external drive from iMac desk top.  How do you remount the external drive?
    WindyCityNorth

    Kappy Thanks for help..  I had already tried the Disk Utility but external drive did not show.  What worked was to shut down every thing and shut off power to all.  Disconnect power to the external drive.  Connected power to computer and then restarted the computer.  After the computer was up and running, I reconnected power to external drive and then turn it on.  At this point the external drive returned to my desk top

  • HT201250 How do you add an external Hard drive to time machine and share on network?

    How do you add an external Hard drive to time capsule and share it on local network?
    Lee

    Ensure it's formatted as Mac OS Extended, FAT16, or FAT32, connect it to a self-powered hub, and plug it into the Time Capsule's USB port. If the drive is Ethernet and not USB, ignore everything else and just plug it in.
    (71787)

  • How do you call a field?

    Good morning everyone,
    I'm trying to work with the BufferedInputStream (work from friday) and i went to the website:
    http://java.sun.com/j2se/1.4.2/docs/api/java/io/BufferedInputStream.html#BufferedInputStream(java.io.InputStream)
    at that website they have a "field summary" and i want to use the buf array (cause it says thats where the data is stored) but i cant figure out the coding to put it in my project. how do you call a field?

    Fr. Murderess,
    a) The short answer is "no". Only public methods and fields can be accessed that way.
    b) If getting the "buf" field is of paramount importance to you, declare a class like this:
    public class MyBufferedInputStream extends BufferedInputStream {
        public MyBufferedInputStream(InputStream in) { super(in); }
        public MyBufferedInputStream(InputStream in, int size) { super(in, size); }
        public byte[] getBuf() { return buf; }
        public void setBuf(byte[] newBuf) { buf = newBuf; }
    }to get and set the "buf" field. As you can see by reading the source code of BufferedInputStream, the other fields (count, pos and markpos) are needed too, and you will need to provide the getters and setters for the other fields.
    It's better not to "fiddle" with the protected fields of BufferedInputStream. Simply use BufferedInputStream "as is", and don't bother about the "buf" field.
    I think that you will need to tinker only with the size of the buffer (maybe to cache more data inside), but it is available in the second constructor of BufferedInputStream (InputStream in, int size).

  • How do you call a java class from the main method in another class?

    Hi all,
    How do you call a java class from the main() method in another class? Assuming the two class are in the same package.
    Thanks
    SI
    Edited by: okun on May 16, 2010 8:40 PM
    Edited by: okun on May 16, 2010 8:41 PM
    Edited by: okun on May 16, 2010 8:47 PM

    georgemc wrote:
    To answer your impending question, either the method you're calling has to be static, or you need an instance of that other class to invoke it against. Prefer the latterAnd to your impending question after that: no, don't use the Singleton pattern.

  • How do you call a method from  another class without extending as a parent?

    How do you call a method from another class without extending it as a parent? Is this possible?

    Why don't you just create an instance of the class?
    Car c = new Car();
    c.drive("fast");The drive method is in the car class, but as long as the method is public, you can use it anywhere.
    Is that what you were asking or am I totally misunderstanding your question?
    Jen

  • In EPM10, how do you call/reference a dynamic range from a macro.

    Hi Gurus
    In EPM10, [we are using SP16,P1], how do you call/reference a dynamic range from a macro.
    EG, in the BPC input sheet below, we have BPC reports ‘000’,’001’,’002’. For report ‘001’,users are able to select from diffent versions which each have different number of months. In the forecast version below, there are 7 months. We require a macro to select & delete f'cast data content of report ‘002’, there after we will manipulate it via the macro and return it. However, standard excel named ranges don’t work per BPC7.x and don’t dynamically expand.
    The macro code in 7.x was:
    Range(“REPORT1_RANGE”).Select >> Does any oneknow the replacement in EPM10 please?

    The following macro which accesses API's looks like it would help to define the report range:
    Sub TopLeftCell()
    Range("c26").Select
    Application.Run "EPMExecuteAPI", "GetDataTopLeftCell", "", "Sales Planning", "001"
    End Sub
    Anybody able to assist with the syntax of this macro..it currently runs without error, however does not return any result?? Note:
    * the parameter ''" relates to the text which i believe can be left if using macros
    *the parameter "Sales Planning" is my worksheet name
    *the parameter "001" is my report definition.
    I was hoping to return the result back to cell C26. Thanks All

  • How do you call someone on your iphone on facetime to an ipod 4th generation?

    How do you call someone on your iphone on facetime to an ipod 4th generation?

    http://manuals.info.apple.com/en_US/iphone_user_guide.pdf

  • EL - How do you call a method that requires a parameter

    How do you call a method that requires a parameter
    In scriplet code here is what I am trying to do
    <%= car.getDefaultColor(car.getCarType()) %>
    How do I do this in EL
    Here is my guess (it generates the Exception described below)
    ${car.defaultColor(car.carType)}
    Here is the Exception I am getting:
    javax.servlet.ServletException: <h3>Validation error messages from tag library c</h3>tag = 'out' / attribute = 'value': An error occurred while parsing custom action attribute "value" with value "${car.defaultColor(car.carType)}": Encountered "(", expected one of ["}", ".", ">", "gt", "<", "lt", "==", "eq", "<=", "le", ">=", "ge", "!=", "ne", "[", "+", "-", "*", "/", "div", "%", "mod", "and", "&&", "or", "||"]
    Any Ideas?
    P.S. If it matters to you, I am using JSTL 1.0 and the code snippets above are actually within the value attribute of a <c:out value="" /> statement.

    How do you call a method that requires a parameter
    In scriplet code here is what I am trying to do
    <%= car.getDefaultColor(car.getCarType()) %>
    How do I do this in ELYou don't. EL is very strict in method signatures. All get methods must be public Type getProperty(void); And all set methods must be public void setProperty(Type t);
    So you will have to re-work your Bean so it does not need an argument to the get method (getDefaultColor()). Since you are calling another method out of car, you might re-write the getDefaultColor method as such:
      public Object getDefaultColor() {
        CarType ct = this.getCarType();
        //then do other stuff
      }If that isn't suitable, then provide a helper method that is used to set the current car type and then call the getDefaultColor:
      private CarType curCarType;
      public void setCurrentCarType(CarType ct) { curCarType = ct; }
      public Object getDefaultColor() {
        if (curCarType == null) throw new IllegalStateException("CarType must be set before getting color");
        //normal work using curCarType
    <c:set target="${car}" property="currentCarType" value="${car.carType}"/>
    <c:out value="${car.defaultColor}"/>It is better to do as little of the data manipulation (setting up the car type) in the JSP as possible, so the first option is better than the second. Also better then the second would be to set the current car type in a servlet or data access object (or wherever) from which your retreive the car to begin with. Manipulatig it in the JSP itself should be your last resort (to keep as much business logic out of the JSP as possible).
    Here is my guess (it generates the Exception
    described below)
    ${car.defaultColor(car.carType)}
    Here is the Exception I am getting:
    javax.servlet.ServletException: <h3>Validation error
    messages from tag library c</h3>tag = 'out' /
    attribute = 'value': An error occurred while parsing
    custom action attribute "value" with value
    "${car.defaultColor(car.carType)}": Encountered "(",
    expected one of ["}", ".", ">", "gt", "<", "lt",
    "==", "eq", "<=", "le", ">=", "ge", "!=", "ne", "[",
    "+", "-", "*", "/", "div", "%", "mod", "and", "&&",
    "or", "||"]
    Any Ideas?
    P.S. If it matters to you, I am using JSTL 1.0 and
    the code snippets above are actually within the value
    attribute of a <c:out value="" /> statement.

  • How do you call scripts in subfolders using ODT 11.1.0.5.10 beta?

    Hello,
    I'm trying to create a script that calls several other scripts. The scripts I want to call are in a subfolder. Does anyone know the syntax I can use to call them?
    Structure:
    Providers
    +---Create All Script.sql
    +---Create
    +-------InstallOracleASPNETCommon.sql
    +-------InstallOracleMembership.sql
    +-------InstallOraclePersonalization.sql
    In Create All Script.sql, I added the following code and ran it using the "Run" option in my Oracle Database Project:
    @@Create/InstallOracleASPNETCommon.sql;
    @@Create/InstallOracleMembership.sql;
    @@Create/InstallOraclePersonalization.sql;
    The error I get is:
    Connected.
    SP2-0103: Nothing in SQL buffer to run.
    SP2-0310: unable to open file "Create/InstallOracleMembership.sql"
    SP2-0103: Nothing in SQL buffer to run.
    SP2-0310: unable to open file "Create/InstallOraclePersonalization.sql"
    Any help is appreciated. Thanks!

    Okay, I should probably clarify that I'm trying to call scripts using a relative path rather than the full path.
    I know I can use: @D:\Documents\CAL.MB\Oracle.New\Scripts\Create\MyTable\Create.sql;
    But I really want to use:
    @Create\MyTable\Create.sql
    Does anyone know the syntax for this or if it can be done when using the Run, Run on, or Run SQL Plus options?

  • PVII Called From External Script?

    I have a site that uses Auto ShowHide by PVII for dropdown
    menus. I'm trying to clean up my code and wondering if its possible
    to call these behaviors from an external script. I am already do
    this with javascripts. The first part of the script looks like this
    below.
    <body
    onload="P7_autoHide('Chakra','Chakra2','Pendants2','Wands','amazingwands','signs');MM_pre loadImages('images/fwnavbar_r1_c14_f2.jpg','images/fwnavbar_r1_c12_f2.jpg','images/zodiacd own.gif','/images/crowndown.gif','/images/thirdeyedown.gif','/images/throatdown.gif','/ima ges/heartdown.gif','/images/solardown.gif','/images/sacarldown.gif','/images/basedown.gif' ,'images/fwnavbar_r1_c6_f2.jpg','images/fwnavbar_r1_c10_f2.jpg','images/fwnavbar_r1_c8_f2. jpg','images/fwnavbar_r1_c4_f2.jpg','images/fwnavbar_r1_c2_f2.jpg','images/wanddown.gif',' images/pendantdown.gif','images/chakradown.gif','images/runesdown.gif','images/pendantzodd own.gif','images/booksdown.gif','images/mirrorsdown.gif','images/aquariusdown2.gif','image s/ariesdown.gif','images/taurusdown.gif','images/geminidown.gif','images/leodown.gif','ima ges/capricorndown.gif','images/sagitdown2.gif','images/cancerdown.gif','images/libradown.g if','images/virgodown.gif','images/crystaldown2.gif','images/7chakradown.gif','images/mass agedown.gif','images/acupdown.gif','images/kyanite.gif','images/pendwandown.gif','images/f airydown.gif','images/hairdown.gif','images/incensedown.gif','images/crystalballsdown.gif' ,'images/customdown.gif','images/runeproddown.gif','images/legenddown2.gif','images/pisces down.gif','/images/scorpiodown2.jpg')">
    <script language="JavaScript" src="script3.js"
    type="text/javascript">
    </script>
    <div id="Wands" style="position:absolute; left:105px;
    top:453px; width:79px; z-index:1; overflow: hidden; height: 31px;"
    class="dropdown"
    onmouseover="P7_autoLayers(0,'Wands','Chakra');P7_Snap('seven','Chakra',80,99)">
    <div align="center"><a href="seven.htm"
    onmouseout="MM_swapImgRestore()"
    onmouseover="MM_swapImage('wand','','images/wanddown.gif',1)"><img
    src="images/wandup.gif" alt="Seven Chakra Wands" name="wand"
    width="80" height="15" vspace="0" border="0" id="wand"
    /></a><a href="chakrapendants.htm"
    onmouseout="MM_swapImgRestore()"
    onmouseover="MM_swapImage('chakrapendants','','images/pendantdown.gif',1)"><img
    src="images/pendantup.gif" alt="Seven Chakra Pendants"
    name="chakrapendants" width="80" height="15" border="0"
    id="chakrapendants" /></a></div>
    http://www.thechakrashop.com
    Any help would be appreciated
    Thanks,
    Trinoz

    Hi Suhas,
    Nice to know you became Moderator...
    Hmmm the solution you provided was the last option..
    Any ways the issue is resolved we changed the user to dialog user and then debugged the code.
    Thanks a Lot,
    Anmol.

  • How do you dump a external hard drive from PC to mac

    How do i dump my external hard drive from a PC to my Mac

    If you don't see the external HD when you connect it to the Mac, then you need to use Disk Utility to format the XHD to a FAT32 drive. Once done it will read on the Mac and PC without any problems.

Maybe you are looking for