topic Re: Scheduler in Generalhttp://h30499.www3.hp.com/t5/General/Scheduler/m-p/6344027#M28697
<P>The task you request is completed using DCL code within the procedure.&nbsp; Essentially you re-submit the same job with a scheduled runtime as shown below.&nbsp; Place this code at the beginning of the procedure and it will submit itself for execution at 1/2 hour after midnight.</P><P>&nbsp;</P><P>&nbsp;</P><P>$ SUBMIT -</P><P>/restart -</P><P>/AFTER="TOM+00:30:00" -</P><P>/LOG_FILE=DAY.LOG -</P><P>DAY.COM</P><P>&nbsp;</P><P>&nbsp;</P><P>As far as sending an Email, place the following line within the procedure after the work is completed and before the procedure exits.</P><P>&nbsp;</P><P>&nbsp;</P><P>$ mail -</P><P>/sub="message log_file.log</P><P>smtp%"<A target="_blank" href="mailto:user@location.com">user@location.com</A>"</P><P>&nbsp;</P><P>&nbsp;</P><P>Hope this helps,</P><P>Dan</P>Tue, 21 Jan 2014 14:10:01 GMTabrsvc2014-01-21T14:10:01ZSchedulerhttp://h30499.www3.hp.com/t5/General/Scheduler/m-p/6343927#M28696
<P>Hi all,<BR /><BR />Im trying to learn this new OpenVMS. Im very new, and it is my first time.<BR />I have start this conversation a long time ago. Now im in deep of this problem and i would like to solve it.<BR /><BR />I have one procedure that have to be execute every day. Is there any kind of scheduler for OpenVMS system?<BR />The procedure that is i execute like this:<BR />"submit /noprint &lt;name_procedure&gt;"<BR />the procedure is .com extension.</P><P>so this would be like: "submit /noprint backup.com"<BR />when i execute this there is a log file crated and i want this log file to be send on e-mail when its finish. How can i do this ?</P><P>&nbsp;</P><P>Im running&nbsp;OpenVMS V7.3-2 &nbsp;</P>Tue, 21 Jan 2014 12:43:34 GMThttp://h30499.www3.hp.com/t5/General/Scheduler/m-p/6343927#M28696MPIvan2014-01-21T12:43:34ZRe: Schedulerhttp://h30499.www3.hp.com/t5/General/Scheduler/m-p/6344027#M28697
<P>The task you request is completed using DCL code within the procedure.&nbsp; Essentially you re-submit the same job with a scheduled runtime as shown below.&nbsp; Place this code at the beginning of the procedure and it will submit itself for execution at 1/2 hour after midnight.</P><P>&nbsp;</P><P>&nbsp;</P><P>$ SUBMIT -</P><P>/restart -</P><P>/AFTER="TOM+00:30:00" -</P><P>/LOG_FILE=DAY.LOG -</P><P>DAY.COM</P><P>&nbsp;</P><P>&nbsp;</P><P>As far as sending an Email, place the following line within the procedure after the work is completed and before the procedure exits.</P><P>&nbsp;</P><P>&nbsp;</P><P>$ mail -</P><P>/sub="message log_file.log</P><P>smtp%"<A target="_blank" href="mailto:user@location.com">user@location.com</A>"</P><P>&nbsp;</P><P>&nbsp;</P><P>Hope this helps,</P><P>Dan</P>Tue, 21 Jan 2014 14:10:01 GMThttp://h30499.www3.hp.com/t5/General/Scheduler/m-p/6344027#M28697abrsvc2014-01-21T14:10:01ZRe: Schedulerhttp://h30499.www3.hp.com/t5/General/Scheduler/m-p/6344427#M28698
<P>Thanks Dan,</P><P>&nbsp;</P><P>Thanks for reply / help.</P><P>&nbsp;</P><P>So lets say that im having procedure where i will create a file and says "hello ivan"</P><P>&nbsp;</P><P>If i want every day to make a file saying Hello Ivan, i will do this:</P><P>&nbsp;</P><PRE>$ SUBMIT -
/restart -
/AFTER="TOM+13:30:00" -
/LOG_FILE=DAY.LOG -
DAY.COM
$ OPEN/WRITE test HelloTest.dat
$ WRITE OUTPUT_FILE "Hello Ivan"
$ CLOSE OUTPUT_FILE
$ mail -
/sub="message log_file.log
smtp%"user@location.com"</PRE><P>&nbsp;and all this will be in the file called "TestScheduler"</P><P>&nbsp;</P><P>or should i have make DAY.com be the file that will contain the&nbsp;</P><PRE>$ OPEN/WRITE test HelloTest.dat
$ WRITE OUTPUT_FILE "Hello Ivan"
$ CLOSE OUTPUT_FILE</PRE><P>&nbsp;:D OMG im soo noob im loost here i have&nbsp;excellent experience in Linux but with this im NOOB :D</P><P>????</P><P>&nbsp;</P>Tue, 21 Jan 2014 18:37:44 GMThttp://h30499.www3.hp.com/t5/General/Scheduler/m-p/6344427#M28698MPIvan2014-01-21T18:37:44ZRe: Schedulerhttp://h30499.www3.hp.com/t5/General/Scheduler/m-p/6344453#M28699
Tue, 21 Jan 2014 18:57:50 GMThttp://h30499.www3.hp.com/t5/General/Scheduler/m-p/6344453#M28699Steven Schweda2014-01-21T18:57:50ZRe: Schedulerhttp://h30499.www3.hp.com/t5/General/Scheduler/m-p/6344751#M28700
<P>Re: Steve's post</P><P>&nbsp;</P><P>&gt;&gt;but the last thing it does is re-sumbit itself:</P><P>&nbsp;</P><P>I recommend that a recurring batch job resubmit itself as the FIRST step, rather than the last,&nbsp;that way the job will always be resubmitted regardless of what happens in the body of the procedure. There are valid arguments both ways.</P><P>&nbsp;</P><P>A job resubmitting itself is a very common requirement. There are many pitfalls involved in losing the thread, creating multiple threads, version changes (take note of Steve's F$PARSE(";")), handling qualifiers and parameters, running the job ad-hoc,&nbsp;etc... Unfortunately DCL doesn't have any generic tools for easily managing recurring jobs.</P><P>&nbsp;</P><P>Mailing&nbsp;a jobs own&nbsp;log file can be tricky, as you're still executing (and thus potentially still writing the log file). One method is to jacket your procedure:</P><P>&nbsp;</P><PRE>$ @REAL_PROCEDURE/OUT=logfile
$ MAIL/SUBJECT="log file" logfile distribution-list
</PRE><P>You can capture&nbsp;a copy of the&nbsp;current live log file which can be mailed:</P><P>&nbsp;</P><PRE>$ tmp=F$PARSE(F$UNIQUE(),"SYS$SCRATCH:.TMP;")
$ mylog=F$PARSE(F$GETQUI("DISPLAY_ENTRY","LOG_SPECIFICATION",,"THIS_JOB"),"SYS$LOGIN:.LOG;",-
F$GETQUI("DISPLAY_ENTRY", "JOB_NAME",,"THIS_JOB"))
$ TYPE/OUTPUT='tmp' 'mylog'
$ MAIL/SUBJECT="Log file to date" 'tmp' distribution list
$ IF F$SEARCH(tmp).NES."" THEN DELETEX 'tmp'</PRE><P>&nbsp;</P><P>Note that LOG_SPECIFICATION only returns a non-null value if there was a log file explicitly named in the SUBMIT command, so the F$PARSE will fill in a default. TYPE is happy to&nbsp;read the contents of a file open for write by another process (or self), but MAIL isn't. That's why we need the temporary file.</P><P>&nbsp;</P><P>Note that there are further assumptions here - for example, if there are two instances of the same job running, this will capture the log file of the most recent job, which is not necessarily the current job. If this is an issue, you'll need to back translate the file name from SYS$OUTPUT, which is not something you can do directly in DCL (I can post a program to do it if required).</P>Wed, 22 Jan 2014 01:00:27 GMThttp://h30499.www3.hp.com/t5/General/Scheduler/m-p/6344751#M28700John Gillings2014-01-22T01:00:27ZRe: Schedulerhttp://h30499.www3.hp.com/t5/General/Scheduler/m-p/6344937#M28701
Wed, 22 Jan 2014 05:03:15 GMThttp://h30499.www3.hp.com/t5/General/Scheduler/m-p/6344937#M28701Steven Schweda2014-01-22T05:03:15ZRe: Schedulerhttp://h30499.www3.hp.com/t5/General/Scheduler/m-p/6344967#M28702
<P>&gt;I recommend that a recurring batch job resubmit itself as the FIRST step,</P><P>&nbsp;</P><P>Good point.&nbsp; This would be equivalent to UNIX's cron(1m).</P><P>Of course with at(1), you can resubmit at first or last steps.</P>Wed, 22 Jan 2014 06:14:27 GMThttp://h30499.www3.hp.com/t5/General/Scheduler/m-p/6344967#M28702Dennis Handly2014-01-22T06:14:27ZRe: Schedulerhttp://h30499.www3.hp.com/t5/General/Scheduler/m-p/6345683#M28703
<P>Thanks to all for replying !</P><P>&nbsp;</P><P>I realy need this.&nbsp;</P><P>&nbsp;</P><P>I see that you all start conversation about resubmit the job. If the system goes down or restart itself the job will start. I dont want to do this. I just want typical scheduler job. Every day in 08:00 PM to start this procedure and when its finish to send me the log file. Every day i start this procedure like this: "submit /noprint backup" --- where backup is the procedure named "backup.com". Here is what have in backup.com</P><P>&nbsp;</P><PRE>set ver
set noon
rmu /show user
rmu /repa/abm dkb6:[vg]vg.rdb
show time
sql export data file dkb6:[vg]vg.rdb into dkb9:[back]vg.rdr;
show time
purge dkb9:[*....]
back/log/media=comp dkb9:[back]*.* mka500:backup.bck
dismount mka500:
!back/log/over/ignor=inter dkb6:[vg]vg.rdb dkb9:[backi]vg.rdb
@dkb4:[ivan]imptt
purge dkb9:[*....]</PRE><P>&nbsp;and this is not my. I didnt make this file, but i have to execute every day. So my job for now is to make this file execute every working day in 08:00 PM ( mon-frid), and when its finis to send me tthe mail , the mail can contain the log file that it is created ( becouse when i execute this procedure it create the log file named backup.log in the default directory, im guessing, the log file is created because i executed with submit/noprint ... but i dont know realy :) ).&nbsp;</P>Wed, 22 Jan 2014 15:27:01 GMThttp://h30499.www3.hp.com/t5/General/Scheduler/m-p/6345683#M28703MPIvan2014-01-22T15:27:01ZRe: Schedulerhttp://h30499.www3.hp.com/t5/General/Scheduler/m-p/6345895#M28704
Wed, 22 Jan 2014 17:36:42 GMThttp://h30499.www3.hp.com/t5/General/Scheduler/m-p/6345895#M28704Steven Schweda2014-01-22T17:36:42ZRe: Schedulerhttp://h30499.www3.hp.com/t5/General/Scheduler/m-p/6346293#M28705
<P>Steven,</P><P>&nbsp;</P><P>&gt;I failed to mention that the _first_ thing my script does is:<BR />&gt;<BR />&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $ SET NOON</P><P>&nbsp;</P><P>&nbsp;&nbsp; Of course. That will deal with errors, unexpected or otherwise in the body of the procedure, but it doesn't help for system crash, power fail, normal shutdown, STOP commands (internal or external), infinite loops, lock conflicts/deadlocks, future edits&nbsp;which bypass the exit&nbsp;path,&nbsp;or any of the other gazillion things that might&nbsp;cause&nbsp;a process to stop, hang or be excessively delayed between the start and your (re)SUBMIT at the end. The longer running the job, the wider the timing window.</P><P>&nbsp;</P><P>&nbsp;&nbsp; Resubmission at the top still has a small timing window where there is no pending job. I like to have a "watchdog" type process which knows which jobs should be&nbsp;scheduled and can&nbsp;alert or resubmit&nbsp;anything missing (and yes, it&nbsp;also watches itself by having backup&nbsp;"deadman" copies&nbsp;of itself waiting to take over).&nbsp;The system startup process just need to make sure the watchdog is running, and everything else cascasdes from there.</P><P>&nbsp;</P><P>&nbsp; In a lot of ways the Unix cron model makes this kind of task a lot easier to manage&nbsp;(but then it has the problem of tracking the job&nbsp;-&nbsp;"did it run?" and "where&nbsp;the &amp;^%&amp;^% did my log file&nbsp;go?")&nbsp;</P>Wed, 22 Jan 2014 20:53:59 GMThttp://h30499.www3.hp.com/t5/General/Scheduler/m-p/6346293#M28705John Gillings2014-01-22T20:53:59ZRe: Schedulerhttp://h30499.www3.hp.com/t5/General/Scheduler/m-p/6346343#M28706
Wed, 22 Jan 2014 21:29:25 GMThttp://h30499.www3.hp.com/t5/General/Scheduler/m-p/6346343#M28706Steven Schweda2014-01-22T21:29:25ZRe: Schedulerhttp://h30499.www3.hp.com/t5/General/Scheduler/m-p/6347683#M28707
<P>&gt;but then it has the problem of tracking the job&nbsp;-&nbsp;"did it run?" and "where&nbsp;the &amp;^%&amp;^% did my log file&nbsp;go?"</P><P>&nbsp;</P><P>Oh?&nbsp; Look at the cron logfile.&nbsp; :-)</P><P>It's either mailed to you or it the place where your scripts or crontab entry left it.</P>Thu, 23 Jan 2014 18:29:51 GMThttp://h30499.www3.hp.com/t5/General/Scheduler/m-p/6347683#M28707Dennis Handly2014-01-23T18:29:51ZRe: Schedulerhttp://h30499.www3.hp.com/t5/General/Scheduler/m-p/6347737#M28708
<P>Its realy difficult to understand this system :D ... any way im now trying to make a simple script that will run every day and make a dat file that say Hello World :) ... every day in 3:00 PM and send me the log file to mail. After that i will continut for my real procedure that i need ... try to integrate. I will contact you for every progres that i will made here :) ...</P><P>&nbsp;</P><P>i realy dont know from where to start :D becouse this writing also start to look very hard :D&nbsp;</P>Thu, 23 Jan 2014 18:58:21 GMThttp://h30499.www3.hp.com/t5/General/Scheduler/m-p/6347737#M28708MPIvan2014-01-23T18:58:21ZRe: Schedulerhttp://h30499.www3.hp.com/t5/General/Scheduler/m-p/6348833#M28709
<P>It is not difficult at all, if you avail yourself of even a fraction of the helpful information available.</P><P>&nbsp;</P><P>First, all of the VMS documentation is available on-line at <A target="_blank" href="http://h71000.www7.hp.com/doc/index.html.&nbsp;">http://h71000.www7.hp.com/doc/index.html.&nbsp;</A> You can download PDF versions of most any document you'd want for nearly any release in the past decade.&nbsp; And VMS documentation is high quality by most folks standards.</P><P>&nbsp;</P><P>Next, there are many good example and useful utility procedures available, many of which address the issue you appear to be trying to solve.&nbsp; Looking at someone else's approach is a great way to learn.&nbsp; And stealing code is the highest form of flattery.</P><P>&nbsp;</P><P>I'd start with the OpenVMS Freeware page at <A target="_blank" href="http://h71000.www7.hp.com/openvms/freeware/,">http://h71000.www7.hp.com/openvms/freeware/,</A> and there are a lot of useful procedures at <A target="_blank" href="http://dcl.openvms.org/">http://dcl.openvms.org/</A> and also look in <A target="_blank" href="http://www.eight-cubed.com/articles/dcl_standards.html,">http://www.eight-cubed.com/articles/dcl_standards.html,</A> and <A target="_blank" href="http://process.com/openvms/index.html">http://process.com/openvms/index.html</A></P><P>&nbsp;</P><P>There is also the VMS FAQ and the Ask the Wizard archives <A target="_blank" href="http://hoffmanlabs.org/vmsfaq/">http://hoffmanlabs.org/vmsfaq/</A> and <A target="_blank" href="http://h71000.www7.hp.com/wizard/">http://h71000.www7.hp.com/wizard/</A></P><P>&nbsp;</P><P>Don't forget the rich HELP environment, various books (e.g., "Writing Real Programs in DCL") that may be available on Amazon, et al., and what you can probably find with a simple google or bing search.</P><P>&nbsp;</P><P>There used to be some fairly reasonable self-paced training around, but I haven't looked for it in a long time.</P><P>&nbsp;</P><P>And as Hein would probably point out, if you don't want to do it in DCL, you might want to tackle it in perl or Python or GNV/bash if you have them on your system.</P>Fri, 24 Jan 2014 14:54:31 GMThttp://h30499.www3.hp.com/t5/General/Scheduler/m-p/6348833#M28709Mike Kier2014-01-24T14:54:31ZRe: Schedulerhttp://h30499.www3.hp.com/t5/General/Scheduler/m-p/6348847#M28710
<P>I forgot one other very rich source - the DECUS Library Compendium - <A target="_blank" href="http://decuslib.com/">http://decuslib.com/</A></P>Fri, 24 Jan 2014 15:04:01 GMThttp://h30499.www3.hp.com/t5/General/Scheduler/m-p/6348847#M28710Mike Kier2014-01-24T15:04:01ZRe: Schedulerhttp://h30499.www3.hp.com/t5/General/Scheduler/m-p/6350043#M28711
<P>In no particular order...</P><P>&nbsp;</P><P>The OpenVMS operating system is ~35 years old, and most problems and questions have already been discussed and solved, bugs and oddities already posted, example code posted, docs are online, and all of these resources are readily available via Google or Bing searches, and (not in the main Google search engine) via the Usenet comp.os.vms newsgroup archives (c.o.v. is still active) available via the Google Groups search engine:</P><P><SPAN><A target="_blank" href="https://groups.google.com/forum/?fromgroups&amp;nomobile=true#!forum/comp.os.vms">https://groups.google.com/forum/?fromgroups&amp;nomobile=true#!forum/comp.os.vms</A></SPAN></P><P><SPAN>&nbsp;</SPAN></P><P><SPAN>For comp.os.vms, free usenet accounts are available via Eternal September, or you can try to use the (somewhat problematic) Google Groups posting web-based mechanisms:</SPAN></P><P><SPAN><A target="_blank" href="http://www.eternal-september.org">http://www.eternal-september.org</A></SPAN></P><P>&nbsp;</P><P>Do not assume OpenVMS is anything like Unix. &nbsp;It's not. &nbsp;The quicker you forget how Unix or Linux does stuff and learn how OpenVMS implements the particular task, the better off you will be. &nbsp; The other path leads to confusion and frustration. &nbsp;In the interim, here is a bash DCL command comparison:</P><P><A target="_blank" href="http://labs.hoffmanlabs.com/node/741">http://labs.hoffmanlabs.com/node/741</A></P><P>&nbsp;</P><P>As for DCL programming and periodic DCL resubmission -- home-grown scheduling, as OpenVMS lacks an integrated cron or other scheduler -- you'll be able to use any of the various DCL template procedures around. &nbsp;Here are two examples:</P><P><A target="_blank" href="http://labs.hoffmanlabs.com/node/97">http://labs.hoffmanlabs.com/node/97</A></P><P><A target="_blank" href="http://labs.hoffmanlabs.com/node/501">http://labs.hoffmanlabs.com/node/501</A></P><P>&nbsp;</P><P>In your case, the SUBMIT command will involve /AFTER=TOMORROW+15:00 for the resubmission, if that's when you want the next batch job to run.</P><P>&nbsp;</P><P>Sending MAIL from DCL is feasible, and here are four example commands:</P><P>&nbsp;</P><P>MAIL filename username/SUBJECT="Hello"</P><P>MAIL NLA0: &nbsp;username/SUBJECT="Hello"</P><P>MAIL filename "user@example.com" /SUBJECT="Hello"</P><P>MAIL NLA0: "user@example.com" /SUBJECT="Hello"</P><P>&nbsp;</P><P>NLA0: is the null device (akin to /dev/null on Unix; can be written or read on OpenVMS), so you'll not need to specify a filename for those particular commands. &nbsp;Otherwise, you'll need a file as the contents of the mail message. &nbsp; You'll need to quote user specifications containing an @ sign or other special characters, due to the rules of DCL. &nbsp;</P><P>&nbsp;</P><P>To read or write a file from within DCL:</P><P><A target="_blank" href="http://labs.hoffmanlabs.com/node/383">http://labs.hoffmanlabs.com/node/383</A></P><P>&nbsp;</P><P>Mike has already posted a link to <A target="_blank" href="http://decuslib.com,">http://decuslib.com,</A> and that is a massive archive of OpenVMS applications and tools and documentation. &nbsp;Use the Google or Bing site:decuslib.com keyword to target your search there. &nbsp;There's a similar but somewhat smaller archive at the&nbsp;<A target="_blank" href="http://www.digiater.nl">http://www.digiater.nl</A> site.</P><P>&nbsp;</P><P>To learn OpenVMS and writing DCL procedures, start by reading the User's Manual, and then skimming the Programming Concepts or the System Manager's manuals for more information and also depending on your particular goals:</P><P><SPAN><A target="_blank" href="http://www.hp.com/go/openvms/doc">http://www.hp.com/go/openvms/doc</A></SPAN></P><P><SPAN>&nbsp;</SPAN></P><P><SPAN>Also see the OpenVMS Beginner's FAQ and the OpenVMS FAQ (mentioned earlier):</SPAN></P><P><SPAN><A target="_blank" href="http://saf.bio.caltech.edu/vms_beginners_faq.html">http://saf.bio.caltech.edu/vms_beginners_faq.html</A></SPAN></P><P><SPAN><A target="_blank" href="http://www.hoffmanlabs.com/vmsfaq">http://www.hoffmanlabs.com/vmsfaq</A></SPAN></P><P><SPAN>&nbsp;</SPAN></P><P>Also read the current OpenVMS roadmap, as HP has plans to continue OpenVMS support for some years, but with no new releases or particular new features planned, no new platform support, and with application and platform migrations expected. &nbsp;Here's the OpenVMS roadmap and the roadmap FAQ:</P><P>&nbsp;<A target="_blank" href="http://www.hp.com/go/openvms/roadmap">http://www.hp.com/go/openvms/roadmap</A></P><P>&nbsp;<SPAN><A target="_blank" href="http://h20195.www2.hp.com/V2/">http://h20195.www2.hp.com/V2/</A></SPAN><SPAN>GetDocument.aspx?docname=4AA5-0454ENW&amp;cc=us&amp;lc=en</SPAN></P><P><SPAN>&nbsp;</SPAN></P><P><SPAN>Edit: Watch that second URL, as Lithium is being as dumb as a bag of hammers about that HP URL.</SPAN></P><P>&nbsp;</P><P>Random grumping: I'd forgotten how awful the iconography is in this Lithium tool. &nbsp;Crayon-caliber. &nbsp;Oh, and I'd forgotten the "<SPAN>Your post has been changed because invalid HTML was found in the message body. The invalid HTML has been removed. Please review the message and submit the message when you are satisfied." messages. &nbsp; Not sure what got eaten there. &nbsp;Oh, well.&nbsp;</SPAN></P><P>&nbsp;</P>Sat, 25 Jan 2014 23:14:07 GMThttp://h30499.www3.hp.com/t5/General/Scheduler/m-p/6350043#M28711Hoff2014-01-25T23:14:07ZRe: Schedulerhttp://h30499.www3.hp.com/t5/General/Scheduler/m-p/6350051#M28712
Sat, 25 Jan 2014 23:38:06 GMThttp://h30499.www3.hp.com/t5/General/Scheduler/m-p/6350051#M28712Steven Schweda2014-01-25T23:38:06ZRe: Schedulerhttp://h30499.www3.hp.com/t5/General/Scheduler/m-p/6351859#M28713
<P>I don't know what to say&nbsp;...&nbsp;THANKS A LOOT !!!</P><P>I really don't expect this kind of answers ... excelent support !</P><P>&nbsp;</P><P>I just want to say that I am in progress of making this stuff work ..<SPAN>When I&nbsp;finished definitively will shear the good job ( if it be a good :P ) ...</SPAN></P><P>&nbsp;</P><P>Again thank a loot for this help and effort you all make to explain to me&nbsp;!!!</P><P>&nbsp;</P>Mon, 27 Jan 2014 07:08:46 GMThttp://h30499.www3.hp.com/t5/General/Scheduler/m-p/6351859#M28713MPIvan2014-01-27T07:08:46ZRe: Schedulerhttp://h30499.www3.hp.com/t5/General/Scheduler/m-p/6399383#M28714
<P>Hi all,</P><P>&nbsp;</P><P>I just want to informed you that all stuff you all told me it works fantastic&nbsp;! As "abrsvc" and "John Gillings" say i did that and work great ...&nbsp;</P><P>&nbsp;</P><P>I add this lines at the end of the procedure that im executing and after it end or at the end of the job, the same&nbsp;<SPAN>job resubmit itself..</SPAN></P><P><SPAN>&nbsp;</SPAN></P><P><SPAN>this is the code iv add:</SPAN></P><P><SPAN>...</SPAN></P><P><SPAN>...</SPAN></P><P><SPAN>...</SPAN></P><P>$ mail/sub="mailjob" ivan.log "ivan@mydomain.com"<BR />$ submit -<BR />/restart -<BR />/after="TOM+22:00:00" -<BR />disk9:[ivandir]thejob<BR />$ exit</P><P><SPAN>&nbsp;</SPAN></P><P><SPAN>and that is all ... im now trying to figure out to be activate just working days mon-friday<BR /></SPAN></P>Tue, 04 Mar 2014 17:47:50 GMThttp://h30499.www3.hp.com/t5/General/Scheduler/m-p/6399383#M28714MPIvan2014-03-04T17:47:50ZRe: Schedulerhttp://h30499.www3.hp.com/t5/General/Scheduler/m-p/6399411#M28715
Tue, 04 Mar 2014 18:08:07 GMThttp://h30499.www3.hp.com/t5/General/Scheduler/m-p/6399411#M28715Steven Schweda2014-03-04T18:08:07Z