

- #Synology php write error log into web how to#
- #Synology php write error log into web update#
- #Synology php write error log into web code#
Please follow the instructions based on your edition of Windows. This task is to automatically run the script file you have just created. Click OK, go back to your file and perform step 2.6. Find and de-select the "Hide extensions for known file types".

Windows 7 / XP: Go to Start and select Computer (My Computer for XP) then along the top of the window find and select Tools > Folder Options and go to the View tab. Go back to your file and perform step 2.6. Along the top bar there is an option called VIEW, select it and to the right hand side place a tick in the box that reads "File Name Extensions". This can be done by: Windows 8: Open an explorer window such as Computer or Documents folder by pressing CTRL + E keyâs on your keyboard.

TXT at the end of the file you will need to turn on 'File Name Extensions'. TXT at the end of the text document file with. Set objRequest = CreateObject("Microsoft.XMLHTTP")Ģ.5 Go back to the text document and select Paste. 2.4 Highlight all of the green text below and RIGHT CLICK > COPY
#Synology php write error log into web update#
You must change your token and domain to be the one you want to update Step 2 - Creating the script 2.1 Go to 'Start' and select Computer (Windows XP select My Computer) 2.2 Go into C:\users\YOUR-USERNAME (Windows XP: C:\Documents and Settings\YOUR-USERNAME) 2.3 Right click in an empty spot and go to NEW > Text Document. However you will have to work out the differences in the Task Scheduler between different versions of Windows. These instructions are for Windows 7, the vbs script should work in Vista, Windows 8 and even XP If it is KO check your Token and Domain are correct in the duck.sh script We can also see if the last attempt was successful ( OK or bad KO) Next we will be using the cron process to make the script get run every 5 minutesĬopy this text and paste it at the bottom of the crontab This script will make a https request and log the output in the file duck.log Now save the file (in vi hit ESC then :wq! then ENTER) Hit ESC then use use arrow keys to move the cursor x deletes, i puts you back into insert modeĮcho url="" | curl -k -o ~/duckdns/duck.log -K.
#Synology php write error log into web code#
You can if you need to hard code an IP (best not to - leave it blank and we detect your remote ip) You can pass a comma separated (no spaces) list of domains You must change your token and domain to be the one you want to update Now copy this text and put it into the file (in vi you hit the i key to insert, ESC then u to undo) Otherwise lets get started and make a directory to put your files in, move into it and make our main script
#Synology php write error log into web how to#
If this returns a command not found like error - then find out how to install curl for your distribution. If this returns nothing - then go and read up how to install cron for your distribution of linux.Īlso confirm that you have curl installed, test this by attempting to run curl If your linux install is running a crontab, then you can use a cron job to keep updated
