I wrote a cgi file, HTTPD_ROOT/cgi-bin/lock.cgi, in target PC
in order to run some command on the target PC :
echo -n $sem > /var/lock/semaphore
/bin/pidof rsyncmon > /dev/null
if [ $? -eq 0 ]; then
echo "Already running: rsyncmon"
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.