Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
PowerShell Tricks:
Query: Hey, We have a PHP site (Joomla 2.5.11) hosted on IIS 7.5. We do have another application hosted on cloud which holds the documents. The CRON job in Joomla requires a refresh for every 30 minutes to make the search result to work. We need the log file to capture the exception if the script fails.
Solution: Yes, its possible. Requirement in short is to refresh the web URL of cron job for every 30 minutes.
PowerShell Code: Simple Way of Doing!!!
try{
$request = [System.Net.WebRequest]::Create("CRON JOB URL")
$request.UseDefaultCredentials = $true
$response = $request.GetResponse()
$response.Close()
}Catch{$_.Exception | Out-File D:\Logs\Box\joomlaapilogs.txt}
Enjoy PowerShell :)