corz.org text viewer..
[currently viewing: /public/scripts/c/uptime/ut.bat - raw]
: ampsig uptime update batch file
@echo off

: prefs..

:the directory where uptime.exe and ut.bat live..
set uTpath=C:\unix\bin\

:where on the web is your ampsig..
set url=http://domain.com/path/to/amp.php

:security..
set username=USERNAME
set password=PASSWORD

: end prefs


:call uptime..
%uTpath%uptime.exe

:extra variables to POST. edit as required..
echo -d "status=winamp starting up" >> C:\unix\bin\uptime.nfo
echo -d "title=no information yet" >> C:\unix\bin\uptime.nfo
echo -d "album=it's about to be decided" >> C:\unix\bin\uptime.nfo
echo -d "user=%username%" >> C:\unix\bin\uptime.nfo
echo -d "pass=%password%" >> C:\unix\bin\uptime.nfo

:finally, we call cURL, specifying our new configuration file..
%uTpath%curl.exe -K %uTpath%uptime.nfo %url%

Welcome to corz.org!

Bugs? What bugs? Juggling two energetic boys (of very different ages) on Coronavirus lockdown, I'm unlikely to have them all fixed any time soon. Mail me! to prioritise!