Browsing this Thread:
1 Anonymous Users
|
Re: List Problem
|
||||
|---|---|---|---|---|
|
Home away from home
![]() |
fwiw: from here:
Quote: DATES but there i also read: Quote: date time and: Quote: ENVIRONMENT VARIABLES
Posted on: 2013/1/25 14:50
|
|||
|
||||
|
Re: List Problem
|
||||
|---|---|---|---|---|
|
Home away from home
![]()
|
Hello Nathan
to be more confident the bug you've just submitted will be fixed, I warmly suggest to send a bug report on the AROS bug tracker as well. http://sourceforge.net/tracker/?atid=439463&group_id=43586&func=browse Enter a new incident in the SHELL/DOS category with a short description of the issue (for instance: "List command DATES argument not working as supposed"), and paste the contents of your post there, adding a note like "as reported on AROS-EXEC here: (link to this topic)" Thank you
Posted on: 2013/1/25 8:22
|
|||
|
p.bes
Icaros Desktop AROS distribution mantainer |
||||
|
||||
|
List Problem
|
||||
|---|---|---|---|---|
|
Just can't stay away
![]() |
The script shown below uses the List command to capture all file properties for a given volume into a SQLite database. Additional scripts then tell me what changed on the volume since the last capture, do extremely quick searches, etc. I use it after installation of software to see what the installer added/modified. The script works fine on Amiga OS3.0.
By default, the List command reports file dates as "Today", "Tuesday", etc. which is not useful for this application. The switch called "DATES", however, is supposed to override this feature and report dates as, for example, "25-Jan-13". This switch works correctly on Amiga OS3.0 but does nothing in icAROS 1.5.0. Thanks. Nathan ; $VER: Capture 1.1 (2009.10.25) by ndh ; fill WhatChanged.db.tblFiles with a system file list .bra { .ket } .key drive FAILAT 10 IF "{drive}" EQ "" RequestFile >ENV:WCDrive DRAWERSONLY DRAWER="SYS:" TITLE="Select drawer or drive to capture" ELSE Echo >ENV:WCDrive "{drive}" ENDIF IF "$WCDrive" NOT EQ "" rx REXX:ISODateTime >ENV:WCISODateTime Echo >ENV:WCSemiColon ";" ; sql begin transaction Echo >T:WCCapture.sql "BEGIN TRANSACTION;" ; sql insert statements without modified date nor version List >>T:WCCapture.sql "$WCDrive" files all dates lformat="INSERT OR ROLLBACK INTO tblFiles VALUES('$WCDrive','$WCISODateTime',*"%s%s*",*"%N*",*"%E*",*"%C*",%L,%K,%B,'%A','','')$WCSemiColon" ; bat to convert modified date to ISODateTime format and capture version Echo >T:WCCapture.bat "FAILAT 50" List >>T:WCCapture.bat "$WCDrive" files all dates lformat="rx REXX:2ISODateTime >ENV:WCModified %D %T*NVersion >ENV:WCVersion *"%s%s*"*NEcho >>T:WCCapture.sql *"UPDATE OR ROLLBACK tblFiles SET Version = ***"*$WCVersion***", Modified = '*$WCModified' WHERE Captured='*$WCISODateTime' AND Path='%s%s'$WCSemiColon*"" Execute T:WCCapture.bat ; sql end transaction Echo >>T:WCCapture.sql "END TRANSACTION;" SQLite3 "SQL:WhatChanged/WhatChanged.db .read T:WCCapture.sql" ; clean up ; delete ENV:WCDrive ENV:WCISODateTime ENV:WCSemiColon ENV:WCVersion ENV:WCModified T:WCCapture.bat T:WCCapture.sql QUIET ENDIF
Posted on: 2013/1/25 7:33
|
|||
|
||||
You can view topic.
You cannot start a new topic.
You cannot reply to posts.
You cannot edit your posts.
You cannot delete your posts.
You cannot add new polls.
You cannot vote in polls.
You cannot attach files to posts.
You cannot post without approval.
You cannot use topic type.
You cannot use HTML syntax.
You cannot use signature.
You cannot create PDF files.
You cannot get print page.






