From: Greg Ercolano <erco@(email surpressed)>
Subject: [Q+A] How to get a job to automatically start itself at a certain
   Date: Mon, 22 Jan 2007 19:51:55 -0800
Msg# 1458
View Complete Thread (1 article) | All Threads
Last Next
> Is there an obvious way to sleep a job so that it automatically
> starts at, say, 3am or similar?

    There's at least three ways:

    1) When you submit, you can put at the "Submit Options" prompt:

           waitfor 3:00

       .. and the job will submit in the 'Wait' state, and will
       automatically awaken itself at 3am.

       For more info on the syntax of the 'waitfor' command, see:
       http://www.seriss.com/rush-current/rush/rush-submit-cmds.html#WaitFor

       Examples:

          +8h              -- 8 hours from now
          +30m             -- 30 mins from now
          17:00            -- start at 5pm
          5:30p            -- start at 5pm
          5:30p,07/22/2007 -- start at 5:30p on July 22 2007

    2) If the job has already been submitted, go into irush and in
       'Job Edit', set the 'Waitfor:' field to "3:00".
       Right click on that field to see examples.

       You can safely requeue any frames that might have already picked up,
       and they'll remain queued (as the rest of the job) until the time comes.

       Or, you can use 'rush -waitfor 3:00 <THE_JOBID>' from the command line.

    3) You can do it the old fashioned way by pausing the job,
       then running the following at a DOS or Unix shell prompt, then
       just walking away:

           rush -sleep 28800 && rush -cont <THE_JOBID> -fu

       ..where <JOBID> is the jobid of the job you want to wake up.


    In all cases with 'timed runs', always test your "theories" first
    with short timeouts, to make sure it runs as you expect. ie. don't
    just set it up and walk away without having tested it first. Otherwise
    you'll come in the next day only to see 'syntax error' or some such.

Last Next