can i have detailed, itemized log about a task

nnCron and nnCron LITE discussion

can i have detailed, itemized log about a task

Postby mantra » Fri, 07 Sep 2007, 21:12

Hi
could i have detailed, itemized log about a task ?

maybe i make a task (with delete,move , copy and so on files)

how can i have detailed, itemized log about this task


if i find the files , delete and ....so on

thanks
mantra
 
Posts: 65
Joined: Tue, 08 Mar 2005, 18:48

Postby mantra » Mon, 10 Sep 2007, 08:15

is there sombody in this forum :x :oops:


maybe i was not clear

i would love to know if there is possibility, chance to have detailed, itemized about a task
mantra
 
Posts: 65
Joined: Tue, 08 Mar 2005, 18:48

Postby Valery_Kondakoff » Mon, 10 Sep 2007, 17:23

there are no special words for logging everything.

but you can add your own comments to the log before/after every file operation using the words LOG: or CRON-LOG
CU
VK
User avatar
Valery_Kondakoff
Site Admin
 
Posts: 769
Joined: Thu, 01 Jul 2004, 20:49
Location: Moscow, Russia

Postby mantra » Mon, 10 Sep 2007, 17:37

Valery_Kondakoff wrote:there are no special words for logging everything.

but you can add your own comments to the log before/after every file operation using the words LOG: or CRON-LOG


sorry in which file should i add the word "log"?
mantra
 
Posts: 65
Joined: Tue, 08 Mar 2005, 18:48

Postby Valery_Kondakoff » Mon, 10 Sep 2007, 17:45

right inside your task, just before (or after) the file operation.
CU
VK
User avatar
Valery_Kondakoff
Site Admin
 
Posts: 769
Joined: Thu, 01 Jul 2004, 20:49
Location: Moscow, Russia

Postby mantra » Mon, 10 Sep 2007, 18:15

Valery_Kondakoff wrote:right inside your task, just before (or after) the file operation.


but i get a crash , and nncron doesn't want to run

example
Code: Select all
AsLoggedUser
LoadProfile
WatchHotKey: "@{0x7A}"
Action:
ShowNormal   NormalPriority
START-APP: H:\prova\Rainmeter.exe
START-APP: G:\rk\RKLauncher.exe



with log
Code: Select all
Log
AsLoggedUser
LoadProfile
WatchHotKey: "@{0x7A}"
Action:
ShowNormal   NormalPriority
START-APP: H:\prova\Rainmeter.exe
START-APP: G:\rk\RKLauncher.exe


with the second i get a crash
mantra
 
Posts: 65
Joined: Tue, 08 Mar 2005, 18:48

Postby Valery_Kondakoff » Mon, 10 Sep 2007, 22:07

please, take some time to read the docs!
CU
VK
User avatar
Valery_Kondakoff
Site Admin
 
Posts: 769
Joined: Thu, 01 Jul 2004, 20:49
Location: Moscow, Russia

Postby mantra » Tue, 11 Sep 2007, 20:59

Valery_Kondakoff wrote:please, take some time to read the docs!



i give a look @ the manual
i'm italian , and i don't understand well english

i did find an answer!
is there a italian manual

where shoul i put this bloody LOG ? :lol:
mantra
 
Posts: 65
Joined: Tue, 08 Mar 2005, 18:48

Postby Valery_Kondakoff » Wed, 12 Sep 2007, 14:30

here is a quick example of how to add full logging, when deleting the file:
Code: Select all
#( test_log_mantra
NoActive
Action:
FILE-EXIST: "c:\xxx.txt"
    IF
        GET-CUR-TIME
        LOG: "c:\test_log_mantra.log" "%hh%:%mm%:%ss% - Starting delete c:\xxx.txt"
        FILE-DELETE: "c:\xxx.txt"
        PAUSE: 1000
        FILE-EXIST: "c:\xxx.txt" 0=
            IF
                GET-CUR-TIME
                LOG: "c:\test_log_mantra.log" "%hh%:%mm%:%ss% - File xxx.txt was deleted succesfully!"
            THEN

    ELSE
        GET-CUR-TIME
        LOG: "c:\test_log_mantra.log" "%hh%:%mm%:%ss% - File xxx.txt does not exist!"
    THEN
)#
CU
VK
User avatar
Valery_Kondakoff
Site Admin
 
Posts: 769
Joined: Thu, 01 Jul 2004, 20:49
Location: Moscow, Russia

Postby mantra » Wed, 12 Sep 2007, 16:53

thanks valery
mantra
 
Posts: 65
Joined: Tue, 08 Mar 2005, 18:48


Return to nnCron forum (English)

Who is online

Users browsing this forum: No registered users and 0 guests