curl-users
directory lists and -l and time-cond
Date: Tue, 19 Dec 2006 06:51:09 -0600
('binary' encoding is not supported, stored as-is)
sorry for what is I'm sure a hopelessly newby question
(hey, but I AM a hopeless newby so what can I do)
I want a list of files that are at least a day old.
I tried variations of:
curl -l --time-cond -yesterday 'theirServerLocation'
and
curl -l --time-cond -curl_getdate "2006 Dec 18 19:49:37"
'theirServerLocation'
but it always lists everything
[
Actually I'm doing this through AppleScript so I REALLY did
stuff like this:
set theirServerLocation to "ftp://" & cell "Preferences::APUserName"
& ":" & cell "Preferences::APPW" & "@" & cell
"Preferences::APDownloadURL"
set delL to (do shell script "curl -l --time-cond -yesterday " &
quoted form of (theirServerLocation))
set delL to (do shell script "curl -l --time-cond -curl_getdate " &
quoted form of "2006 Dec 18 19:49:37" & " " & quoted form of
(theirServerLocation))
-- even tried the http version:
set delL to (do shell script "curl -l -z -yesterday" & quoted form
of (theirServerLocation))
set delL to (do shell script "curl -l -z -yesterday " & quoted form
of (theirServerLocation))
]
Does the time-cond only work with down/uploading?
If so is there a way of doing this without having to list
everything and then parse it?
Any help would be appreciated
tia
rhb
Richard Howland-Bolton rhb_at_howlandbolton.com
rhowlan1_at_jcpenney.com
howlandbolton_at_earthlink.net
richardhb_at_netmatters.co.uk
jcpenney phone 972 431 3979
cell phone 214 403 8031
(richardhb_at_sprintpcs.com)
url http://howlandbolton.com/
The information transmitted is intended only for the person or entity to
which it is addressed and may contain confidential and/or privileged
material. If the reader of this message is not the intended recipient,
you are hereby notified that your access is unauthorized, and any review,
dissemination, distribution or copying of this message including any
attachments is strictly prohibited. If you are not the intended
recipient, please contact the sender and delete the material from any
computer.
Received on 2006-12-19