[ Cron_okm ] Time-based job scheduler

Discussion on apps, protocols, APIs, specifications, and more. You are welcome to join us as a TOS app developer!
User avatar
waltools
Posts: 2
Joined: 19 May 2023, 20:45

Re: [ Cron_okm ] Time-based job scheduler

Post by waltools »

#UPDATE

after some time I found the solution... the key is to use absolute path for all apps involved.

crontab:
@reboot wendhausen /Volume1/User/wendhausen/\[raid\]/\[system\]/onboot.sh ps3netsrv

script:
/Volume1/@apps/Tmux/sys/bin/tmux new-session -d -s onboot '/home/wendhausen/[raid]/games/Playstation/ps3netsrv_linuxX86_64 /home/wendhausen/[raid]/games/Playstation/ 38008 *.*.*.*'

now it is scalable.
:D
User avatar
Madvic
Posts: 16
Joined: 08 Sep 2021, 23:01
Spain

Re: [ Cron_okm ] Time-based job scheduler

Post by Madvic »

The tool isn't working, that is, no schedules are triggered. I should be doing something wrong but I don't know what.
Product: F2-221
TOS version: 5.0.176-00227
Cron_okm version: 1.5.7.1

These are the two crontab lines I configured:
*/15 * * * * <absolute_path>/CopyToOneDrive.sh
*/5 * * * * <absolute_path>/SyncToOneDrive.sh

The intent is to have one executed every 15 minutes and the other every 5 minutes

The Daemon is running and auto start is enabled.

Edit: Regular cron (using crontab -e from command line) works well
User avatar
outkastm
Gold Member
Posts: 1459
Joined: 29 Dec 2020, 23:52

Re: [ Cron_okm ] Time-based job scheduler

Post by outkastm »

The app is working, I guess you haven't read the complete topic to see what you did wrong

viewtopic.php?f=37&t=1821&start=20#p24709
User avatar
Madvic
Posts: 16
Joined: 08 Sep 2021, 23:01
Spain

Re: [ Cron_okm ] Time-based job scheduler

Post by Madvic »

Indeed, dumb me :-)
Thanks
User avatar
mmedic
Posts: 11
Joined: 29 Dec 2024, 00:31
Russia

Re: [ Cron_okm ] Time-based job scheduler

Post by mmedic »

Hi! Thank you for the great app. Am I right in understanding that "crontab -e" schedule script will be automatically executed after reboot or I should add it into system boot sequence? I faced the issue that cron-okm cannot be enabled on latest TOS6 after beeing successfully installed via tpk file.
F4-424, actual TOS6
User avatar
Scottnorwo
Posts: 5
Joined: 09 Sep 2023, 08:39
United States of America

Re: [ Cron_okm ] Time-based job scheduler

Post by Scottnorwo »

tos 6 soon??
User avatar
outkastm
Gold Member
Posts: 1459
Joined: 29 Dec 2020, 23:52

Re: [ Cron_okm ] Time-based job scheduler

Post by outkastm »

Will be done asap
User avatar
Mikmak2000
Posts: 1
Joined: 16 Jul 2025, 17:17
Bonaire

Re: [ Cron_okm ] Time-based job scheduler

Post by Mikmak2000 »

It seems the v6 version is done by looking at the Apps page, but the page does not link to the file.
If I try v5 on TNAS v6 it installs but cannot start.
User avatar
brunix86
Posts: 63
Joined: 12 Oct 2021, 21:51
Italy

Re: [ Cron_okm ] Time-based job scheduler

Post by brunix86 »

outkastm wrote: 28 Mar 2025, 03:26 Will be done asap
Hi outkastm,
I see that the app is compatible with TOS6, but there is no link about that version:
Image

Could you kindly check links?
Thanks
My NAS Environment
  • TNAS F4-424
  • TOS 7.0.0777 (8GB System Partition)
  • 1x RAM Terramaster 8GB DDR5 4800 MHZ
  • 2x HDD WD RED PLUS 4TB CMR [RAID1]
  • 2x HDD Seagate IronWolf 12TB CMR [RAID1]
  • UPS Tecnoware ERA PLUS 1100 [770 W]
Play your console games on PC!
User avatar
outkastm
Gold Member
Posts: 1459
Joined: 29 Dec 2020, 23:52

Re: [ Cron_okm ] Time-based job scheduler

Post by outkastm »

It was up to 6.0.420. I need to create a new app for newer TOS6
Post Reply

Return to “Developer Discussion Room”