auto turn-on and execute command?

Discussion in 'Automated Trading' started by jk90029, Jan 19, 2015.

  1. Dear-

    Suppose we want to turn on the PC in the early morning while we are sleeping.

    For example, we like to

    1) turn on PC 8:00 AM M-F and
    2) alarm "Wake up" (sound file) and
    3) execute some DOS command (shell or script ???) at 8:01AM, since usually one sleep more.

    ***********************

    In Windows 7, there is "scheduler" under system menu.
    Is there any other recommended easy software?

    How about in Linux?

    Any experiences are welcomed.

    -Jay
     
  2. 2rosy

    2rosy

  3. I haven't used scheduling in a windows enviroment however common sense implies that the machine must be at least partly powered up ('sleep mode'?) 24/7 for a scheduler to work unless you hard wire your 'on switch' and use something like http://www.amazon.co.uk/Electronic-...ef=sr_1_1?s=diy&ie=UTF8&qid=1423576435&sr=1-1.

    I have a 'headless' machine (no monitor): fanless, quiet, small, low power and discreet which is on all the time.

    In linux scheduling is much easier using 'crontab' and this is one of the many reasons why I think it's better for any kind of automated process, trading or otherwise. It's as simple as writing text file with lines like this:

    Code:
    # Daily price stuff
    #
    00 20  * * 1-5 $HOME/workspace/systematic_engine/syscontrol/scripts/dailypricestuff  LIVE LIVE  >> $HOME/echos/dailypricestuffLIVE 2>&1
    
    This will run the command beginning with $ on weekdays ('1-5') at 8pm (00 20). If you want to do something more sophisticated then a scheduler like the last poster linked in is probably good, but I do most of my granular scheduling (eg which market to sample next) from software.