הרשם שאלות ותשובות רשימת חברים לוח שנה הודעות מהיום

חזור   הוסטס - פורום אחסון האתרים הגדול בישראל > עיצוב גראפי, תכנות על כל שפותיו וקידום ושיווק אתרים > פורום תיכנות

   
|!|

 
 
כלים לאשכול תצורת הצגה
Prev הודעה קודמת   הודעה הבאה Next
ישן 19-12-10, 15:20   # 2
yonatan
I am root
 
yonatan's Avatar
 
מיני פרופיל
תאריך הצטרפות: Oct 2005
מיקום: אשדוד
גיל: 40
הודעות: 3,911

yonatan לא מחובר  

2 דקות ב BASH
תודה על הרעיון
קוד:
#!/bin/bash
# Author: Yonatan Pingle
# contact: yonatan.pingle "at" gmail.com
# Date: 19/12/2010
#
# how many visitors we had on our website ?
#
# this check's how many unique IP addresses were logged by apache on our website Today
#
# Add this to your daily cronjob at /etc/cron.daily/
# chmod +x uniqvis.sh
#
uni=`which uniq`
c=`which wc`
yom=`date +%d/%b/%Y`
logfile=/var/log/httpd/access_log
kama=`/bin/grep $yom $logfile | $uni | $c -l`
/bin/echo on $yom we had $kama visitors

# to create a log , un comment the following:

# echo "on $yom we had $kama visitors" >> /var/log/visitors.log
#
# get creative and phrase out to html , to have a nice web based log tracker.
__________________
אחסון אתרים - Red Hat Certified
עקבו אחרינו בטוויטר!

  Reply With Quote
 

חברים פעילים הצופים באשכול זה: 1 (0 חברים ו- 1 אורחים)
 


חוקי פירסום
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is מופעל
סמיילים הם מופעל
[IMG] קוד מופעל
קוד HTML מכובה

קפיצה לפורום


כל הזמנים הם GMT +2. הזמן כעת הוא 17:13.

מופעל באמצעות VBulletin גרסה 3.8.6
כל הזכויות שמורות ©
כל הזכויות שמורות לסולל יבוא ורשתות (1997) בע"מ