Hi
I wrote a cgi file, HTTPD_ROOT/cgi-bin/lock.cgi, in target PC
in order to run some command on the target PC :
Quote:
#!/bin/sh
sem=`cat /var/lock/semaphore`
sem=$(($sem+1))
echo -n $sem > /var/lock/semaphore
/bin/pidof rsyncmon > /dev/null
if [ $? -eq 0 ]; then
echo "Already running: rsyncmon"
return 0
fi
/usr/local/bin/rsyncmon &
return 0
|
and I ran wget on my PC :
then I could get the output - /var/lock/semaphore - on target PC
but it failed to download the cgi file, lock.cgi :
NO response infinitely...
Any advice to download successfully?
Thanks in advance.