ok, here is what i got after MANY debug attempts...
on my site there is a livechat service.
on my laptop i have a script with some wget commands that make me visible by website visitors and alert me if a chat is requested.
most of wget commands are executed when the script is launched... chat alert is based on a sigle wget command executed every 30 secs.
on my server (which is under the same public ip) i have many scripts that occasionally connect to my website and upload/download some pages.
what happens is VERY strange:
when the laptop script signs me into the live chat service everything works fine on the laptop, but my website can't be reached on the server.
wget, lynx and even firefox won't find it... i.e.:
Code:
teo@server:/tmp$ lynx -dump www.li-tech-shop.it
Looking up 'www.li-tech-shop.it' first
Looking up www.li-tech-shop.it
Making HTTP connection to www.li-tech-shop.it
Alert!: Unable to connect to remote host.
lynx: Can't access startfile http://www.li-tech-shop.it/
teo@server:/tmp$
if i sign off from livechat, after a few minutes everything returns ok on server, as well.
this is the login function:
Code:
# log in livehelp
function log_in() {
wget -q -O - --keep-session-cookies --save-cookies=$cookie_file --post-data='proccess=yes&myusername='${username}'&mypassword='${passwd}'&matchip=Y&adminsession=Y' "$baseURL/login.php" > $redirect_file
redirect=$(grep "cslhOPERATOR" $redirect_file | awk -F '"' '{print $2}')
wget -q -O - --load-cookies=$cookie_file --keep-session-cookies "$baseURL/$redirect" > /dev/null # $__tempDir/check.html
wget -q -O - --load-cookies=$cookie_file --keep-session-cookies --post-data='status=Y' "$baseURL/admin_rooms.php" > /dev/null # $__tempDir/check.html
wget -q -O - --load-cookies=$cookie_file --keep-session-cookies --post-data='department='"$department"'&username='"$username" "$baseURL/admin_users_refresh.php" > $users_file
}
can you help me and debug this issue? i really can't figure out what could cause it...