<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Scheduling jobs using at command in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/scheduling-jobs-using-at-command/m-p/3966659#M757724</link>
    <description>As Peter tried to explain, you need to put something like this in your script:&lt;BR /&gt;&lt;BR /&gt;echo "/script1" | at now + 30 minutes&lt;BR /&gt;&lt;BR /&gt;That way, every time the script is run, it tells at to do it again in 30 minutes.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Pete</description>
    <pubDate>Thu, 22 Mar 2007 05:04:38 GMT</pubDate>
    <dc:creator>Pete Randall</dc:creator>
    <dc:date>2007-03-22T05:04:38Z</dc:date>
    <item>
      <title>Scheduling jobs using at command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scheduling-jobs-using-at-command/m-p/3966654#M757719</link>
      <description>Hi all,&lt;BR /&gt;&lt;BR /&gt;I have a list of scripts to be run on batch and I have a menu to start/stop them.&lt;BR /&gt;&lt;BR /&gt;For e.g. On executing the menu_script, it displayes as following:&lt;BR /&gt;******************************&lt;BR /&gt; List of batches&lt;BR /&gt;&lt;BR /&gt;   1. script 1&lt;BR /&gt;   2. script 2&lt;BR /&gt;   3. script 3&lt;BR /&gt;   .&lt;BR /&gt;   . &lt;BR /&gt;   10. stop batch jobs&lt;BR /&gt;&lt;BR /&gt;   99. exit&lt;BR /&gt;Enter option: &lt;BR /&gt;***********************************&lt;BR /&gt;&lt;BR /&gt;On entering the option I want to put the script in the scheduler(run the script at some time interval - . ./script | at "now + 30 minutes").&lt;BR /&gt;This makes the script to run after 30 minutes, but it is not repating again.&lt;BR /&gt;I will be passing arguments from the menu_script to script1 and so I cannot give &lt;BR /&gt;echo ". $0" | at "&lt;INTERVAL&gt;" as the last statement in the script1 (as mentioned in the man page!)&lt;BR /&gt;&lt;BR /&gt;How do I repeat run the script using at command? I don't want to use crontab.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Vidhya.&lt;BR /&gt;&lt;BR /&gt;P.S. This time I'll be very generous in giving points ;O)&lt;/INTERVAL&gt;</description>
      <pubDate>Thu, 22 Mar 2007 03:35:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scheduling-jobs-using-at-command/m-p/3966654#M757719</guid>
      <dc:creator>PM Srividhya</dc:creator>
      <dc:date>2007-03-22T03:35:39Z</dc:date>
    </item>
    <item>
      <title>Re: Scheduling jobs using at command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scheduling-jobs-using-at-command/m-p/3966655#M757720</link>
      <description>Hi,&lt;BR /&gt;you could include in your script1/script2.. files the at command, which would then trigger the repeat run.&lt;BR /&gt;&lt;BR /&gt;Problem is, if the system is shut down, you will lose your at jobs, that is why cron was invented.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 22 Mar 2007 03:41:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scheduling-jobs-using-at-command/m-p/3966655#M757720</guid>
      <dc:creator>Peter Godron</dc:creator>
      <dc:date>2007-03-22T03:41:50Z</dc:date>
    </item>
    <item>
      <title>Re: Scheduling jobs using at command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scheduling-jobs-using-at-command/m-p/3966656#M757721</link>
      <description>&amp;gt;so I cannot give echo ". $0" | at "&lt;INTERVAL&gt;" as the last statement in the script1 (as mentioned in the man page!)&lt;BR /&gt;&amp;gt;How do I repeat run the script using at command?&lt;BR /&gt;&lt;BR /&gt;If you can't edit the script, you can't repeat them.  That is where you need to add the "at now + 30".&lt;BR /&gt;&lt;BR /&gt;I suppose you could pass a parm -r ## to your script that tells it to optionally reschedule itself using at(1).&lt;/INTERVAL&gt;</description>
      <pubDate>Thu, 22 Mar 2007 03:59:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scheduling-jobs-using-at-command/m-p/3966656#M757721</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2007-03-22T03:59:52Z</dc:date>
    </item>
    <item>
      <title>Re: Scheduling jobs using at command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scheduling-jobs-using-at-command/m-p/3966657#M757722</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;How do u want to repeat it?&lt;BR /&gt;&lt;BR /&gt;After certain interval OR after finishing running instance of script?&lt;BR /&gt;&lt;BR /&gt;-Santosh</description>
      <pubDate>Thu, 22 Mar 2007 04:14:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scheduling-jobs-using-at-command/m-p/3966657#M757722</guid>
      <dc:creator>SANTOSH S. MHASKAR</dc:creator>
      <dc:date>2007-03-22T04:14:59Z</dc:date>
    </item>
    <item>
      <title>Re: Scheduling jobs using at command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scheduling-jobs-using-at-command/m-p/3966658#M757723</link>
      <description>I want to repeat it after regular intervals.</description>
      <pubDate>Thu, 22 Mar 2007 04:54:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scheduling-jobs-using-at-command/m-p/3966658#M757723</guid>
      <dc:creator>PM Srividhya</dc:creator>
      <dc:date>2007-03-22T04:54:57Z</dc:date>
    </item>
    <item>
      <title>Re: Scheduling jobs using at command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scheduling-jobs-using-at-command/m-p/3966659#M757724</link>
      <description>As Peter tried to explain, you need to put something like this in your script:&lt;BR /&gt;&lt;BR /&gt;echo "/script1" | at now + 30 minutes&lt;BR /&gt;&lt;BR /&gt;That way, every time the script is run, it tells at to do it again in 30 minutes.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Pete</description>
      <pubDate>Thu, 22 Mar 2007 05:04:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scheduling-jobs-using-at-command/m-p/3966659#M757724</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2007-03-22T05:04:38Z</dc:date>
    </item>
    <item>
      <title>Re: Scheduling jobs using at command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scheduling-jobs-using-at-command/m-p/3966660#M757725</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;U can do like this,&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;create a file say JOB_PARAM&lt;BR /&gt;&lt;BR /&gt;Enter following to it.&lt;BR /&gt;---------------------------&lt;BR /&gt;#! /usr/bin/ksh&lt;BR /&gt;JOB_REPEAT=TRUE&lt;BR /&gt;&lt;BR /&gt;# Repeat interval in seconds&lt;BR /&gt;REPEAT_INTERVAL=1800 # 30 mins&lt;BR /&gt;--------------------------------&lt;BR /&gt;&lt;BR /&gt;At the beginning of ur script add following&lt;BR /&gt;-------------------------------------------&lt;BR /&gt;. &lt;FULL path="" to="" job_param=""&gt;/JOB_PARAM&lt;BR /&gt;&lt;BR /&gt;while [ JOB_REPEAT="TRUE" ]&lt;BR /&gt;do&lt;BR /&gt;    at -f &lt;UR_SCRIPT&gt;&lt;BR /&gt;    sleep REPEAT_INTERVAL    &lt;BR /&gt;done&lt;BR /&gt;-----------------------------------------&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thats all.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;If u want to stop the job set&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;JOB_REPEAT=FALSE in JOB_PARAM&lt;BR /&gt;&lt;BR /&gt;If u want to change repeat interval&lt;BR /&gt;change REPEAT_INTERVAL value in JOB_PARAM.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;-Santosh&lt;/UR_SCRIPT&gt;&lt;/FULL&gt;</description>
      <pubDate>Thu, 22 Mar 2007 05:12:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scheduling-jobs-using-at-command/m-p/3966660#M757725</guid>
      <dc:creator>SANTOSH S. MHASKAR</dc:creator>
      <dc:date>2007-03-22T05:12:40Z</dc:date>
    </item>
    <item>
      <title>Re: Scheduling jobs using at command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scheduling-jobs-using-at-command/m-p/3966661#M757726</link>
      <description>hi,&lt;BR /&gt;&lt;BR /&gt;below a quote from "man at" which clear explains how to achieve this:&lt;BR /&gt;&lt;BR /&gt;Add a command to the file named weekly-run in directory jobs in the home directory so that it automatically reschedules itself every time it runs.  This example reschedules itself every Thursday at 1900 (7:00 p.m.):&lt;BR /&gt;&lt;BR /&gt;echo "sh $HOME/jobs/weekly-run" | at 1900 thursday next week&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;hope this helps!&lt;BR /&gt;&lt;BR /&gt;kind regards&lt;BR /&gt;yogeeraj&lt;BR /&gt;</description>
      <pubDate>Thu, 22 Mar 2007 05:15:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scheduling-jobs-using-at-command/m-p/3966661#M757726</guid>
      <dc:creator>Yogeeraj_1</dc:creator>
      <dc:date>2007-03-22T05:15:48Z</dc:date>
    </item>
    <item>
      <title>Re: Scheduling jobs using at command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scheduling-jobs-using-at-command/m-p/3966662#M757727</link>
      <description>&amp;gt;echo "sh $HOME/jobs/weekly-run" | at ...&lt;BR /&gt;&lt;BR /&gt;I assume the reason for the silly echo instead of doing "at -f file", is to allow changes to the file between "now" and that future date?</description>
      <pubDate>Thu, 22 Mar 2007 05:24:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scheduling-jobs-using-at-command/m-p/3966662#M757727</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2007-03-22T05:24:31Z</dc:date>
    </item>
    <item>
      <title>Re: Scheduling jobs using at command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scheduling-jobs-using-at-command/m-p/3966663#M757728</link>
      <description>I think I have mentioned that I have to pass some arguments to the script from the calling script and so I cannot use it the way mentioned in the man page.&lt;BR /&gt;&lt;BR /&gt;**I will be passing arguments from the menu_script to script1 and so I cannot give &lt;BR /&gt;echo ". $0" | at "&lt;INTERVAL&gt;" as the last statement in the script1 (as mentioned in the man page!)**&lt;BR /&gt;&lt;/INTERVAL&gt;</description>
      <pubDate>Thu, 22 Mar 2007 05:28:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scheduling-jobs-using-at-command/m-p/3966663#M757728</guid>
      <dc:creator>PM Srividhya</dc:creator>
      <dc:date>2007-03-22T05:28:02Z</dc:date>
    </item>
    <item>
      <title>Re: Scheduling jobs using at command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scheduling-jobs-using-at-command/m-p/3966664#M757729</link>
      <description>U can write in while loop as&lt;BR /&gt;&lt;BR /&gt;sh &lt;UR_SCRPIT&gt; &lt;SRG1&gt; &lt;ARG2&gt;|at now + &lt;INTERVAL&gt;&lt;BR /&gt;in place of&lt;BR /&gt;at -f &lt;UR_SCRIPT&gt;&lt;BR /&gt;&lt;BR /&gt;try this&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;-Santosh&lt;/UR_SCRIPT&gt;&lt;/INTERVAL&gt;&lt;/ARG2&gt;&lt;/SRG1&gt;&lt;/UR_SCRPIT&gt;</description>
      <pubDate>Thu, 22 Mar 2007 05:58:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scheduling-jobs-using-at-command/m-p/3966664#M757729</guid>
      <dc:creator>SANTOSH S. MHASKAR</dc:creator>
      <dc:date>2007-03-22T05:58:25Z</dc:date>
    </item>
    <item>
      <title>Re: Scheduling jobs using at command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scheduling-jobs-using-at-command/m-p/3966665#M757730</link>
      <description>&amp;gt;**I will be passing arguments from the menu_script to script1 and so I cannot give&lt;BR /&gt;echo ". $0" | at "&lt;INTERVAL&gt;" as the last statement in the script1 (as mentioned in the man page!)**&lt;BR /&gt;&lt;BR /&gt;Can you or can't you edit script1??  Passing args to script1 has nothing to do with editing it.&lt;/INTERVAL&gt;</description>
      <pubDate>Thu, 22 Mar 2007 06:23:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scheduling-jobs-using-at-command/m-p/3966665#M757730</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2007-03-22T06:23:23Z</dc:date>
    </item>
    <item>
      <title>Re: Scheduling jobs using at command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scheduling-jobs-using-at-command/m-p/3966666#M757731</link>
      <description>You can of course have script1 pass its current parms back to itself when it invokes at(1).</description>
      <pubDate>Thu, 22 Mar 2007 06:28:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scheduling-jobs-using-at-command/m-p/3966666#M757731</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2007-03-22T06:28:38Z</dc:date>
    </item>
  </channel>
</rss>

