, :
/usr/bin/GET HTTP, , :
-, , PHP , cron-.
-, , /usr/bin/GET cron .
URL- script
:
/usr/bin/GET http://xyz.com/abc/pqr/SomeUniqueIdentifier
-H /usr/bin/GET, User-Agent , :
/usr/bin/GET -H "User-Agent: SomeUniqueIdentifier" http://xyz.com/abc/pqr
PHP , :
if (strcmp($_SERVER['HTTP_USER_AGENT'], "SomeUniqueIdentifier") == 0)
{
// do whatever
}
else
{
// do nothing
exit();
}
100%, .