FC6 . TCL脚本中: if { [catch {exec mv $filedir\/* $targetdir/} result] } { puts "error:$result" 运行结果: error:mv: cannot stat `/aaa/*': No such file or directory /aaa已存在.用的是绝对路径.脚本不在根目录下. 如果用具体的文件名代替*,也可以在脚本中运行成功. 但这个目录下有多个不规则文件,能不能用一条语句实现文件移动? 手动在shell执行mv /aaa/* ....也能成功.在脚本中就不行. [ 本帖最后由 thin...
by thinothing - Shell - 2009-07-11 14:16:26 阅读(817) 回复(0)
#include
root@nmsvr # ls FXS9 base root@nmsvr # ls -l ./base: No such file or directory drwxrwxr-x 4 vobadmin answgrp 54 Mar 7 2006 FXS9 base这个文件夹明明是可以看到的,但是却ls -l不到。 请大家指点,谢谢
我总是碰到No such file or directory,但明明文件时有的,比如: ppm install RRDs.ppd,他非说我没有rrds.tar.gz,其实是在那个路径上的; 有比如,运行个ntmakefile.pl,他说 Could not open 'RRDs.pm': No such file or directory at D:/Perl/lib/ExtUtils/MM_Unix.pm line 2718. 其实MM_Unix.pm也是有的,就在那个路径上。 这是怎么回事呢,知道请指点,谢啦先! (*^__^*)
ps aux > ps.tmp while read none pid user pr ni virt res shr status cpu mem time command do grep $command ps.tmp | awk '{print $7,$8,$9}' done < top.tmp top.tmp是top的输出, 因为top没有输出进程的tty, start等信息,所以我又到ps aux的输出里面去grep 可是上面的脚本中 grep $command ps.tmp | awk '{print $7,$8,$9}' 的输出是 grep: : No such file or directory ? Ss 19:05 grep: : No such f...
我在FC6 上输入rpcinfo 报错:no such file or directory, 不知道我哪个软件包没有安装,请高手赐教,谢谢!
配置mail服务器的时候,测试是否成功,按照贴子介绍的命令 [quote] #su - qmaild -c "/var/qmail/bin/qmail-popup localhost /bin/checkpassword pwd"〈回车> +OK ,〈18789.978689240@localhost> user realuser〈回车> +OK pass password〈回车> [/quote] 可是却提示我 [quote] su: /nonexistent: No such file or directory [/quote] /nonexistent是passwd里面对qmaild的she...
我的一台scopenserver 5.0.5 一天重起好几次,系统启动时提示一下错误: Sep 9 07:54:20 pyfx snmpd[351]: Agent started (pid 351) Sep 9 07:56:35 pyfx ftpd[701]: #2 open of pid file failed: No such file or directory Sep 9 07:59:19 pyfx ftpd[718]: #2 open of pid file failed: No such file or directory Sep 9 07:59:45 pyfx ftpd[719]: #2 open of pid file failed: No such file or directory Sep 9 08:01:04...