#!/bin/bash STR="com2sec mynetwork $2 $3" if ["$1" = "add"];then sed 1i\\"$STR" "$4" > tmp elif ["$1" = "rm"];then sed /"$2"/d "$4" > tmp fi mv tmp $3 运行时会出现如下错误,求指教 root@linux:/home# ./test add aa bb a ./test: line 3: [add: command not found ./test: line 5: [add: command not found
by z770600 - Shell - 2012-02-13 20:04:53 阅读(949) 回复(3)
我编译内核时,键入make menuconfig 显示 make: command not found 意思是我没有make吗? 键入gcc也是一样。 用的是slackware,我记得全安了。怎么办?:shock:
不才供职与一家广电网络公司,最近在研究在FreeBSD下构件DHCP服务器,遇到不少问题,首先 我在网上找的教程第一条命令就执行不了 pseudo-device bpfilter 4 我的FreeBSD是最小化安装,启动后输入这条命令显示 pseudo-device:command not found 请问这是怎么回事啊? 另外能否有高人留个QQ或者MSN便与小弟随时请教,感激不尽!感激不尽啊!
<3 [test] :/home/test/insh>ll 婊璁?104 -rwxrwxr-x 1 yjs 501 33 06-20 10:58 all_make -rwxrwxr-x 1 yjs 501 2809 01-08 15:58 1_make -rwxrwxr-x 1 yjs 501 2788 01-08 15:58 2_make -rwxrwxr-x 1 yjs 501 5026 01-08 15:58 3_make 为啥出现一下,是我的环境变量吗? <4 [test] :/home/test/insh>all_make all_make: command not found. all_make #!/bin/sh 1_make 2_make 3_make
系统启动的时候 每个服务启动的时候都 提示 command not found 登陆后 也提示 bash:command not found 但虽然 这样提示 那些服务好像都已经启动了 对系统也没有什么影响 但是 这是什么原因造成的呢?
系统启动的时候 每个服务启动的时候都 提示 command not found 登陆后 也提示 bash:command not found 但虽然 这样提示 那些服务好像都已经启动了 对系统也没有什么影响 但是 这是什么原因造成的呢?
朋友们好,在实际的生产环境中,例如 跑 DB、cluster、NLB、mail 、program 等等,在RHEL 与cent os中你们会选择哪个系统呢?
今天在台式机装了centos 6.2版本。选择了basic server 装完后,发现一直都上不了网,路由器是通过DHCP来自动分配的,,那么客户机就是自动获取IP的方式上网的,我不是通过虚拟机装的。 配置如下 ifcfg-eth0文件 DEVICE=eth0 HWADDR="08:00:27:71:85:BD" NM_CONTROLLED="no" ONBOOT=yes BOOTPROTO=dhcp 但不知道为什么还上不了网 restart network的时候在分配IP提示错误 Determining IP information for eth0... faild; no lin...