#!/bin/sh #name: cleanup #this is a general cleanup script #the script be used to clean the expire file for fmode client echo "starting cleanup...wait" for files in "find /home/heql/c/1.0 -mtime +3 -print" do rm $files done echo "finished cleanup" 以上是我的shell代码,我第一次写,不知道是哪里写错了,望高手指点!谢谢! : bad interpreter: No such file or directory这个错误该怎么修改?
-rw-r--r-- 1 root root 3207 2004-04-23 srt drwxr-xr-x 2 root root 4096 12月 12 17:32 htelib -rwxrwxrwx 1 root root 10228 2004-04-23 install drwxr-xr-x 2 root root 4096 12月 12 17:32 otlib drwxr-xr-x 2 root root 4096 12月 12 17:32 srlib drwxr-xr-x 2 root root 4096 12月 12 17:32 eru drwxr-xr-x 2 root ro...
我执行ifup eth0或者ifdown eth0,报如下错误: sh: /usr/bin/(swapd): /lib/ld-linux.so.1: bad ELF interpreter: No such file or directory /etc/init.d/xinetd restart也会报上边的错误,执行很多程序都会报上边的错误 启动中那个welcome to red hat linux,前的init运行的时候也报这样的错误 linux启动的时候很多程序启动运行也是老报类似的错误,谁知道 系统是:redhat enterprise linux 3 update 2 (心里真是发毛啊) 大佬...
[root@~ root]# service httpd restart Stopping httpd: sh: /usr/bin/(swapd): /lib/ld-linux.so.1: bad ELF interpreter: No such file or directory
本人初学者,所以请大家帮忙,谢谢!:) #!/bin/sh for i in `less list`;do dig $i MX|grep -v \;|if grep MX;then dig $i MX|grep -v \;|grep MX|awk '{print $1"\t" $4"\t" $6}';else echo $i| awk '{print $1"\t" "MX\t" "no exist\t"}';fi;done 我想用dig 检查MX记录, 当grep MX 找不到MX记录是,侧输出 域名, MX no exist,如果找到MX记录,就运行dig $i MX|grep -v \;|grep MX|awk '{print $1"\t" $4"\t" $6}'; 但是多次dig查...
今天找到了最新出版的>,首先阅读了其中的The global interpreter lock (GIL)部分,基本解释了自己原来的疑问,觉得非常好,现摘录如下: Finally, as we'll learn in more detail later in this section, Python's implementation of threads means that only one thread is ever running in the Python virtual machine at any point in time. Python threads are true operating system threads, but all threads must acquire...