Automatically running a script at intervals

Sorry if this is a simple question, but I have wracked my brains all day.
And I have parsed this forum and the docs at docs.sun.com.
Details: Running SMC 3.5u1
I have a simple 'sh' script that performs some actions and returns zero (0)
for success and minus one (-1) on failure. I have managed to add it
to Script Repository and Script Launcher and can run it via "Launch Start"
in Script Launcher.
What I would like for it to do is run once or twice each day, automagically,
without operator intervention. Believe it or not I have not figured out how
to do this. Any pointers, suggestions would be appreciated.
Thanx in advance,
Tony

Hi Tony,
What you want to do would be a lot easier with the "ScriptRunner" module. It's made to run scripts at intervals (or on-demand) and parse the stdout as if it was a log (i.e. you can look for words that the script wrote out). It will also alarm on return codes:
http://www.halcyoninc.com/products/ScriptRunner/index.php
Note: I work for the company that makes it... but IMHO it really is better than Script Launcher for what you've described you want to do.
Regards,
Mike
[email protected]

Similar Messages

  • Can servlets/ jsp automatically run perl scripts and executables?

    I'm a student and am new to to servlets and web programming in general.
    I need to know if it's possible to run perl scripts and executables automatically from servlets/ jsp.
    The program I am planning on creating should have a client outside a firewall that uploads perl files to a gateway machine inside the firewall, the servlet should be able to run this perl file, and then pass the resulting file as an argument to an executable, to be run by another servlet on a different server.
    I've tried looking everwhere for an answer to this and am about to revert to a cgi based approach because I'm not sure if it would work so any help/ suggestions would be much appreciated.

    Hallo,
    I think using java Runtime will help. you can do Processes that execute shell or system commands through
    Process process = Runtime.getRuntime().exec("your perl scripts here!");
    Bye

  • Automaticly run Program\Script After and MSI Installation

    Hi All,
    Today I started looking into the use of Application Model in SCCM 2012.
    It was easy to create an application by using the import MSI function, which automatically created the application, deployment type and detection rule. But I'm struggling with how to run a script afterwards, when the MSI installation was successful.
    I've looked into creating 2nd deployment type making the first deployment type as it's dependency, but it's mandatory that I also need to make an detection rule. And this is where I'm stuck ass the detection rule I want to have the same as
    for the first deployment type which will make it impossible to run because the condition will be evaluated ass already installed.
    Is there a way to avoid the detection rule? If not is if possible trigger something after the first deployment type based on the errorlevel after the MSI installation.
    My goal is to write a regkey  somewhere in HKLM\Software\<company name> after an successful installation of an application. This location we've included in our hardware inventory for reporting purposes.
    Any suggestions to achieve this goal are welcome .
    Regards,
    Daniel

    I've resolved it with using the AddDploymentTypebyMISInstallerAuto function from the Add-CMDeployment command and provided an InstallationProgram parameter to override the default InstallationProgram.
    The comman-line looks like
    Add-CMDeploymentType
    -ApplicationName <Name>
    -AutoIdentifyFromInstallationFile
    -ForceForUnknownPublisher $True `
    -InstallationFileLocation
    <MSI
    File> -MsiInstaller
    -DeploymentTypeName
    Test1 –InstallationBehaviorType InstallForSystem
    -InstallationProgram
    < Custom
    Script>
    In this way I have the detection based on the MSI GUID and the ability to use a wrapper script.

  • Automatically run shell script after publishing?

    Is there any way to automatically run a  shell script  after publishing?
    I would like to do some postprocessing on the remote server.
    The remote server is not mobileme,  so a tool like iwebenhancer  will not work.
    I will appreciate all kinds of tips and tricks and suggestions.
    best regards, Gabriel.

    So the Detect Change is to detect a change in the web page that the code is embedded, right?
    The only workaround would be, if you can modify what's in the ChangeDetection window is to not automatically enter the page but put in a red note to enter the page you want to be notified about.
    So instead of this:
    You would have this:
    where the visitor would have to copy and past the URL into the field.  Obviously not automatic. But might work if you can modify what is said in the window and not have the page automatically be entered.

  • Have terminal NOT run a script when it loads

    I recently wrote a basic shell script and saved it as a .command file to run from the desktop. Since then, whenever I open the terminal it automatically runs the script then exits the terminal. If I hide the file (mv pt-noplugs.command .ptnoplugs.command) it simply opens the terminal and closes it immediately. I have tried changing the default shell from bash to something else but this doesn't seem to make a difference. I also don't seem to have a .bashrc file when it normally is /home/user/.bashrc (I'm used to linux). Any help would be appreciated. Below is the script:
    # Shell Script to start Pro Tools HD with no waveshell Plug-In
    echo "*"
    echo "* Script: pt-noplugs.command"
    echo "* Please Leave This Window Open Until ProTools Has Exited"
    echo "*"
    # Move waveshell Plug-In Files to Plug-Ins (Unused)
    cd "/Library/Application Support/Digidesign/Plug-Ins/"
    mv -v Waveshell-DAE_5.9.1.dpm "../Plug-Ins (Unused)"
    # Start Pro-Tools
    /Applications/Digidesign/Pro\ Tools/Pro\ Tools\ HD.app/Contents/MacOS/Pro\ Tools\ HD
    # Restore Plug-Ins directory
    cd "../Plug-Ins (Unused)"
    mv Waveshell-DAE_5.9.1.dpm ../Plug-Ins
    echo "*"
    echo "* Thank You. This Window May Now Be Closed"
    echo "*"
    exit

    I forgot to add: when I login as a different user and load terminal is does NOT run the script mentioned before.

  • How can I create a simple app that will automatically add folder script

    Hi! I hope I can get a little help on this.  I tried searching online and haven't found anything.
    Is there away I can make a simple "application" that will automatically add a folder script to a users folder?
    Basically I need a folder script to run but I don't want to explaint o a user how they'd have to do it in automator.
    I'd like to be able to create an application they double click.  The app tells them to select a folder then automatically runs the script.
    Does anyone have any ideas of how'd I'd do this?

    Oh I get it. Yeah I read you post on one of the other pages and didn't quite understand, but not that you say that your're makeing this for another user, it makes sence.
    So what you want to do is have the computer automatically install a script on a customer's computer, right?
    (I'm using "custumer" loosly; i.e. just another user)
    If that's what you'd like to do, then you'll probably have to write an actual program in Xcode, since I imagine automiticlly installing folder action scrips will be highly discuraged by Apple because it would cause a huge security hole in the OS. (You wouldn't want some random person sending you a folder action installer disgused as a regular app LOL.)
    But I will actually suggest the following, which I think will work great for your users:
    Make a regular Automator app, and drag it to your Dock. Now, have the user click and drag a bunch of photos to the application icon, and it will run the app automatically on those files.
    You could try a work flow like this:
    ask the user Are you sure?
    convert pictures
    save pictures to ConvertedPics folder
    pop up a confirmation message saying that everything was resized
    Hope this helps

  • Command prompt window script to automatically run adobe media encoder

    Does anyone know of a way to run adobe media encoder from the command prompt or batch file?
    I would like to automatically invoke a script, much the way I do for Adobe After Effects.
    (I do not mean batch encode from the software.)

    This sort of thing is quite easy to accomplish in Windows using Notepad and the keyword Start.
    You would type something like
    start amencoder.exe (although I don't know the exact full path and exact name of Adobe Media encoder).
    Save your text from above into notepad as a .bat file .
    I'm not sure how this would be done in Mac but I'm sure there are similar options using the Terminal.
    Why do you need to do this when you have an icon that can be double-clicked to invoke the program, by the way?

  • How to automatically run scripts before/after scheduled backup?

    Hi, I want to run some scripts (automatically) before and after a scheduled filesystem backup using oracle secure backup. is it posible?
    thanks in advance

    I've see it: using "after backup" and "before backup" in the dataset definition.
    forget this thread...

  • Does OS X automatically run the maintenance scripts?

    Can someone tell me if OS X (10.6 or 10.7) automatically runs the Daily, Weekly and Monthly maintenance scripts when my computer is asleep? If not, does OS X cause these scripts to run at the next point when the computer awakes?

    Yes, Apple fixed that issue that they would only run in the early AM when most users have their machines off/sleeping and clog the machine up.
    No need to worry about having to do anything anymore unless you have a glitchy issue, then the free OnyX will clean your machine's caches out nicely.
    http://www.titanium.free.fr/

  • How to run a script automatically once a day

    Hi everybody
    I need some help: I should run a script in Illustrator once a day, automatically at 23 p.m.
    What is the easiest way to do this?

    What about: Scheduling "open" & "close" Illustrator in the Windows scheduler and then putting the script in the startup folder of illustrator.
    Should be working, right?
    -> Closing Illustrator at 10 p.m.
    -> Opening Illustrator at 11 p.m.
    -> Running Script at Startup of Illustrator

  • Need a Folder Action Script to automate running of Applescripts in iTunes

    I posted this in the OSX forum but thought i'd try here too:
    I have a couple of applescripts that I have begun using on some of my podcasts. Specifically they will deselect "Skip When Shuffling" and "Remember Track Position" (Thanks Doug!). I feel like it is getting tedious to have to remember to run these scripts every time the Podcast updates a new episode. I'm looking for a folder action script that will run these applescripts whenever a new item is added to their folder. While I try to puzzle one together (having never written one) does anyone have anything to fit these needs?

    Yes.
    I recently need one to do something else.
    I'll just give you the script I am using, you can hack at will...
    property TargetPlaylist : "Library"
    on adding folder items to this_folder after receiving added_items
    repeat with each_item in added_items
    tell application "iTunes"
    add each_item to playlist TargetPlaylist
    end tell
    end repeat
    tell application "Finder"
    move every item of this_folder to the trash
    empty the trash
    end tell
    end adding folder items to
    This script when attached as a folder action will add the items dropped into it to my iTunes library, then delete them.
    You can easily tear this one apart to get what you need done.
    Beavis2084

  • In lightroom, is there a way to create a preset where a brush is automatically run?

    In lightroom, is there a way to create a preset where a brush is automatically run? Example: If I make multiple different brush adjustments on an image, and I want the exact same edit on another image, can I create a preset for that?

    Hi Heather,
    Lr does not (natively) support saving brushes in presets, but it's a UI limitation, not an "under the hood" problem.
    You can add brush strokes (or spot removals, or .. ) to a preset using a script I wrote (and offer for free), called
    'Add Spots Or Paint To Preset'
    available here:
    robcole.com - MiscLrScripts
    Rob

  • Can you open a file in PS & run a script from LR?

    So one of my commercial clients wants their product files in a variety of formats, including PNG with transparency. I'd love to be able to provide them with this from LR, but you can't export as a PNG. So I've written a script which takes the active document in PS, turns off the relevant layers, converts to sRGB, and saves as a PNG. Is there any way for me to invoke this script from LR, as I am opening the document? Ideally, I'd like to include it in the "Edit in" menu, as a menu item which would invoke PS and run the script. That way I could simply select the images, and get them processing while I do something else. Or do I have to open all the files and then run the script on all the open files?

    99jon (à Johannes de Vilder) il y a 2 mois
    Images are automatically saved back to the LR library but you need to follow a logical sequence for LR to render the export copy. You need to start the round trip from LR as follows and use the save command (Ctrl+S) not save as:
    1) Ctrl+E in the Library to export selected image with develop settings (I choose PSD but tiff is also available in the prefs)
    2) Edit in Photoshop; then Ctrl+S to replace (overwrite) Lightroom export copy
    3) Ctrl+W to close in Photoshop and update Lightroom thumbnail. The saved copy is usually stacked next to the original so don't worry about XMP.
    On Mac OSX Cmd+E; Cmd+S; Cmd+W

  • Any way to automatically run discoverer reports based on an event ?

    I am using discoverer 3.1.36. I am trying to automate the
    running of discoverer reports - the objective is to
    automatically run a set of discoverer reports after a particular
    event.
    This is part of a very critical solution for a large bank.
    One of the solution that i am trying is to schedule the set of
    reports for a future date and then after the event has occurred,
    use a trigger to update the scheduled times of these reports.
    But by just updating the 'next run time' field in the
    eul_batch_reports table, there is no effect. The reports still
    run at the initially scheduled time.
    Can any one help me with this? or suggest any alternate
    solutions.
    Thanks in advance
    Sandeep

    you will need a javascript function something like - define in the page header or region header:
    <script type="text/javascript">
    function checkTheBox() {
      document.getElementById('YOURCHECKBOXNAME').checked='checked';
    </script>and then in the form element attributes of your textbox, have an onchange event:
    onChange=checkTheBox();

  • Unable to run Groovy scripts within procedure

    Hi all,
    We are managing to automate objects promotion to PROD environment using Groovy. The thing is that we are able to run the script in the Groovy tool successfully, but we are not able to run the same script within a procedure in ODI. The version that we are using is 11.1.1.6.5.
    Do you know if this needs further configuration? Does it needs any updgrade?
    Below, the script we are currently using, it´s just to create a new physical and logical architecture on the topology tab and write an entry on the context to link logical to physical. Any help would be highly appreciated. Thanks.
    Fernando.
    import oracle.odi.core.persistence.transaction.support.DefaultTransactionDefinition;
    import oracle.odi.domain.util.ObfuscatedString;
    import oracle.odi.domain.model.OdiModel;
    import oracle.odi.domain.topology.OdiLogicalSchema;
    import oracle.odi.domain.topology.OdiPhysicalSchema;
    import oracle.odi.domain.topology.OdiDataServer;
    import oracle.odi.domain.topology.OdiContext;
    import oracle.odi.domain.topology.OdiTechnology;
    import oracle.odi.domain.topology.OdiContextualSchemaMapping;
    import oracle.odi.domain.topology.AbstractOdiDataServer;
    import oracle.odi.domain.topology.finder.IOdiContextFinder;
    import oracle.odi.domain.topology.finder.IOdiTechnologyFinder;
    def createLogicalSchema(contextCode, techCode, schName, dataserverName, userName, password, url, driver, schema) {
    txnDef = new DefaultTransactionDefinition();
    tm = odiInstance.getTransactionManager()
    txnStatus = tm.getTransaction(txnDef)
    contextFinder = (IOdiContextFinder) odiInstance.getTransactionalEntityManager().getFinder(OdiContext.class);
    context = contextFinder.findByCode(contextCode);
    techFinder = (IOdiTechnologyFinder) odiInstance.getTransactionalEntityManager().getFinder(OdiTechnology.class);
    tech = techFinder.findByCode(techCode);
    lschema = new OdiLogicalSchema(tech, schName)
    dserver = new OdiDataServer(tech, dataserverName)
    con = new AbstractOdiDataServer.JdbcSettings(url, driver)
    dserver.setConnectionSettings(con)
    dserver.setUsername(userName)
    dserver.setPassword(password)
    pschema = new OdiPhysicalSchema(dserver)
    pschema.setSchemaName(schema)
    pschema.setWorkSchemaName(schema)
    cschema = new OdiContextualSchemaMapping(context, lschema, pschema)
    odiInstance.getTransactionalEntityManager().persist(lschema)
    odiInstance.getTransactionalEntityManager().persist(dserver)
    tm.commit(txnStatus)
    return lschema
    lschema = createLogicalSchema("DEVELOPMENT", "ORACLE", "LS_HAL_TEST", "DS_HAL_TEST", "ODI_TEST", ObfuscatedString.obfuscate("odi_test"),
    "jdbc:oracle:thin:@ourservername:10710:DBAA6T", "oracle.jdbc.OracleDriver", "ODI_TEST")
    Notice i've changed the actual name of our server for "ourservername" because I don't know if I´m able to post that information.
    Thanks.

    Hi,
    I did try to hard code the parameters values, and it still didn't work. However, I did get a little bit closer, I found out that it doesn't work only whne my stored procedure uses a temporary table.
    Any though, why the temporary table would cause this error ?
    Thanks

Maybe you are looking for

  • WITHIN clause for XML

    I know that within clause works for XML in clob, but I tried to save XML in bfile, after I create index, the WITHIN query always return 0 rows, does WITHIN work for bfile? Thanks

  • Using iMovie 09 with stereo pairs?

    Talking to the geniuses at the local Apple store, it seems clear that iMovie 09 saves Ken Burns pan/crops to the images, not as separate data. This makes it difficult to create identical moves on matching stereo pairs, as the camera pans and crops wo

  • Which USB / Firewire ADC to use with intel iMacs?

    Specifically, I want to hook my guitar up to my intel imac - and am trying to figure out what the available hardware options are. ( specifically, which units have working intel drivers ) Thanks! Nick

  • Why is there no "xpinstall.enabled" listing in my Firefox "about.config"

    I am having a problem installing an add-on for Firefox on my XP desktop: When I attempt to install Evernote Web Clipper 5.9.1, I get the error: "There was an error installing Evernote Web Clipper - Try Again". I investigated on the Firefox Help site

  • Ipad printing issue

    I am trying to print from IPAD to HP MF1212np MFP printer thru a linksys wrt54gs router.  The printer is connected to router with cat 5 cable.  When I try to print, I get error message - no airprint printers found.  I can print from a laptop to the p