#!/bin/sh echo "Content-type: text/html" echo echo "<HTML><HEAD>" echo "<TITLE>Are You There?</TITLE>" echo "</HEAD><BODY>" |
ison='who | grep "${1}"' |
if [ ! -z "$ison" ]; then echo "<P>$1 is logged in" else echo "<P>$1 isn't logged in" fi |
echo "</BODY></HTML>" |
<A HREF="http://www.CuoXin.com/cgi-bin/pinglaura">Is Laura Logged in?</A> |
<A HREF="http://www.CuoXin.com/cgi-bin/pinggeneric?john">Is John Logged in?</A> |
新闻热点
疑难解答
图片精选