1

Topic: Multiplatform: cron or something else?

It for Sciter Notes if that... And I do not know in what section questions on a multiplatform are pertinent therefore I set here. I do scheduled events ( events?) Feature: the User has possibility to set time-date of a certain event - program should notify before there comes event (for how many - it is configured). At me two options: 1. To force the program to work in background permanently and to check time most. But it is represented superfluous  therefore: 2. To use something of type cron - i.e. to ask system to launch mine exe on time approach. That explicitly it is represented more humanely... In connection with #2 there are following questions: a. Whether there is a multiplatform decision (Win, Lin, Mac) for cron-alike schedulers? Whether a.1 If there is no"that I correctly I understand that in Windows it is known as Task Scheduler b. Whether there is a method to wake the sleeping machine by means of these most cron/schedulers. Or  to me still early to want the forbidden? Well and generally I in the correct direction look or it somehow on another can be made?

2

Re: Multiplatform: cron or something else?

Hello, c-smile, you wrote: CS> 1. To force the program to work in background permanently and to check time most. But it is represented superfluous  therefore: the Variant most simple and efficient. CS> 2. To use something of type cron - i.e. to ask system to launch mine exe on time approach. That explicitly it is represented more humanely... I can lagged behind life, but cron is  root. The superuser there anything can edit. And  the changeovers cron, accessible by default in different distribution kits and simple  like would be not present. CS> a. Whether there is a multiplatform decision (Win, Lin, Mac) for cron-alike schedulers? On  I do not remember similar api for linux generally (root-ovyj cron we do not consider, and a demon it instead of api). Whether CS> a.1 If there is no"that I correctly I understand that in Windows it is known as Task Scheduler You are assured, what Task Scheduler the user whom there are no in group"managers"can ? Not so it is critical, as with , but it is unpleasant. CS> b. Whether there is a method to wake the sleeping machine by means of these most cron/schedulers. Or  to me still early to want the forbidden? On cron it is exact in any way. In remaining cases it depends on the machine, adjustments bios, the installed fire wood and power supplies adjustments in wasps. If in a straight line of such task is not present, it is better not to communicate - will work only in  number of cases. CS> well and generally I in the correct direction look or it somehow on another can be made? Or the main program leave in a background. Or a simple demon/service in one hundred kilobyte which waitabled will hang and start it when it is necessary.

3

Re: Multiplatform: cron or something else?

Hello, m2l, you wrote: m2l> Hello, c-smile, you wrote: CS>> 2. To use something of type cron - i.e. to ask system to launch mine exe on time approach. That explicitly it is represented more humanely... m2l> I can lagged behind life, but cron is  root. The superuser there anything can edit. And  the changeovers cron, accessible by default in different distribution kits and simple  like would be not present. Generally is, systemd timers. And systemd  both system processes, and user.

4

Re: Multiplatform: cron or something else?

Hello, c-smile, you wrote: CS> It for Sciter Notes if that... CS> And I do not know in what section questions on a multiplatform are pertinent therefore I set here. CS> I Do scheduled events ( events?) Feature: CS> the User has possibility to set time-date of a certain event - program should notify before there comes event (for how many - it is configured). CS> At me two options: CS> 1. To force the program to work in background permanently and to check time most. But it is represented superfluous  therefore: CS> 2. To use something of type cron - i.e. to ask system to launch mine exe on time approach. That explicitly it is represented more humanely... , both options are useless. On the one hand the probability of that that the user departs from the computer during the most necessary moment and receives a reminder too late is very great, on the other hand the user with itself has other computer (on which in 90 % Android/iOS) which it carries always with itself(himself). Therefore, , it is necessary to remind the user or by means of API calendars, or to put the application on these devices and to send them push notification messages.

5

Re: Multiplatform: cron or something else?

Hello, c-smile, you wrote: CS> the User has possibility to set time-date of a certain event - program should notify before there comes event (for how many - it is configured). Now on all platforms there is for this purpose an interface, it is possible to google by words push notification service. Alas,  the decision I do not know. CS> b. Whether there is a method to wake the sleeping machine And here so, please do not do, for those who so does there is a separate boiler in a hell.

6

Re: Multiplatform: cron or something else?

Hello, m2l, you wrote: m2l> CS> 2. To use something of type cron - i.e. to ask system to launch mine exe on time approach. That explicitly it is represented more humanely... m2l> I can lagged behind life, but cron is  root. The superuser there anything can edit. And  the changeovers cron, accessible by default in different distribution kits and simple  like would be not present. ? By default in these yours  crontab-e edits  for  the user. And that  - it is necessary sudo su; crontab-e avalon/2.0.3

7

Re: Multiplatform: cron or something else?

Hello, MTD, you wrote: MTD> CS> b. Whether there is a method to wake sleeping machine MTD> And here so, please do not do, for those who so does there is a separate boiler in a hell. A minus for it. I very often use it. avalon/2.0.3

8

Re: Multiplatform: cron or something else?

Hello, Zhendos, you wrote: CS>> At me two options: CS>> 1. To force the program to work in background permanently and to check time most. But it is represented superfluous  therefore: CS>> 2. To use something of type cron - i.e. to ask system to launch mine exe on time approach. That explicitly it is represented more humanely... Z> , both options are useless. On the one hand the probability of that that the user departs from the computer in the most necessary Z> the moment and receives a reminder too late is very great, I have some another use case. Event it we tell the notice "a sun eclipse [2017-08-21-1w]" "service purchased until [2018-08-21-1m]" i.e. it as a rule not next day and not critical events. That is - to be demanded no at user: give me the username / password for google we tell. To come through it API. And somewhere it to store and so forth a headache. Z> on the other hand the user with itself has other computer (on which in 90 % Android/iOS), Z> which it carries always with itself(himself). Therefore, , it is necessary to remind the user or by means of Z> API calendars, or to put the application on these devices and to send them push notification messages. The option with the server is clear and obvious. Usage CalDAV and so on. It would be desirable server-less the decision.

9

Re: Multiplatform: cron or something else?

Hello, m2l, you wrote: m2l> Hello, c-smile, you wrote: CS>> 1. To force the program to work in background permanently and to check time most. But it is represented superfluous  therefore: m2l> the Variant most simple and efficient. But strongly superfluous. CS>> 2. To use something of type cron - i.e. to ask system to launch mine exe on time approach. That explicitly it is represented more humanely... m2l> I can lagged behind life, but cron is  root. The superuser there anything can edit. And  the changeovers cron, accessible by default in different distribution kits and simple  like would be not present. Whether CS>> a.1 If there is no"that I correctly I understand that in Windows it is known as Task Scheduler m2l> You are assured, what Task Scheduler the user whom there are no in group"managers"can ? Not so it is critical, as with , but it is unpleasant. Both cron and Task Scheduler work for  the user is not a problem. CS>> b. Whether there is a method to wake the sleeping machine by means of these most cron/schedulers. Or  to me still early to want the forbidden? m2l> on cron it is exact in any way. In remaining cases it depends on the machine, adjustments bios, the installed fire wood and power supplies adjustments in wasps. m2l> if in a straight line of such task is not present, it is better not to communicate - will work only in  number of cases. And as it here: MSDN: Your application can restore a computer that is in a sleep state to the working state by using a scheduled timer or a device event. This is known as a wake-up event. https://msdn.microsoft.com/en-us/librar … p/aa373235 (v=vs.85).aspx I.e. any mechanism is... CS>> Well and generally I in the correct direction look or it somehow on another can be made? m2l> or the main program leave in a background. Or a simple demon/service in one hundred kilobyte which waitabled will hang and start it when it is necessary. It is clear.

10

Re: Multiplatform: cron or something else?

Hello, DenisCh, you wrote: DC> Chago? By default in these yours  crontab-e edits  for  the user. DC> and that  - it is necessary sudo su; crontab-e Yes, here rigidly overshot.

11

Re: Multiplatform: cron or something else?

Hello, c-smile, you wrote: CS> And as it here: CS> MSDN: Your application can restore a computer that is in a sleep state to the working state by using a scheduled timer or a device event. This is known as a wake-up event. CS> https://msdn.microsoft.com/en-us/librar … p/aa373235 (v=vs.85).aspx CS> I.e. any mechanism is... It is, but with reefs: -  to be  from outside bios the motherboard. Technically it is, but upon because of bugs can is stupid not work generally or under certain conditions (for example to work only if there was a dream or on the contrary not to work if was  etc.) . - the part bios in adjustments has parameter, to resolve computer awakening on the timer or not. As it is adjusted depends on the vendor at whom that by default is authorized, at someone is not present. And there is a variant when in adjustments it is not present also the vendor on a default the prohibition is exposed. - there are jambs in operation between Windows and a biocatfish. In any cases that the Windows could install generally the awakening timer are necessary  to  from the vendor which on a default are not present (stand regular ). - there are power supplies adjustments (for example power supplies> additional parameters> a dream> to resolve awakening timers), whether which regulate will be installed or not these timers. As a result  that the mechanism is, but it will not work for a part of users. How much it is the most part I will not tell, but cases will be not individual.

12

Re: Multiplatform: cron or something else?

Hello, MTD, you wrote: MTD> Hello, c-smile, you wrote: CS>> the User has possibility to set time-date of a certain event - program should notify before there comes event (for how many - it is configured). MTD> Now on all platforms there is for this purpose an interface, it is possible to google by words push notification service. Alas,  the decision I do not know. CS>> b. Whether there is a method to wake sleeping machine MTD> And here so, please do not do, for those who so does there is a separate boiler in a hell. You speak what to awake a device with regular means of type badly, but with the help push notification it is type well... Whether So? And here is how you think those push notification are made physically?

13

Re: Multiplatform: cron or something else?

Hello, c-smile, you wrote: CS> You speak what to awake a device with regular means of type badly, but with the help push notification it is type well... Yes,  it is always bad, it is necessary to use that the system offers. CS> and here is how you think those push notification are made physically? You like adults the person, and took offense as the child that I from your library do not test delight

14

Re: Multiplatform: cron or something else?

Hello, MTD, you wrote: MTD> Hello, c-smile, you wrote: CS>> You speak what to awake a device with regular means of type badly, but with the help push notification it is type well... MTD> Yes,  it is always bad, it is necessary to use that the system offers. CS>> and here is how you think those push notification are made physically? MTD> you like adults the person, and took offense as the child that I from your library do not test delight Yes well took offense... Normal discussion, I obtained much. I.e. the favor is. Simply I did not understand that means. You to me a head  with it Qt so I already thought that fashionable about push notification I missed something... Here also asked.

15

Re: Multiplatform: cron or something else?

m2l> I can lagged behind life, but cron is  root. The superuser there anything can edit. Never such was. Any user can create crontab a file from which tasks (with privileges of the created user) will to be launched. For a crone once there was a necessity to place the user in the necessary group so, probably, somewhere used crones, without placing by default the user in this group (I never faced such restrictions). I for this task would understand with what schedulers are used by default in different OS (Lin, Win, Mac) and tried to use them for the decision of the task.