Script to auto start and stop an application

Ok, I'm looking for an easy solution, maybe someone can point me in the right direction:
I have a security camera program that runs on a Mac Mini that I would like to start and stop at a specific time of day. Is there an easy way to create an Applescript to do that?
Thanks much in advance.

Two scripts and iCal can do this for you. However, it assumes that your workstation is always logged into the Finder and that your app can be scripted beyond start and stop.
--Script 1, launch application
tell application "name of security app"
activate
-- do more stuff here like start capture
end tell
--Script 2, quit the application
tell application "name of security app"
quit
end tell
Save them both as scripts and then use iCal to make two repeating events. One to start the app and the other to stop it. Attach your scripts as event actions. Then sit back and let the iCal schedular the rest.

Similar Messages

  • How to start and stop Oracle Application Server from ANT

    How to start and stop Oracle Application Server and Web application from ANT
    Thanks in Advance.
    Mani

    Hi,
    You can use: startManagedWebLogic.sh, it is in your domain directory and you have to execute it in this way
    ./startManagedWebLogic.sh managedServerName http://adminServerHost:adminServerPort
    For instance, in my case I use:
    unixserv01:/webportal/domains/appServerWeb/bin>startManagedWebLogic.sh managedServ01 http://pelma3w3per01.mesaperu.next:7001
    You have to run it on the machine where the managed server was installed.
    Best regards,
    Raúl

  • Flashing stacked sequence auto start and stop

    Seems like this should be so easy but I'm stumped.
     I want to use some flashing leds while some of my data is plotted but can’t figure out a way to programmatically start and stop a simple flashing stacked sequence.
    thanks for any help.
    Attachments:
    flashing LEDs.vi ‏33 KB
    flashing LEDs.png ‏12 KB

    OK. Then put the flashing in the loop with Stuff 2, which I presume is the one for which you want to show activity. I modified your program to do this. I also eliminated the sequence structure by using dataflow. You can probably get down to one loop by changing to a state machine structure.
    If the flashing rate needs to be a different rate than the Stuff 2 logic, put the slower part into a case structure which only executes one time for every n iterations.
    Lynn
    Attachments:
    flashing LEDs.2.vi ‏16 KB

  • Dbora auto start and stop

    Hi all:
    This is on HP-UX 11.11 .I have created the dbora script under /sbin/init.d/ and linked as below.
    /sbin/rc2.d/S900oracle -> /sbin/init.d/dbora
    /sbin/rc1.d/K100oracle -> /sbin/init.d/dbora
    I tested the script manually as ./dbora start and ./dbora stop it worked perfect.
    The script is listed below
    ORACLE=oracle; export ORACLE
    ORACLE_HOME=/dba00/app/oracle/product/10.2.0/db_1; export ORACLE_HOME
    #PATH=${PATH}:$ORACLE_HOME/bin; export PATH
    case $1 in
    'start')
    su - $ORACLE -c "$ORACLE_HOME/bin/dbstart"
    'stop')
    su - $ORACLE -c "$ORACLE_HOME/bin/dbshut"
    su - $ORACLE -c "$ORACLE_HOME/bin/lsnrctl stop abcdwlist"
    echo "usage: $0 {start|stop}"
    exit
    esac
    exit
    When the server is rebooted the script fails with the following message.
    usage: /sbin/rc1.d/K100oracle start ................... FAIL *
    The permission on dbora is root:dba 750.
    Can anyone let me know what i am missing.
    Thanks,
    Ganesh

    According to the document
    http://download-west.oracle.com/docs/cd/B19306_01/server.102/b15658/strt_stp.htm#sthref249
    It recommend to link to rc3.d
    HP-UX
    # ln -s /sbin/init.d/dbora /sbin/rc3.d/S990dbora
    # ln -s /sbin/init.d/dbora /sbin/rc3.d/K001dbora
    And dbora is somewhat different
    BTW, why the PATH is comment out in your script?
    #! /bin/sh -x
    # Change the value of ORACLE_HOME to specify the correct Oracle home
    # directory for your installation.
    ORACLE_HOME=/u01/app/oracle/product/10.2.0/db_1
    # Change the value of ORACLE to the login name of the
    # oracle owner at your site.
    ORACLE=oracle
    PATH=${PATH}:$ORACLE_HOME/bin
    HOST=`hostname`
    PLATFORM=`uname`
    export ORACLE_HOME PATH
    if [ ! "$2" = "ORA_DB" ] ; then
    if [ "$PLATFORM" = "HP-UX" ] ; then
    remsh $HOST -l $ORACLE -n "$0 $1 ORA_DB"
    exit
    else
    rsh $HOST -l $ORACLE $0 $1 ORA_DB
    exit
    fi
    fi
    case $1 in
    'start')
    $ORACLE_HOME/bin/dbstart $ORACLE_HOME &
    'stop')
    $ORACLE_HOME/bin/dbshut $ORACLE_HOME &
    echo "usage: $0 {start|stop}"
    exit
    esac
    exit

  • How to create a .exe script to start and stop Oracle EBS R12 in Linux

    Hello,
    I have installed Oracle EBS R12 in Linux enterprise through Virtual box on windows 7 professional. It takes a long time to start and stop EBS as I have to start and stop the scripts manually - can someone please help me with the following (I have tried searching the web and Oracle for help but have had no joy);
    Q1. I want to create a executable file in Linux so I can double click the file in Linux to start EBS automatically instead of going through each script manually
    Q2. I want to create a executable file in Linux so I can double click the file in Linux to stop EBS automatically instead of going through each script manually
    you help will be appreciated.
    Ali

    I have installed Oracle EBS R12 in Linux enterprise through Virtual box on windows 7 professional. It takes a long time to start and stop EBS as I have to start and stop the scripts manually - can someone please help me with the following (I have tried searching the web and Oracle for help but have had no joy);
    Q1. I want to create a executable file in Linux so I can double click the file in Linux to start EBS automatically instead of going through each script manually
    Q2. I want to create a executable file in Linux so I can double click the file in Linux to stop EBS automatically instead of going through each script manually
    you help will be appreciated.Please see these links.
    https://forums.oracle.com/forums/search.jspa?threadID=&q=Autostart+AND+Services&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
    https://forums.oracle.com/forums/search.jspa?threadID=&q=Auto+AND+Start+AND+Services&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
    Managing Server Processes
    http://docs.oracle.com/cd/E18727_01/doc.121/e13675/T530130T530133.htm#5274555
    Thanks,
    Hussein

  • Starting and stopping applications via a Java-application on Windows/Unix

    Hello,
    I want to start java and other applications via a java application.
    This java application should start several different applications on windows and
    on unix systems and take care of their current state (e.g. running/not running).
    For all applications to be started there are .sh-scripts for unix and .bat-scripts
    for windows. In the scripts there could be a java call, e.g. "java someApplication",
    or some executables could be called. These scripts set the applications' environment etc.
    and start the application finally.
    My java application calls these scripts via the ProcessBuilder API, which is working fine.
    But there is the following problem: on windows, when executing a script that starts
    some other application, the ProcessBuilder gives me process-handle to the started
    process. If calling destroy() on this handle, only the cmd.exe gets killed which
    started the application. The application itself is running on. This is undesired behaviour
    since I want to be able to control the started applications, at least start and stop it which
    is impossible that way.
    On unix, it is working when using
    "exec java someApplication"
    instead of just
    "java someApplication"
    in the .sh-scripts. The exec command substitutes the shell process with the underlying
    process started in the script, so everything is working as expected on unix.
    But how could I get this working on windows systems? Is there any equivalent to the exec
    command on unix? Any suggestions appreciated.
    If something's unclear in my description, please let me know.

    Yes - after looking at this option - I think that's the direction I am going to go. It probably makes sense to give my JMS topics and my BPEL server their own OC4J instances anyway - for a number of reasons.
    Lon

  • CC&B start and stop script

    Hi,
    has any one automated the start and stop script for backup.
    Please share the script.
    Regards
    TAI

    Hi,
    I don't believe there is a single script that can fit all installation of CC&B .
    Backup usually has a strategy and a plan.
    In our installation we run incremental backup daily for the database, and full backups weekly and montly. As for the application, full backup daily. Also we have several application servers running and the database has RAC installation.
    So I guess you will need to review your backup strategy consider existing backup solutions in the market.
    AK

  • How to create services start and stop automation script for diff servers

    Hi All,
    i want to create a bat file for automation purpose to start and stop services
    i have some services in 1st server aand some in 2nd server and some in 3rd servers.
    has you all know i have to follow sequences to start and stop services can any help me in creating .bat by linking 3 servers fo starting and stoping services.
    Thanks in advance
    Regards
    SM

    Hi,
    this is the list of start oder for services in 11.1.2.1 from the Installation and Configuration Guide
    1. Databases for repositories.
    2. Any corporate user directories that you plan to configure for use with Shared Services.
    3. Foundation Services Managed Server application server, which includes Shared Services,
    and EPM Workspace.
    4. Reporting and Analysis Framework — Agent Service (if required for your environment)
    5. Reporting and Analysis Framework Application Server (if required for your environment)
    6. Web server
    The remaining services and processes can be started in any order:
    1. Performance Management Architect Services
    2. Performance Management Architect application server
    3. Performance Management Architect Data Synchronizer application server
    4. Essbase Server
    5. Administration Services application server
    284 Starting and Stopping EPM System Products
    6. Integration Services Server
    7. Essbase Studio Server
    8. Provider Services application server
    9. Financial Reporting Services
    10. Financial Reporting application server
    11. Web Analysis application server
    12. Calculation Manager application server
    13. Planning application server and the Hyperion RMI Registry
    14. Financial Management service
    15. Financial Management Web application server
    16. Strategic Finance service
    17. Performance Scorecard application server
    18. Performance Scorecard Alerter application server
    19. Profitability and Cost Management application server
    to start services on different servers you can use the sc command in your batch file
    for eg
    sc \\10.121.201.21 start HypS9FrameworkAgent

  • Windows script to start and stop jobserver only, with BOXI31

    hi,
    my question is easy but i have found nothing : on BOXI31
    how  to start and stop jobserver (adaptive...) automaticaly with windows script ?
    in tasklist command, jobserver have no services name...
    thank's

    In XI R2 you can stop & start job servers by their types, but in XI 3.1 I don't think you can do that, b'cos it doesnt list by server type just shows jobserver for crystal, webi & deski.
    Thanks,
    Hari

  • HT1355 can an application start and stop airplane mode?

    can a native application start and stop airplane mode on the iPhone and iPad?

    No.  It must be done manually by the phone user.

  • Stinking up the iPhone: auto-start and/or auto-stop iTunes playback

    The feature to auto-start and/or auto-stop iTunes playback is a disaster. A good idea poorly implemented perhaps, or maybe not possible to implement well. PLEASE PLEASE PLEASE give us a setting to turn this off! MANY MANY ENTRIES ACROSS MANY FORUMS! (e.g. Apple Discussions messageID=9937311) I will consider switching to another smartphone for this reason alone, it's that big a nuisance.

    Welcome to the discussions,
    you are not addressing Apple in these forums, we are all users here. Use this link to talk to Apple: http://www.apple.com/feedback/iphone.html

  • Action Script 3 code not working for start and stop button?

    Ok so I have this simple animation I created of a circle that moves from one side of the stage to the other. I have added a new layer and called it buttons. On this layer I have added 2 buttons. One for start and another one for stop. The purpose is to get my circle to move from one side of the stage to the other but be able to use my buttons so that I can start and stop the animations at random times during playback. I fixed all my compiler errors now the problem lies in that everytime I click the start or the stop button I get an output error. I have a 3rd layer in which is titled actions and this is where all my code is posted. I removed that layer and placed my code in the first frame of the buttons layer to see if this would change anything but I still get the same output errors. So I just added back my actions layer. What could I be doing wrong? I have made sure to name all my movie clips and buttons correctly and I even added an instance name to them.
    Here is my code and the errors I am getting when I press the play and stop button on test-
    start_btn.addEventListener(MouseEvent.CLICK, startCircle);
    stop_btn.addEventListener(MouseEvent.CLICK, stopCircle);
    function startCircle(e:MouseEvent):void{
        circle.play();
    function stopCircle(e:MouseEvent):void{
        circle.stop();
    green_btn.addEventListener(MouseEvent.CLICK, greenCircle);
    red_btn.addEventListener(MouseEvent.CLICK, redCircle);
    function greenCircle(e:MouseEvent):void{
        circle.play();
    function redCircle(e:MouseEvent):void{
        circle.stop();
    Here are my output errors-
    TypeError: Error #1009: Cannot access a property or method of a null object reference.
        at exercise2_fla::MainTimeline/redCircle()
    TypeError: Error #1009: Cannot access a property or method of a null object reference.
        at exercise2_fla::MainTimeline/greenCircle()

    ok so my circle is my movie clip and it is titled circle and the instance name is circle. Am I supposed to change MovieClip to circle? I put the code at the top of my actions script but for some reason it did not work. I did change play to stop and it got the movie clip to stop when I do test movie but my buttons still do not work. So I changed stop back to play. Strange.
    I did try changing MovieClip to circle but that did not work so I did Circle with a capital C and that did me no good eigther.
    I meant to add that I did get an error that said- 1180 Call to a possibly undefined method circle.

  • Batch file to start and stop services

    I've setup a CF Probe on my Development Server to ensure my
    CF Production server is up and running (services = Apache and CF
    Application Server). It checks the PROD login page and if it times
    out in 30 sec the probe fails. I understand I can execute a file
    (batch file with net start and net stop) but the problem is I need
    to have the probe somehow point to the .bat file on the PROD server
    and not on the local machine. How can I remotely access this batch
    file and execute it? I don't know how to point to the file on the
    other server... can anyone help?

    Hi Ken,
    You had pointed me in the right direction regarding the
    psstools in order to create a batch file that can remotely start
    and stop services.
    i used the psexec command and am able to successfully restart
    the services needed remotely... however when i pick the file in the
    coldfusion administrator (in the probes section) how to i point to
    the batch file to run? it seems like the probe is not running the
    script like i want... the file is located on the c:\ so i entered
    c:\test2.bat...
    Thanks,
    Matt
    Matt,
    You should review the online help in the cfadmin for probes
    and the links it points you to in the developer's guide. Basically
    you need to define a new probe in the cfadmin by clicking the
    "Define New Probe" button. One of the probe's attributes will be
    what action. Define the action as a program and point it at a batch
    file running psexec. You will probably need to run CFMX as a
    specific user and not as localsystem, which is the default.

  • Batch file to start and stop

    Hi All,
    Can we create a batch file to start and stop the services. I need to start all the services like shared, essbase, eas, planning, webanlysis and financial reporting, and at also need to stop them using windows batch file.(Using windows 2003 server....service pack 1). Any help would be appreciated.
    Thanks

    Hi,
    The simplest script would be something like this. Save it as a .bat file, set all your services to manual and then set up a scheduled task to run this script when the computer starts.
    Gee
    ::          Startup Script for Hyperion Services          ::
    date/t >> startup.log
    time/t >> startup.log
    echo "Starting Hyperion Services" >> startup.log
    net start "Hyperion S9 OpenLDAP" >> startup.log
    net start "Hyperion S9 Shared Services" >> startup.log
    :: Insert pause of 5 seconds to ensure HSS has finished starting
    ping localhost -n 6 >nul
    net start "Hyperion S9 BI+ Analytic Services 9.3.1 - Essbase" >> startup.log
    net start "Hyperion S9 Administration Services ATS5" >> startup.log
    net start "HyperionRMIRegistry" >> startup.log
    net start "Hyperion S9 Planning" >> startup.log
    net start "Hyperion S9 Provider Services ATS5" >> startup.log
    net start "Hyperion S9 Apache 2.0" >> startup.log
    net start "Hyperion S9 BI+ 9.3 Core Services 1" >> startup.log
    :: Insert pause of 10 seconds to ensure Core has finished starting
    ping localhost -n 11 >nul
    net start "Hyperion S9 BI+ 9.3 Workspace" >> startup.log
    net start "Hyperion S9 BI+ 9.3 Financial Reporting Java RMI Registry" >> startup.log
    net start "Hyperion S9 BI+ 9.3 Financial Reporting Print Server" >> startup.log
    net start "Hyperion S9 BI+ 9.3 Financial Reporting Report Server" >> startup.log
    net start "Hyperion S9 BI+ 9.3 Financial Reporting Scheduler Server" >> startup.log
    net start "Hyperion S9 BI+ 9.3 Financial Reporting Web application" >> startup.log
    net start "Hyperion S9 BI+ 9.3 Web Analysis" >> startup.log
    date/t >> startup.log
    time/t >> startup.log
    echo "Finished Starting Hyperion Services" >> startup.log
    echo "###################################################################" >> startup.log

  • Starting and stopping SAP in Unix

    Hi,
    Pls tell me the command to start and stop sap in Unix.
    I dont want to start and stop the Database
    Pls help

    Log on in UNIX as a user with SAP administrator authorization (<sid>adm).
    To start the central instance, call the shell script
    startsap_<host>_<instance no> in the home directory
    of the <sid>adm user. If there is only one instance for each application server, the
    alias startsap points to the script startsap_<host>_<instance no>.
    The script startsap first starts the saposcol process which collects statistical
    data for the operating system that it provides to the SAP system.
    The next step is a check to see if the database is running. If not, the script
    startdb is called to start the database.
    The final step starts all of the processes for the instance (message server,
    dispatcher, work processes, and so on).
    After the central instance is started, you can optionally start other instances.
    The startsap script can be called with the following options:
    DB: starts the database system
    R3: starts the instances and associated processes for the instance
    ALL: starts the database system and the instance (default setting, can be omitted)
    To start the SAP system, the startsap script calls the sapstart process with
    the start profile specified in the script in the variable START_FILES.
    The stopsap script can be called with the following options:
    DB: stops the database system with the help of the stopdb script
    R3: stops the instances of the SAP system
    ALL: stops the database system and the instance (default setting, can be
    omitted)
    The database can be stopped separately with database tools.

Maybe you are looking for

  • Oracle Query Performance While calling a function in a View

    Hi, We have a performance issue in one of our Oracle queries. Here is the scenario We use a hard coded value (which is the maximum value from a table) in couple of DECODE statements in our query. We would like to remove this hard coded value from the

  • Problem in provisioning role to a particular system urgen

    Hi all, I am getting the following error while provisioning the roles in AE. I checked the configurations and connectors everything is working fine with all other system. Only with this particular system i have the problem in provisioning the things.

  • ActiveX or Whatever

    I want to update my itunes to itunes 7 but when i try to do it it says the quicktime control won't work and can't install it. so itunes can't be installed what do i do?

  • HT1420 Authorising more than 2 devices doesn't work for me

    I've checked my pc and can see that I only have 2 devices listed as authorised but when I try to authorise my laptop I'm told I already have 5 devices.  Help!!

  • App Store no actualiza mis aplicaciones

    Hola quisiera saber si me pueden ayudar la tienda de App Store en la opción de actualizar aplicaciones lo selecciono pero no ocurre nada solo se queda el circulo con el cuadrado dentro pero no inicia lla actualización