after post a form
I read STDIN with
[code]
print "POST: $ENV{'CONTENT_LENGTH'}
;";
read(STDIN, $bb, $ENV{'CONTENT_LENGTH'});
print "POST: $bb
;";
[/code]
then I get this result
[code]POST: 23
POST: [/code]
Why I can't read from STDIN? anybody help? :roll:
ps: sorry I can't post chinese.
by rocklv - Perl - 2004-08-27 09:23:12 阅读(1499) 回复(3)
原代码如下: fsmax="85" maillist1="[email]cold@163.com[/email]" maillist2="[email]hot@163.com[/email]" df -k | grep '/dev/h' | awk '{print $1,$5,$6}'>mailfile mail -s "Filesystem Information" $maillist1 < mailfile mail -s "Filesystem Information" $maillist2 < mailfile df -k | grep '/dev/h' | awk '{print $5}'>outfile while [ read fsvalue ] do fsvalue=$(echo $fsvalue | sed 's/\%//') ...
#!/bin/sh sleep 3 echo "input a:" read a if [ "$a" == y ]; then echo $a else echo no fi 问题: 如果在shell sleep 的过程敲很多次回车 例如3次 现象为 [root@localhost]#./filename input a: no [root@localhost]# [root@localhost]# [root@localhost]# _ 也就是说shell记住了你敲的这3次回车 怎么能达到这种效果: 不管敲几次回车 只捕捉input a: 出现后的那一次输入 [root@localhost]#./filename i...
两台机子 fc4 bsd5.4 在fc4 上:talk ip(bsd5.4) error on read from talk daemon:connection refused 在bsd上:talk if(fc4) checking for invatition on caller's machine 两机能ping通 均mesg y 怎么解决那?
Sun fire v120机器,使用原装的硬盘,安装,启动都没有问题,后来换了一块硬盘,型号、容量都一模一样,安装完毕后,重启机器,就报 can't read disk label can't open disk package 高手帮刊一下怎么解决?
[10/Nov/2007:13:48:27 +0800] INFO:Zeus Web server running [10/Nov/2007:13:48:27 +0800] INFO:ddd:Website http://192.168.1.103 starting [10/Nov/2007:13:48:27 +0800] INFO:ddd:Website http://192.168.1.103 running [10/Nov/2007:13:49:18 +0800] INFO:ddd:Website stopped [10/Nov/2007:13:49:20 +0800] INFO:ddd:Website http://192.168.1.103 starting [10/Nov/2007:13:49:20 +0800] INFO:ddd:Website http://192.168....
我在做rsync的时候出现这样的错误。不知道出现什么问题。 服务器端:/etc/rsync.conf uid = nobody gid = nobody use chroot = no max connection = 4 pid file = /var/run/rsyncd.pid lock file = /var/run/rsyncd.lock log file = /var/run/rsyncd.log [bx] path = /var/web/bx comment = rsync test ignore errors = yes read only = true list = false 客户端:[root@gzbackup root]# rsync -tvzrp --delete ip::bx /bak1/bx...