Simple download from linux webserver to windows client
Just want to do a simple log-download from a linux webserver to a windows client and rename the local file to include a YYYY-MM-DD date.
So far I have a script file containing (script.txt):
rem get /var/log/httpd/webserver_access_log C:\logs\*_%date%.log
rem get /var/log/httpd/webserver_access_log C:\logs\*_'date +%F%'.log
get /var/log/httpd/webserver_access_log C:\logs\*+%F.log
exit
and a scheduled task in windows, running the cmd-file containing the below line:
winscp3.exe user@webserver.domain.local /console /script=C:\logs\script.txt
The file downloads properly, but the rename fails on the windowss side, it just adds some weird looking thing, something like "webserver_access_log_%25date%25.log.
I don't have php or any scripting languange installed in windows, and would prefer leaving it that way. A simple download and rename is all I want - When the log is there in windows, I'm passing it to Analog to create some nice stats, again in windows.
It's rather obvious I'm missing something somewhere, so pls, if anybody could hint me or so, I'd be very grateful!
TIA.
So far I have a script file containing (script.txt):
rem get /var/log/httpd/webserver_access_log C:\logs\*_%date%.log
rem get /var/log/httpd/webserver_access_log C:\logs\*_'date +%F%'.log
get /var/log/httpd/webserver_access_log C:\logs\*+%F.log
exit
and a scheduled task in windows, running the cmd-file containing the below line:
winscp3.exe user@webserver.domain.local /console /script=C:\logs\script.txt
The file downloads properly, but the rename fails on the windowss side, it just adds some weird looking thing, something like "webserver_access_log_%25date%25.log.
I don't have php or any scripting languange installed in windows, and would prefer leaving it that way. A simple download and rename is all I want - When the log is there in windows, I'm passing it to Analog to create some nice stats, again in windows.
It's rather obvious I'm missing something somewhere, so pls, if anybody could hint me or so, I'd be very grateful!
TIA.