How to use schedule task for execute my java file

I have five java file.
I want every 20 minutes all of them executed.
how to write the program for scheduling that execution.

> I have five java file.
I want every 20 minutes all of them executed.
how to write the program for scheduling that
execution.
I recommend using an external application (e.g., Task Scheduler, cron, etc.) to handle this kind of scheduling.
~

Similar Messages

  • How to use scheduled agent for query in database

    Hi there I'm working with database on my app and when use the query for search in the database the application freeze for a maximum of one minute I want change that why I want what runs ok and I wonder if I can use a background agent for do that manage
    the queries .
    But I don't know how can I call the queries from the other project if the files are in the main project.

    Hi OzkarLeo,
    Background task provides functionality to do work when your app not in foreground, it need some conditions to trigger.
    https://msdn.microsoft.com/en-us/library/windows/apps/xaml/Hh977056(v=win.10).aspx. If you need scheduled query when app is active in foreground, then it’s no need to use background task.
    Regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place. Click HERE to participate
    the survey.

  • Use Scheduled Task for SyncToy 2.1 to discontinuous network storage

    I am sorry but I have absolutely no understanding of scripting and I need help with the following please.
    Currently I manually run SyncToy 2.1 to work when I have my NAS available ( switched on).  Is there a way I can use Task Scheduler to automatically run SyncToy when the NAS is
    available.  I appreciate that if it was always on this would be simple but I do not wish to run the NAS 24/7 for a number of reasons. but mostly the power usage for a seldom need resource.  I'm a home user syncing mainly media files for backup.
    I would really appreciate some help with this!
    As an aside, I note that it really does not pay to use SyncToy 2.1, whichever action, and to have too large a folder pair, it pays to select smaller folders than a Partition or a major folder like a complete (large) Music collection.

    http://www.howtogeek.com/howto/25046/schedule-synctoy-to-run-automatically-with-task-scheduler-in-windows-7/
    The following article has some excellent information on how to setup synctoy. Pay close attention to the conditions when synctoy stops:
    in the Properties dialog, the Conditions tab lets you choose whether or not to run this task when your computer is running on battery power if you’re using a laptop/netbook.  By default it will only run when on AC
    power, but you can uncheck the box if you’d rather it sync even if you’re on battery.
    Keep my updated on if these steps help
    Don't forget to mark the post that solved your issue as "Answered." By marking the Answer you are enabling users with similar issues to find what helped you. Lewis Renwick - IT Professional

  • How to use URL class to execute a java class/app  on a remote machine?

    I am a beginner in Java networking and have a question about URL programming.
    How do I pass parameters to a java class/application over the web and then cause it to execute ? I then want to get the result back from the clas/app. The class/app resides on a remote machine and the protocol used is "http" protocol. OR all this is not possible through the URL and related classes ?

    How do I pass parameters to a java class/application over the web and then cause it to execute ? Using the HTTP protocl you can either perform a GET where the parameters are in the URL or a POST where the data is sent to the server with the request.
    The server must be setup as a web server to execute code based ojn a HTTP request. Using a web server with a JSP which contains the code to execute is the simplest way to do this.
    I then want to get the result back from the clas/app. The output of the JSP becomes in the data returned by the HTTP request.
    I would suggest looking for example on google.
    http://www.google.co.uk/search?q=java+http+request+tutorial
    Another option is to use RMI. The integration is tighter but it does not use the HTTP protocol.

  • How to use chart engine for web dynpro java(EP) for Graphics generation.

    Hi Frndz..
    now lookiing out for different types of dynamic graphics generations according to my requirment, n i saw the followiing blog
    Testing BusinessGraphics in Web Dynpro for Java
    Itz very nice to see that we can generate planty of types, but here our server is EP 7.0(not CE 7.1) and i gone thru  these links also
    http://help.sap.com/saphelp_nwmobile71/helpdata/en/86/243f403f0a9354e10000000a155106/frameset.htm
    http://help.sap.com/saphelp_nwmobile71/helpdata/en/0b/79553b066d9414e10000000a114084/frameset.htm
    https://help.sap.com/saphelp_nw04/helpdata/en/0c/95c83956852b51e10000000a114084/frameset.htm
    here it seems to be Chart Engine n Chart Designer is mainly for BSP(R3), how best we can use this for web dyn pro java.
    Thanks in Advance
    Regards
    Rajesh

    hi
    if you want to use BusinessGraphics in WebDynpro java you have to configure IGS.
    IGS Configuration
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/4846ac90-0201-0010-099d-d3b4e271849c
    Business Graphics docs.
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/3261cd90-0201-0010-268c-d8d72e358af6
    ChartDeigner Usage
    http://help.sap.com/saphelp_nw04/helpdata/en/18/d4d43fb9490c65e10000000a114b1d/frameset.htm
    Generating Gantt chart using web dynpro business graphics

  • How to use iCloud Drive for opening a pdf file in iphone

    Hello,
    I would like to know if I need some app for opening a file pdf in iCloud.
    I put several pdf file in iCloud but, I can not read it
    how I should to do?
    Thank you very much, Luis

    luisfromarg wrote:
    Hello,
    I would like to know if I need some app for opening a file pdf in iCloud.
    I put several pdf file in iCloud but, I can not read it
    how I should to do?
    Thank you very much, Luis
    There are thousands of apps for that.
    Try Adobe Reader.

  • How to use command promt for calling a java programe

    Hi
    i am using command promt to call my class CreateProdcut
    i am trying to call cmd.exe and then calling a class with argument *"java CreateProduct -----argument----"*
    Following is the code i am using to call cmd.exe as a seprate process
    Problem :-  I am not able to see command promt and called class o/p
    import java.io.*;
    public class ExecCreateProduct{
         public static void main(String args[]) throws IOException, java.lang.InterruptedException{
              Runtime runtime = Runtime.getRuntime();
                             Process pr = runtime.exec ("cmd /c"+"java "+"CreateProduct "+"Hello World"+"HHH");
               try {
               String line;
               BufferedReader input = new BufferedReader(new InputStreamReader(pr.getInputStream()));
                    while ((line = input.readLine()) != null) {
                   System.out.println(line);
                   input.close();
                   } catch (Exception err) {   
                        err.printStackTrace();
              int exitVal = pr.waitFor();
            System.out.println("Exited with error code "+exitVal);
    }Edited by: rahul_p on Jun 9, 2009 2:58 AM

    do it like this it works for me :)
    try{
    Runtime rt = Runtime.getRuntime();
    Process proc = rt.exec("java CreateProduct -----argument-----");
    InputStream stderr = proc.getErrorStream();
    InputStreamReader isr = new InputStreamReader(stderr);
    BufferedReader br = new BufferedReader(isr);
    String line = null;
    while ( (line = br.readLine()) != null)System.out.println(line);
    int exitVal = proc.waitFor();
    exitVal!=0?System.out.println("Error"):System.out.println("success");
    catch(Exception e){
    System.ourt.println(e);
    }

  • How to use one commandButton  to execute two task in JSF

    I have a form in JSF page which contains different faces components. These faces bind to ADF BC to insert one row in the database when the user press commandButton. Also I need to bind the value of one inputText in that form to managed bean to execute another task in the application when the user press the same commandButton.
    The code of the inputText:
    <h:inputText value="#{bindings.ProjectNumber.inputValue}"
    id="pn"
    size="10"
    required="#{bindings.ProjectNumber.mandatory}">
    The code of commandButton:
    <h:commandButton actionListener="#{bindings.Commit.execute}"
    value="Save"
    disabled="#{bindings.Commit.actionEnabled}"/>
    The managed bean is “findInspector”. I tried to insert inputHidden inside commandButton tag and assign the value of the inputText to the inputHidden as follows:
    <h:commandButton actionListener="#{bindings.Commit.execute}"
    value="Save"
    disabled="#{bindings.Commit.actionEnabled}">
    <h:inputHidden value="#{bindings.ProjectNumber.inputValue}" binding="#{findInspector.project}"/>
    </h:commandButton>
    But it was not work
    Please how can I write the code to use the value of the inputText more than one time in the JSF(one to insert one row by using ADF BC and another to use the same value to bind to a managed bean) and how to use one commandButton to execute two task in JSF.
    Thank you
    Waheed

    Yes I did
    <managed-bean>
    <description>The bean for get project No</description>
    <managed-bean-name>projectBean</managed-bean-name>
    <managed-bean-class>
    mcscm.model.ProjectBean
    </managed-bean-class>
    <managed-bean-scope>request</managed-bean-scope>
    <managed-property>
    <property-name>bindings</property-name>
    <value>#{bindings}</value>
    </managed-property>
    </managed-bean>
    Also I changed the method in the managed bean as follows:
    public String commandButton_action() {
    FacesContext fctx = FacesContext.getCurrentInstance();
    ValueBinding vb = fctx.getApplication().createValueBinding("#{bindings}");
    DCBindingContainer dcb = (DCBindingContainer) vb.getValue(fctx);
    OperationBinding operation = (OperationBinding) dcb.get("projectNumber");
    operation.execute();
    return null;
    where projectNumber is my method in the java class of the application module "TaskInformationImpl". I made this method to be accessed from outside of ADF BC.
    I just create a sample code for projectNumber method for testing only as:
    public void projectNumber (String data){
    System.out.print(data);
    In the page Pagedef file I added this :
    <methodAction id="projectNumber"
    InstanceName="TaskInformationDataControl.dataProvider"
    DataControl="TaskInformationDataControl"
    MethodName="projectNumber" RequiresUpdateModel="true"
    Action="999" IsViewObjectMethod="false">
    <NamedData NDName="data" NDValue = "#{bindings.ProjectNumber.inputValue}" NDType="java.lang.String"/>
    After I did all of this I get a new error like:
    javax.faces.FacesException: #{projectBean.commandButton_action}: javax.faces.el.EvaluationException: java.lang.ClassCastException: oracle.adfinternal.view.faces.model.binding.FacesCtrlAttrsBinding cannot be cast to oracle.adf.model.OperationBinding
    Is it very difficult to do this in JDeveloper?. yes ADF BC provide me a lot of facilities, but when I want to do a specific task I face a lot of troubles

  • How to use one commandButton to execute two tasks in JSF

    I have a form in JSF page which contains different faces components. These faces bind to ADF BC to insert one row in the database when the user press commandButton. Also I need to bind the value of one inputText in that form to managed bean to execute another task in the application when the user press the same commandButton.
    The code of the inputText:
    <h:inputText value="#{bindings.ProjectNumber.inputValue}"
    id="pn"
    size="10"
    required="#{bindings.ProjectNumber.mandatory}">
    The code of commandButton:
    <h:commandButton actionListener="#{bindings.Commit.execute}"
    value="Save"
    disabled="#{bindings.Commit.actionEnabled}"/>
    The managed bean is �findInspector�. I tried to insert inputHidden inside commandButton tag and assign the value of the inputText to the inputHidden as follows:
    <h:commandButton actionListener="#{bindings.Commit.execute}"
    value="Save"
    disabled="#{bindings.Commit.actionEnabled}">
    <h:inputHidden value="#{bindings.ProjectNumber.inputValue}" binding="#{findInspector.project}"/>
    </h:commandButton>
    But it was not work
    Please how can I write the code to use the value of the inputText more than one time in the JSF(one to insert one row by using ADF BC and another to use the same value to bind to a managed bean) and how to use one commandButton to execute two tasks in JSF.
    Thank you
    Waheed

    Just dopublic void execute() {
        anotherAction(inputValue);
    I guess those articles might be interesting about passing params and the usage of inputHidden and also about using datatables:
    http://balusc.xs4all.nl/srv/dev-jep-com.html
    http://balusc.xs4all.nl/srv/dev-jep-dat.html

  • How to set schedule task in windows using java code

    Hi,
    i want to set the schedule task in windows os using the java code can any one help me on that
    can any one thinks i need to wright a dll file for that which set the schedule task for me which dll i can use in my java code.
    thanks in advance.

    Maybe this will help you?

  • Using Automator for scheduled tasks for my media folder.

    Anyone with automator experience that are able to help me set up a scheduled task for my media folder, using for example iCal?
    I have 2 programs for cleaning and adding metadata for my media folder:
    iFlicks and iDentify.
    And I want them to scheduled clean new files in my folder. iFlicks first, and iDentify next.
    Complicated? Doable?

    If you are not too keen on running those commands you might want to try http://www.igetter.net/iGetter.html This download manager seems to allow the scheduled downloading that you need. I think you would have to go to the Apple site and find the url for the standalone updaters to find the link after Software Update identifies them. Then use this program to schedule the downloads. Sometimes those seem more stable anyway.
    The program us shareware. It appears from the description that the program remains fully functional but puts up a nag screen if the program has not been registered.

  • How to use two tasks in Workflow

    Hi Everybody !
    Can Any one tell me, How to use two tasks in one activity step type of  Workflow CRM?
    My requirement is... I have to execute two tasks in single activity step in Workflow. Is it possible.if it is possible tell me the flow Please.
    Thanks in advance.
    Raghava Vakada.

    You can define one as a "Before" or "After" method if that is usable for you. (defined in tab Methods for Activity steps)
    Otherwise there is also the step flag "Advance with dialog" (tab Details on Activity steps, but the tab it is found on depends on your version) which allows one user to seamlessly execute two consecutive tasks.
    So depending on your real need there may be several options available. If all that is needed is that the same user can execute the two tasks then Advance with Dialog is perhaps the best choice. If the user then cancels execution of the second activity the work item is available for execution. If you define an After method and the user cancels execution the work item has still been completed since its (main) method has been completed.

  • All scheduled tasks stopped execute

    Hi guys,
    We are using the version 11.1.1.5(BP 2) of OIM. Now all scheduled task, stoped execute.
    We clicked em "Run Now" but isn't inserted a line in grid Job History, in log doesn't show no errors.
    This happen for all scheduled tasks.
    What be should the problem??
    Thanks

    Restart the Scheduler
    http://OIM_HOST:OIM_PORT/SchedulerService-web/status.
    Hope the problem should resoved after this. If not than:
    Also enable looger for Schedule task (oracle.iam.identity.scheduledtasks). You will get more information in the log file.
    http://docs.oracle.com/cd/E21764_01/doc.1111/e14308/log.htm#CEGBBGFH.
    I think you will get the some exception in diaognestic log file.
    If problem doesn't solve restart the manage server.
    Thanks
    Kuldeep

  • How do I schedule events for 2006?

    I want to set up my lab for next year. When I try to schedule tasks for January, it reverts to 2005 and tells me I cannot schedule tasks in the past. How do I advance it to 2006?
    eMac   Mac OS X (10.4.3)   Thirty-three computers in an elementary school.

    I'm having the same problem! No doubt this has to be a bug. I've submitted it as such to Apple; you should, too.
    http://www.apple.com/feedback/remotedesktop.html
    Robert

  • Scheduled tasks not executing

    I can't get any scheduled tasks to execute on their own. When I run the file from my browser it works fine. I've put a viable username and password (Set by the System Admin.)
    The CF/Server specs are Windows 2003, IIS 6, CFMX version 7 7,0,1,116466
    This server is behind a firewall and is updated continually with all the IIS security patches etc.
    Has anyone had this problem or could offer any suggestions.
    Thanks in advance.

    I fogot to mention that the scheduler log reads:
    Apr 19, 2009 
    11:30 PM 
    Information 

    [Scheduled task name] Rescheduling for :Mon Apr 20 23:30:00 EDT 2009 Now: Sun Apr 19 23:30:00 EDT 2009
    Apr 19, 2009 
    6:50 PM 
    Information 

    [Scheduled task name] Activating2 on Sun Apr 19 18:50:46 EDT 2009 To run on Sun Apr 19 23:30:00 EDT 2009

Maybe you are looking for

  • Do Mac Mini installation CDs include iLife?

    I have a 2007 Mac Mini running OS X (10.5.7) Leopard. It has iLife 08, but I don't have an installation CD for iLife 08. I have the OS X (10.5.7) installation CDs, do they include iLife 08? I want to use the CDs to install the OS and iLife 08 onto a

  • Vertical text in charts

    How can we write vertical text in charts in a peolesoft

  • Purchase Order ME23n  - communication tab - where these values stored

    Dear all Can someone tell me where the Purchase Order ME23n  - communication tab - where these values stored I am not able to find it. Regards, Venkat

  • Nodes versus Attributes

    Given: <abc attrib1="attrib1" attrib2="attrib2"></abc> Versus: <abc> <attrib1>attrib1</attrib1> <attrib2>attrib2</attrib2> </abc> I notice that the nodes would be indexed as "attribute" in the first case and "element" in the latter case. Is there any

  • Public holiday

    hello, plz I need a function modul to calculate the date of public holiday ( frensh calender) and weenkend. thanks for your help