You saved my day! there were indeed some line breaks in the script. Dunno why but seems working now
(get "no such file access_log*.gz" and a php error but this seems to be an other topic)
Thanks so much for your help Annihilannic!
Hello and thanks for your help!
The system is an OpenSuse 10.3. I installed the ksh additionally and tried to call ksh ./downloadchek.sh
same error as above with message
./downloadcheck: line 20: syntay error at line 27: `newline' unexpected
I am going nuts with this :(
I was running it from console, run with sh ./downloadcheck.sh (this is name of the file posted above). I checked also that the LOGDIR exists, the .unsorted files in the tmp dir are also written but empty.
Mh guess you mean
awk '/"GET \/avs\/.*\.rm.* HTTP\/[1-9]\.[0-9]" 200/ {print $3,$7,$4,$11}' /srv/www/vhosts/XXXXXXXX/statistics/logs/access_log
this executed on terminal returns kind of
- /path/to/file/filename.rm [15/Jun/2009:01:00:19 "http://www.domain.tld/updates.htm"
Does this help...
Ok guys, thanks for answers.
Here is the complete script, and yes its a shell script but it calls php scripts. Sorry for my mistake.
#!/bin/sh
LOGDIR=/srv/www/vhosts/XXXXXXXX/statistics/logs
DOWNLOAD_FILE=/tmp/si_downloads_$(date +"%Y%m%d_%H%M%S_%N")
MAX_DOWNLOADS=1
HOURS_AGO=24...
Hi,
I have a small script I shall make running again... sadly the original programmer is gone long time ago, no chance to contact him, so hop you can help me (never seen AWK before).
its the line of in a CLI PHP script
awk '/"GET \/avs\/.*\.rm.* HTTP\/[1-9]\.[0-9]" 200/ {print $3,$7,$4,$11}'...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.