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!

If something isn't working, I'm probably improving it, try again in a minute. If it's still not working, please mail me!