Login
Username:

Password:

Remember me



Lost Password?

Register now!
Main Menu
Who is Online
46 user(s) are online (38 user(s) are browsing Forum)

Members: 0
Guests: 46

more...


Browsing this Thread:   1 Anonymous Users




« 1 (2)


Re: List Problem
#4
Home away from home
Home away from home


See User information
fwiw: from here:
Quote:
DATES
Forces the date and time of creation to be displayed in the current dateformat. This keyword does not have to be used unless you are using the QUICK or NODATES keywords.


but there i also read:
Quote:
date time
The date and time of the last modification to the file or directory. The format of the date display is determined by the value of the environment variable dateformat. These elements of the listing appear by default, but may be selectively added or subtracted by using the DATES or NODATES keywords.


and:
Quote:
ENVIRONMENT VARIABLES
The List uses the same dateformat variable as used by the Date command, and in essentially the same way. If it is not defined, or if it has an illegal value, the default AmigaDOS display and input is used. Otherwise, the display and the input of dates is determined as follows:

0 AmigaDOS format DD-MMM-YY.
1 International format YY-MM-DD.
2 U.S. format MM-DD-YY.
3 Canada DD-MM-YY

If you prefix the above numbers with a dash, then the display of names like TODAY, MONDAY, FUTURE, etc., will be disabled and the format string as defined above will be used exclusively. Note that this governs the format that List expects as input as well as the format List uses for display.

Posted on: 2013/1/25 14:50
 Top  Twitter  Facebook  Google Plus  Linkedin  Del.icio.us  Digg  Reddit  Mr. Wong 


Re: List Problem
#3
Home away from home
Home away from home


See User information
I've prepared a patch to fix this, but I just need confirmation that the DATES switch should do as described in this thread. Does anyone have a reference?

Posted on: 2013/1/25 14:37
 Top  Twitter  Facebook  Google Plus  Linkedin  Del.icio.us  Digg  Reddit  Mr. Wong 


Re: List Problem
#2
Home away from home
Home away from home


See User information
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
 Top  Twitter  Facebook  Google Plus  Linkedin  Del.icio.us  Digg  Reddit  Mr. Wong 


List Problem
#1
Just can't stay away
Just can't stay away


See User information
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
 Top  Twitter  Facebook  Google Plus  Linkedin  Del.icio.us  Digg  Reddit  Mr. Wong 




« 1 (2)



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.

[Advanced Search]


Search
Top Posters
1 paolone
paolone
4462
2 nikolaos
nikolaos
4206
3 magorium
magorium
4095
4 phoenixkonsole
phoenixkonsole
3942
5 deadwood
deadwood
2917
6 ncafferkey
ncafferkey
2810
7 mazze
mazze
2222
8 Kalamatee
Kalamatee
2212
9 clusteruk
clusteruk
2114
Powered by XOOPS © 2001-2025 The XOOPS Project