Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. trunky1

    Need help with this script

    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!
  2. trunky1

    Need help with this script

    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 :(
  3. trunky1

    Need help with this script

    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.
  4. trunky1

    Need help with this script

    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...
  5. trunky1

    Need help with this script

    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...
  6. trunky1

    Need help with this script

    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}'...

Part and Inventory Search

Back
Top