ChinaUnix.net
相关文章推荐:

too many arguments

#!/bin/bash if [ -z $1 -o -z $2 -o -z $3 -o -z $4 -o -z $5 -o -z $6 -o -z $7 ] then echo 'hehe' else echo 'haha' fi ./test.sh: line 2: [: too many arguments haha

by ywxwillam - Shell - 2009-04-03 22:17:34 阅读(4697) 回复(10)

相关讨论

书上的程序,一点没改,为什么说“too many arguments”? 谢谢! #!/bin/sh COUNTER=0 while [ $COUNTER -lt 5 ] do COUNTER='expr $COUNTER+1' echo $COUNTER done

by meijianchi - Shell - 2006-07-16 16:08:56 阅读(4340) 回复(8)

我在安装mysql binary 的时候,按照install binary的安装说明,安装完了以后,在最后,执行./mysqld_safe --user/mysql $的时候,抱错,抱错信息如下:(use/local/mysql/data/linuxAS.err) 061225 15:16:00 mysqld started /usr/local/mysql/bin/mysqld: too many arguments (first extra is '$'). Use --help to get a list of available options 061225 15:16:00 mysqld ended 但是,如果用./mysqld_safe --user/mysql (后...

by benkernel - MySQL - 2006-12-25 16:05:20 阅读(2608) 回复(1)

#!/bin/bash for i in `find ./ -name class` do if [ -z `ls ${i}/cache/` ] ; then echo "$i/cache/ is empty" else rm ${i}/cache/* echo "$i/cache is clear" fi done 执行可以达到功能,但显示 ./rm1.sh: line 19: [: too many arguments ./class/cache is clear 如果是#!/bin/sh 则显示为 [: 39: 12: unexpected operator ./class/cache is clea...

by assassincl - Shell - 2009-02-12 10:16:15 阅读(4413) 回复(8)

我在根目录不小心创建了很多文件,想写个shell将其删除.下面是我的源码: #!/bin/bash #program delete() { for contents in 'ls -a' do if [ $contents = "." -o $contents = ".." ] then continue fi if [ -d $contents -o -x $contents ] then continue fi rm -f $contents done } delete 此脚本放在根目录下.我执行./program 结果出现以下错误: ./program: line 26: [: too many arguments ./program: line 30:...

by kornrock - Shell - 2006-12-14 09:19:48 阅读(1886) 回复(4)

一登陆就提示: setenv: too many arguments. 我用的是tcsh,本来正常,也不知是哪里出问题了, .cshrc文件内容与其他机器一样,就是用的很别扭。不知为啥。有人遇到过此问题嘛?怎么解决的?谢谢了! 不用tcsh,shell改成bach就没问题!

by zz - Linux论坛 - 2004-04-22 12:26:06 阅读(1840) 回复(0)

too many arguments 的错误大家遇到过么?有无什么解决办法 root@test # perl -we "sub NOP(){};NOP('a')" too many arguments for main::NOP at -e line 1, at end of line Execution of -e aborted due to compilation errors. 我程序里边遇到同样的错误,网上搜到相同的简单的报错的例子!

by bulletming - Perl - 2006-09-22 09:25:08 阅读(7125) 回复(3)

我在HP-UX和Solaris的操作系统上,写了一个这样的小程序,如下,当显示i=3408时,程序中断,并提示arguments too long. 但是我在Linux上是没有的,请问如何解决这个问题呢?是csh的版本吗? #!/bin/csh set i = 1 set a = () while ($i <= 4000) echo $i set a = ($a $i) @ i++ end

by 人在深圳混 - Shell - 2008-09-17 09:18:55 阅读(1283) 回复(0)

linux下 c socket 编程 我的程序客户端和服务端建立连接后,就用这个socket下载一个文件,大约3M,每次到2.8M左右程序就不动了。客户端关掉,然后在连接, 服务端就会报错:too many open files ,我只打开了一个socket而已,加上第二次的也就两个。为什么会报:too many open files 这个错误呢。有的时候select(socket) 时还会报Segmentation fault 错误,程序退出。郁闷死!! 哪位大侠之前遇到过类似的问题,麻烦指教1,2

by liujq110 - C/C++ - 2008-12-14 15:30:42 阅读(3325) 回复(15)

有个用户连接我的qmail服务器,我抓包看了下,我的qmail服务器给这个用户返回了too many connection 的错误提示 我想请问一下qmail那个参数是设置client ip的连接限制的? 我的tcpserver设置的限制是100,应该不是tcpserver使得该用户连接不上,(因为大概到了tcpserver中的smtp连接数为30左右,该用户就连接不上), 而是qmail本身的参数, [ 本帖最后由 sosogh 于 2007-4-17 11:53 编辑 ]

by sosogh - 服务器应用 - 2007-04-17 12:09:03 阅读(1936) 回复(1)

Hi, I hit the following message although I had set the limit to infinite for all the user. 2006-07-08-06.18.57.889084+480 I26511174C505 LEVEL: Severe (OS) PID : 1417446 TID : 772 PROC : db2hmon 0 INSTANCE: db2repl NODE : 000 FUNCTION: DB2 UDB, SQO Memory Management, sqlocshr2, probe:200 CALLED : OS, -, shmat OSERR : EMFILE (24) "too many open files"...

by sunnyloke - DB2 - 2006-07-17 15:58:20 阅读(2092) 回复(0)