ASSUMED-NEXT-TIME in a balloon hint

nnCron and nnCron LITE discussion

ASSUMED-NEXT-TIME in a balloon hint

Postby LuckMan212 » Wed, 06 Jul 2005, 10:27

Hello,

I would like to know, I have seen this task in the help:

Code: Select all
#( test_assumed_time
\ printing assumed time of the next scheduled
\ task run to console every 2 minutes
Time: */2
Action:
    ASSUMED-NEXT-TIME
    IF
        FT>DD.MM.YYYY/hh:mm:ss TYPE CR
    THEN
)#


what I would like to do is modify this task to show a pop-up balloon with the name of the next task scheduled to run, and the time. I would then assign this task to a hot-key or maybe to the double-click tray icon action.
I tried to do this myself and failed miserably.
can anyone help?

thanks
LuckMan212
 
Posts: 133
Joined: Mon, 04 Jul 2005, 11:19

Postby VK » Wed, 06 Jul 2005, 12:20

See:
http://www.nncron.ru/help/EN/commands/m ... tm#BALLOON
http://www.nncron.ru/help/EN/add_info/t ... m#taskname

Code: Select all
#( test_assumed_time1
NoActive
CREATE assumed_time_string 256 ALLOT
Action:
    ASSUMED-NEXT-TIME
    IF
        FT>DD.MM.YYYY/hh:mm:ss assumed_time_string PLACE
    THEN
    BALLOON: "%CUR-NODE CRON-NAME @ COUNT%" "%assumed_time_string COUNT%"
)#
CU
VK
User avatar
VK
 
Posts: 680
Joined: Wed, 14 Jul 2004, 19:17

Postby LuckMan212 » Wed, 06 Jul 2005, 12:36

ah OK, I see how you did that. It works but it is giving me not the information I was looking for.

I dont think what I am asking for can be accomplished. I was hoping for some command which would show me the "next" task that is scheduled to run, from my opened crontabs.

for example,

it is 6:06am
I have 3 tasks:
Code: Select all
#( task1
Time: 18 16 * * * *
Action:
...
)#

#( task2
Time: 14 6 * * * *
Action:
...
)#

#( task3
Time: 26 3 * * * *
Action:
...
)#



when I run this "test_assumed_time1" task I was hoping it can pop a balloon saying

"Task2 is next, 6:14am" or something like that.. you understand? but maybe it can be added in a future version... :?
LuckMan212
 
Posts: 133
Joined: Mon, 04 Jul 2005, 11:19


Return to nnCron forum (English)

Who is online

Users browsing this forum: No registered users and 2 guests

cron