× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



On Fri, 17 Jan 2003, Joe Pluta wrote:

> > You can do that in the Unix world too. That is what cron jobs are for. I
> > don't know any more detail than that though.
>
> ANYTHING you can do in one computer you can do in another.  It's just a
> matter of how it's done.  In Unix, you update a table:
>
> 01 * * * * root echo "This command is run at one min past every hour"

[snipped rest of table]

> In OS/400, it's something like this (for the 4AM job):
>
> ADDJOBSCDE JOB(MYJOB) CMD(CALL PGM(MYPGM))
>            FRQ(*WEEKLY) SCDDAY(*SUN) SCDTIME(0400)
>
> It's much easier to add a one-shot job using ADDJOBSCDE than it is to use
> cron.  But like I said, it can be done.

If you wanted a one time job then use the correct tool: the 'at' command.
You can even schedule things to run on a given queue.  If your jobs are in
file MYPGM then you would do:

at -f MYPGM 04am Jan 19

Pretty easy I think.  at and cron can do a lot of things that can't be
done easily with ADDJOBSCDE.

James Rich


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.