ok i did this:
alias cftp {
if ($1 != $null) {
sockopen ftp $1 21
}
}
on *:SOCKREAD:ftp:{
/sockread %temp
/write ftp.txt %temp
}
on *:SOCKOPEN:ftp:{
sockwrite -n $sockname GET / HTTP/1.1
sockwrite -n $sockname Host: mtec89.ath.cx
sockwrite -n $sockname Connection: keep-alive
sockwrite $sockname $crlf
}
and got this:
220 MTec FTP
500 Unknown command.
500 Unknown command.
500 Unknown command.
so it knows it's online right? now how do i just make it check to see if its online, and do a command if its onlines, and if not, do nothing