On Friday, April 20, 2007 7:15 PM [EDT],
[EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
Hi all,
got rid of the asterix and now it looks like this:
FILEALIAS " successfully " %1
works just fine for me. Whenever there is a directory or a file name
with spaces, this is reported now as ".zip successfully" or ".exe
successfully" or whatever the file extension is.
Unless someone has a brilliant idea, this is ok with me.
Sorry, that should be $1, not %1:
FILEALIAS "* successfully " $1
Now I have got another problem:
Any insight on how to handle brackets in the filename in the SERV-U
logfile?
[3] Fri 20Apr07 17:13:58 - (000018) Sent file e:\meeting
minutes\jbl\20070402-jbl_(extended report on weekly meeting).doc
successfully (58.1 kB/sec - 2446368 Bytes)
You don't want much, do you :-)
I don't think there's any way to do this within Analog - you're using the
same characters to do multiple things. Somtimes a space indicates the end of
a filename, sometimes it doesn't, sometimes a ( indicates the beginning of
the size field, sometimes it doesn't. You really need to properly delimit
the filename with a character that can't occur within the filename itself.
If you can't change the program that creates the logs, you would have to
"pre-process" the log by passing it through a script that could add the
appropriate delimiters before Analog sees the log, as Jackie Meese
suggested.
(It needen't be that complicated a script - you probably only need to
convert "Sent file " to [ and " successfully (" to ] and then use:
LOGFORMAT "[%j] %j %d%M%y %h:%n:%j - (%j) [%r]%j kB/sec - %b Bytes)"
(assuming you don't have any filenames with ] in them!)
Aengus
+------------------------------------------------------------------------
| TO UNSUBSCRIBE from this list:
| http://lists.meer.net/mailman/listinfo/analog-help
|
| Analog Documentation: http://analog.cx/docs/Readme.html
| List archives: http://www.analog.cx/docs/mailing.html#listarchives
| Usenet version: news://news.gmane.org/gmane.comp.web.analog.general
+------------------------------------------------------------------------