News:

OS2World.com Forum is back !!!

Remember to visit OS2World at:
http://www.os2world.com

Main Menu

Job Scheduling

Started by Dan Eicher, August 08, 2025, 01:22:12 AM

Previous topic - Next topic

Dan Eicher

Last week I installed locate.

Today, I went in to use it was warned - the database was more than 8 days old.

I use crontab on linux, and at on windows.

What's the preferred method of job scheduling on ArcaOS?

Dave Yeo

There are ports of chron and similar. The ArcaOS way would be to create a program object for your program, open the properties and go to the schedule tab and set the time and how often to open it, weekly in your case I assume.

Dariusz Piatkowski

I use CRON/2...pretty easy setups:


┌────────────────────────────────────┐
│            C R O N / 2             │
├────────────────────────────────────┤
│   A UN*X CRON clone for OS/2       │
│   with client/server networking    │
│                                    │
│            version 1.4n            │
│                                    │
│    Copyright (C) 1993 Bob Hood     │
│                  2001 Detlef Graef │
│                  2015-19 Yuri Dario│
└────────────────────────────────────┘

Dan Eicher



Ok, I'm sure I could make cron work (we have been friends for 40 years), but since my primary reason for investment in Arca was to re-familiarize myself with os/2 and learn all the new arac goodness, I'll try the program object way first.

Thanks Dariusz and Dave.

Steven Levine


Dariusz,

Reviving old topic.  Massimo is stuggling to get this working with uacme.  Do you happen to have a link to the distro for the cron2 1.4n you are using?

Thanks,

Steven

Dariusz Piatkowski

Steven,

Quote from: Steven Levine on August 09, 2026, 09:15:02 PM...Reviving old topic.  Massimo is stuggling to get this working with uacme.  Do you happen to have a link to the distro for the cron2 1.4n you are using?...

In short, not a link to where the original ZIP came from (nor do I have such a ZIP file saved locally), however I do actually have the source - presumably b/c I was either interested in knowing more about how this util was built, or perhaps wanted to do some enhancement on it??? (mind you, that datestamp on that folder in my system is Sep_2019, and I haven't touched it since.

OK, but having said that, YUM now shows this:

Installed Packages
cron2.pentium4                          1.4.2-1.oc00                installed

Available Packages
cron2.i686                              1.4.2-1.oc00                netlabs-exp
cron2-debuginfo.i686                    1.4.2-1.oc00                netlabs-exp
cron2-debuginfo.pentium4                1.4.2-1.oc00                netlabs-exp

...and seeing as I went looking for my cron2.exe and found it in \usr\bin I can confirm that this RPM does in fact appear to work since I clearly have that package installed here.

FYI - I found that the setup is a bit nuanced, meaning: take a look at all places where the cron2 related stuff sits on my system:

/etc/cron2.dat
/tmp/log/ARCHIVE/cron2 - 2020.log
/tmp/log/ARCHIVE/cron2 - 2021.log
/tmp/log/ARCHIVE/cron2 - 2022.log
/tmp/log/ARCHIVE/cron2 - 2023.log
/tmp/log/ARCHIVE/cron2 - 2024.log
/tmp/log/ARCHIVE/cron2 - 2025.log
/tmp/log/cron2.log
/usr/bin/cron2.exe
/usr/share/doc/cron2-1.4.2
/usr/share/doc/cron2-1.4.2/cron2.doc
/usr/share/doc/cron2-1.4.2/cron2.ico
/var/cache/rpm/wps/packages/cron2

OK, so deciphering the above the "/tmp/log/ARCHIVE..." stuff is where I roll the LOG (that's my little Christmas routine lol - just to keep the active stuff smaller), but otherwise you control cron2 behaviour from /etc/cron2.dat and the logging I have set this to goes to /tmp/log/cron2.log, the binary sits in /usr/bin and the documentation goes to /usr/shared/doc.

Does that help in any way?