Hi again guys, i have a little problem with this script, this is the final code:
ros code
:if ([/ping address=8.8.8.8 count=4]=4) do={
/file set miconexion.rsc contents ([/file get miconexion.rsc contents] . "\n" . [/system clock get date] . "\_" . [/system clock get time] ."\_ ". "Conexion")
} else={/file set miconexion.rsc contents ("\n" . [/system clock get date] . "\_" . [/system clock get time] ."\_". "No hay conexion")}
So, i have this script in a scheduler, every 5 seconds for testing, but i dont know why, this script stop writing in the file or it rewrites the file, erasing all before lines wrote, after X seconds.. :S
Maybe the problem is on the else, but i dont find it..
UPDATE: The script usually stops when the file (miconexion.rsc) reached the +-4000B