Multiple wake-up times with pm set

Hello, I have a question. I have 2 workflows that I have built through automator. I want them to start everyday at 4:00 and the other one to start at 22:00. The problem is that at those times, my mac would be asleep (or completely off) and automator would not run in those scenarios. I know the energy saver under system preferences has an option to wake up the computer but the problem is that it only gives me 1 option. So, I can either turn it on at 3:58 or at 21:58. I need to figure out how to get multiple wake up times for the mac (without purchasing any software).
I have read some things on the internet about Pm set that would allow you to accomplish that. The problem is that I don't know how to use it. Is there a way to safely set this up with pm set? I have opened the terminal but I don't know how to use it. any help would be appreciated.
Thanks.
By the way, I am using the latest Imac model 2.7 GHz Intel Core i5 with OSX 10.8.3

Does it have to run at exactly 0400 and 2200, or can it run after it wakes from sleep after that time?
If that is the case, you may want to look at creating a launchctl plist to have it run whatever you want at those times. launchd will run them as soon as it wakes up after the scheduled time (or at that time if it is awake).
There are quite a few examples online, but Lingon makes it pretty easy to create the plist and schedule the events. Even with Lingon, you would want to read up on launchd: http://developer.apple.com/library/mac/#documentation/MacOSX/Conceptual/BPSystem Startup/Chapters/CreatingLaunchdJobs.html
An example using Lingon: http://nathangrigg.net/2012/07/schedule-jobs-using-launchd/

Similar Messages

  • Deploy multiple times with one set of bean classes?

    Let's say I have MyBean, MyBeanHome and MyBeanImpl. Is it OK if deploy them
    twice as follows (ejb-jar.xml). Notice the difference in ejb-name. Then in
    the weblogic-ejb-jar.xml I define certain attributes differently, such as
    clustered or not.
    Thank,
    Bill
    <session>
    <description>My Session Bean</description>
    <ejb-name>MyBean</ejb-name>
    <home>myco.myserver.MyBeanHome</home>
    <remote>myco.myserver.MyBean</remote>
    <ejb-class>myco.myserver.MyBeanEJB</ejb-class>
    <session-type>Stateless</session-type>
    <transaction-type>Container</transaction-type>
    </session>
    <session>
    <description>My Non-clustered Session Bean</description>
    <ejb-name>MyBeanNC</ejb-name>
    <home>myco.myserver.MyBeanHome</home>
    <remote>myco.myserver.MyBean</remote>
    <ejb-class>myco.myserver.MyBeanEJB</ejb-class>
    <session-type>Stateless</session-type>
    <transaction-type>Container</transaction-type>
    </session>

    Two beans with the same bean and interface classes, may be deployed as different
    beans if
    the <local-jndi-name/>
    or <jndi-name/> in the weblogic-ejb-jar.xml is different.
    thanks,
    Deepak
    "Bill" <[email protected]> wrote:
    Let's say I have MyBean, MyBeanHome and MyBeanImpl. Is it OK if deploy
    them
    twice as follows (ejb-jar.xml). Notice the difference in ejb-name. Then
    in
    the weblogic-ejb-jar.xml I define certain attributes differently, such
    as
    clustered or not.
    Thank,
    Bill
    <session>
    <description>My Session Bean</description>
    <ejb-name>MyBean</ejb-name>
    <home>myco.myserver.MyBeanHome</home>
    <remote>myco.myserver.MyBean</remote>
    <ejb-class>myco.myserver.MyBeanEJB</ejb-class>
    <session-type>Stateless</session-type>
    <transaction-type>Container</transaction-type>
    </session>
    <session>
    <description>My Non-clustered Session Bean</description>
    <ejb-name>MyBeanNC</ejb-name>
    <home>myco.myserver.MyBeanHome</home>
    <remote>myco.myserver.MyBean</remote>
    <ejb-class>myco.myserver.MyBeanEJB</ejb-class>
    <session-type>Stateless</session-type>
    <transaction-type>Container</transaction-type>
    </session>

  • How to Insert more than one record at a time- with fixed set of values in one field

    Can someone guide as to how to insert multiple records at a time using ASP VBScript in Dreamweaver CS4 or ADDT.
    If someone can guide then the exact problem is given below.
    I have a MS access database with one table. The table has three fields. The first field is an autonumber field for ID number.
    The second field contains string values- One out of 7 predefined values. One set of records consists of 7 records containing all the seven types of predefined values in fields no 1.
    The third field is a numeric field and can contain integers.
    I want that the user can enter data for the table using an ASP form in such a way that he enters one set of records at a time in one single screen. This way he will not have to remember that he has /has not entered all the seven set of values for the field no 1.
    I am not creating fields with the 7 types of field1value as their names as it will increase the number of fields drastically.
    Please help for dreamweaver ASP VBScript.

    I have successfully inserted seven records in one form submit operation by looping through the command object execute method.
    However, the data that is being inserted by the command object is repetition of the first record and the command object is not taking any data from the text boxes for the second record onwards. In this I had used the isert record behavious generated by DW CS4 and modified it to suit my requirement. However, the data inserted in the first row is getting repeated in all the seven rows.
    Please help.
    Also advise if there are any free dreamweaver server side validation extensions available.

  • Two instances/one running at a time with sae set of data files

    hi,
    I dont want to use OPS or Clustering...
    I want two diffrent instances ... with only one running at a time....
    When one will be down second will be manually started//
    Only requirement is that the set of datafiles must be same.........
    Is this possible...
    waiting for some inputs..
    thnx in advance

    Oracle FailSafe is just a set of services that hook into Windows clustering to allow you to have an active/passive cluster (i.e. one instance mounted at a time). It just saves you the effort of manually configuring a bunch of things that Windows provides out of the box. I don't believe there are licensing implications to using FailSafe, but your Oracle sales rep would be the definitive answer there.
    I'd strongly suggest that you use whatever clustering facilities are part of your OS. If you are trying to develop a general solution that will work on Windows and Solaris, I wish you luck. I'd bet it would be much easier to maintain a Windows-specific solution and a Solaris-specific solution using Windows- and Solaris-specific capabilities.
    Justin
    Distributed Database Consulting, Inc.
    http://www.ddbcinc.com/askDDBC

  • Can I use my Time Capsule to set up multiple networks, or just one?

    Can I use my Time Capsule to set up multiple networks, or just one?  We'd like to offer the internet to clients who are at our studio, but don't want them able to access all our computers, so a second network for them would be useful.

    Two big IFs here.
    Not all versions of the Time Capsule have Guest Networking capability, so it might be a good idea to verify that first. Can you provide the model number of your Time Capsule.  it's on the bottom of the device.....starts with an "A" followed by four numbers.
    Next, assuming that the Time Capsule has Guest Network capability, the next requirement would be to verify that your modem is compatible with the Time Capsule for that feature. 
    Basically, you need a simple modem.....not a modem/router or gateway device that is often furnished by Internet Service Providers.  If you are not sure what you have, post back with the make and model number of your "modem" and we'll see if we can find some details ont he device.

  • UPDATE multiple columns with conditional SET parameters

    I have a procedure that updates multiple columns of a table using the procedure's parameter. Is it possible to have one update statement with conditional SET parameter?
    CREATE TABLE TEMP
    (POL_NUM NUMBER,
    OED DATE,
    TERM NUMBER,
    TRANS_CD CHAR(2));
    INSERT INTO TEMP VALUES (1, '1 AUG 2009', 12, 'NB');
    INSERT INTO TEMP VALUES (2, '4 AUG 2009', 12, 'XL');
    INSERT INTO TEMP VALUES (3, '2 AUG 2009', 12, 'RN');
    COMMIT;
    CREATE OR REPLACE PROCEDURE TMP_PROC (
      pPOL_NUM NUMBER,
      pOED IN DATE,
      pTERM IN NUMBER,
      pTRANS_CD CHAR2)
    AS
    BEGIN
      IF pOED IS NOT NULL THEN
        UPDATE TEMP SET OED = pOED WHERE POL_NUM = pPOL_NUM;
      END IF;
      IF pTERM IS NOT NULL THEN
        UPDATE TEMP SET TERM = pTERM WHERE POL_NUM = pPOL_NUM;
      END IF;
      IF pTRAN_CD IS NOT NULL THEN
        UPDATE TEMP SET TRANS_CD = pTRANS_CD WHERE POL_NUM = pPOL_NUM;
      END IF;
      COMMIT;
    EXCEPTION
      WHEN OTHERS THEN
         NULL;
    END;Is it possible to replace multiple IFs from the code to have only one UPDATE statement with condition that update the column only if the passed parameter is not null? In real scenario I have more than 3 columns and I don't want to write many IF blocks.
    Please help Gurus!!
    Edited by: Kuul13 on Sep 18, 2009 1:26 PM

    Hi,
    You certainly don't want to issue separate UPDATE statements for every column; that will be really inefficent.
    SQL has several ways to implement IF-THEN-ELSE logic. CASE is the most versatile, but NVL will do everything you need for this job. You can use one of those to set a column to itself (and therefore not really update that column) when appropriate.
    For example:
    CREATE OR REPLACE PROCEDURE TMP_PROC (
      pPOL_NUM   IN       NUMBER,
      pOED          IN   DATE,
      pTERM          IN   NUMBER,
      pTRANS_CD  IN       CHAR
    AS
    BEGIN
         UPDATE  temp
         SET     oed      = NVL (poed,       oed)
         ,     term      = NVL (pterm,       term)
         ,     trans_cd = NVL (ptrans_cd, trans_cd)
         WHERE     pol_num      = ppol_num;
      COMMIT;     -- Maybe
    END    tmp_proc;"EXCEPTION WHEN OTHERS THEN NULL" is almost always a bad idea. If there's an error, don't you want to know about it? Shouldn't you at least log a message in a warnings table or something?
    Think careflully about whether or not you want to COMMIT every time you call this procedure.
    Just as it's inefficient to issue a separate UPDATE statement for every column, it's also inefficient to issue a separate UPDATE statement for every row. If efficiency is important, it should be possible to UPDATE several rows in a single UPDATE statement, using NVL (or CASE, or COALESCE, or NULLIF, or NVL2, or ...).
    This was a very well-written question! Thanks for providing the CREATE TABLE and INSERT statements, and such a clear explanation.

  • Executing a program multiple times with different variants

    Hi All,
    I want to create a tool which executes a program multiple times taking different variants (which I would be
    maintaining in an excel sheets) and for each time the program gets executed, its output would be
    written to a particular file.
    I understand that this requirement is quite vague but I am trying to figure out if a tool/program could
    be written in abap which does this or do I need to think of a different platform such as C#.Net
    Thanks,
    Faiz

    Hi Rahman,
    This class 'cl_salv_bs_runtime_info' will get the output of internal table.
       DO n times.
          cl_salv_bs_runtime_info=>set
          SUBMIT ZARCHER_0099 WITH VARIANT..(variant name can from your excel sheets?)
          cl_salv_bs_runtime_info=>GET_DATA
          call 'GUI_DOWNLOAD'  or OPEN DATASET...(down output to file)
       ENDDO.
    Hope can help you.
    regards,
    Archer

  • I am using Windows 7 Home Premium 64-bit OS.  I've never had this problem before... today I opened iTunes and it prompted me to download the newest version.  I use iTunes all the time and have updated it multiple times with no issues.  During the installa

    I am using Windows 7 Home Premium 64-bit OS.I've never had this problem before... today I opened iTunes and it prompted me to download the newest version.  I use iTunes all the time and have updated it multiple times with no issues.  During the installation process it gave me an error message that said: 
    Runtime error! 
    Program C:\Program Files\iTunes.exe
    R0634
    An application has made an attempt to load the C runtime library incorrectly.
    Please contact the application's support team for more information.
    I quit the installation, uninstalled iTunes and rebooted my computer.  I now receive a similar message with a slight difference:
    Runtime error! 
    Program C:\Program Files (x86)...
    R0634
    An application has made an attempt to load the C runtime library incorrectly.
    Please contact the application's support team for more information.
    I did not leave anything out from the error message.  It doesn't point to a specific file, it just ends with "(x86)..."  Every time I boot up my computer, this error message pops up on my desktop.
    How do I repair this issue?  I have found multiple suggested solutions but am unsure which one is the best, and I don't want to try a bunch of different things for fear I may make the problem worse.  I would like to try and fix this myself if possible but I need to know if that is really possible or if I need to take my computer to someone for repairs.  Any suggestions will be greatly appreciated!!

    Hi lustyln,
    I'm having a little trouble understanding all of what you are trying to explain. From what I can tell, it sounds like your PC has a lot of software problems and you want to know what is supposed to be there and what isn't.
    For reference, here are your product specifications:
    http://h10025.www1.hp.com/ewfrf/wc/document?cc=us&dlc=en&docname=c01893242&lc=en&product=4043282
    To get your PC software back to how it was when it was first purchased, run a system recovery:
    http://h10025.www1.hp.com/ewfrf/wc/document?cc=us&dlc=en&docname=c01867418&lc=en&product=4043282
    I hope this helps.
    ...an HP employee just trying to help where I can, but not speaking on behalf of HP.

  • Can I view the same pdf on multiple iPads at the same time with 1 iPad operating as the master (controlling page turns etc)?

    Would like to use 4nr iPads as an autocue system. Can I view the same pdf on multiple iPads at the same time with 1 iPad operating as the master (controlling page turns etc) and the others operating as slaves? Can this be done without the use of 3G or a remote Wifi hub? I would appreciate your input.................

    Open the document in Acrobat Reader and use the menu Window > New Window.

  • While updating my iphone 4s to ios6, I had to restore it. Now every time I connect to itunes, I get the "Set Up Your iPhone" window with the set up as new iphone and restore from backup options. After the restore, I got everything except my apps back.

    While updating my iphone 4s to ios6, I had to restore it. Now every time I connect to itunes, I get the "Set Up Your iPhone" window with the set up as new iphone and restore from backup options. After the restore, I got everything except my apps and music back. Do I need to set the phone up as new again?

    Hi Vidbrent,
    If you are having issues updating or restoring your iPhone, you may find the following article helpful:
    Apple Support: If you can't update or restore your iOS device
    http://support.apple.com/kb/ht1808
    Regards,
    - Brenden

  • When I enter my password to start my atv it tells me, that "there was a problem connecting to the network."  My Ipad works fine but not my new atv.  I have reset my password multiple times with no help.  I have also rebooted my wireless server.take it bac

    When I enter my password to start my atv it tells me, that "there was a problem connecting to the network."  My Ipad works fine in my house, but not my new atv.  I have reset my password multiple times with no help.  I have also rebooted my wireless server.  Do I take it back?

    Where is everyone????  Does anyone have an answer???
    Allik1

  • Can you use 2 sets of bluetooth headphones at the same time with the Ipad 4?

    Hi, I was wondering if anyone could tell me if I can use 2 sets of bluetooth headphones at the same time with the Ipad?
    It is so my children can watch a film or listen to music together.
    Thanks

    No

  • Do browser send a error report to the website if browser fail in set up communication channel first time with that site

    Suppose i want to open some site using mozilla but first time browser fail to set up communication channel. When I attempt second time it successfully set up a connection then my question is that on the second time will browser send error report of first time to that site

    What was the specific problem with the first request? For example:
    * The server reset the connection
    * Page didn't load (blank)
    * Security certificate error
    * et cetera
    In some of these cases, the destination server might not know you sent a first request. And in other cases, that will be in the log. But I do not think Firefox sends any notification of problems with previous connections, the site would have to make an educated guess about the problem based on getting two sequential requests from the same IP address.

  • HT201263 my ipod touch 4th gen isnt work after a long time with 0 percent battery power.Then its not working. computer doesnt respond to my ipod .only black screen is appearing it even not wake up after reset it what can i do please help me

    my ipod touch 4th gen isnt work after a long time with 0 percent battery power.Then its not working. computer doesnt respond to my ipod .only black screen is appearing it even not wake up after reset it what can i do please help me

    After being connected to a charging source overnight try:
    - iOS: Not responding or does not turn on
    - Also try DFU mode after try recovery mode
    How to put iPod touch / iPhone into DFU mode « Karthik's scribblings
    - If not successful and you can't fully turn the iOS device fully off, let the battery fully drain. After charging for an least an hour try the above again.
    - Try on another computer
    - If still not successful that usually indicates a hardware problem and an appointment at the Genius Bar of an Apple store is in order.
      Apple Retail Store - Genius Bar

  • When our iPad is in use on the internet, my iMac internet connection goes off. I can't get the two devices to work at the same time with the AirPort Express. Is there a setting somewhere I may have missed?

    When our iPad is in use on the internet, my iMac internet connection goes off. I can't get the two devices to work at the same time with the AirPort Express. Is there a setting somewhere I may have missed?

    When two or more devices conflict it typically means that the DHCP service is either misconfigured or is not running at all. DHCP provides IP addresses to local network clients.
    Is your AirPort Express base station the only router in your current network configuration? That is, is it connected directly to an Internet modem and not to another router upstream of it?

Maybe you are looking for

  • To_Number conversion in Fast Formula

    Hi All I am doing a simple Fast Formula calculation where I'm trying to convert the return date into number. It is throwing error. But What am i doing wrong. I'm trying to convert the date returned value to number. APP-FF-33983: Parameter type mismat

  • ORA-17085 bug jdbc update on where statement

    hi, i'm going crazy. i have this bug since 2009 and i don't know how to do. i'm sure it's a bug from jdbc oracle (because it's working with mysql) i guess it's not possible to do update on a row where this row is in the where query. 1) Resultset with

  • How much easier will OS X Server make my working life?

    Hi folks, thanks for taking the time to read... I'm involved in a business exporting kitchen appliances from the UK. We have a small number of staff operating in a number of locations - frequently travelling to our export location. I have been consid

  • Smart form template size problem!!!

    Hi Experts, Now I met a pronlem about smartforms template. the cell in the template is set to 16CM width(which is enough) and height is only 3.5MM. and I define the sytle with font is 8pt. I input the text for the template and all check is fine. but

  • Software Center displays no found items under all the tabs

    Wanna ask, I often faced issues where the software center on my client machines shows no items found. I have double checked the agent, and it is installed properly (I can see under Actions tab got 11 actions and correctly pointing to the mgmt point).