我在SSH中直接运行我的脚本bash xxx.sh时,测试是通过的, 但是我把命令加入到计划任务 * * * * * bash xxx.sh 时,就会邮件报错,说mysqldump:command not found,请教这是怎么回事? 在脚本中吧mysqldump路径补全,在放到计划任务里,就回事测试通过的,但是我想省掉他的绝对路径 尝试了一下方法 都不行 1,做映射 cd /usr/local/bin ln -fs /www/wdlinux/mysql-5.1.55/bin/mysqldump mysqldump 2,把path加入到环境...
如题:我输入type或者wget或者ueradd等一些命令时,老提示 command not found. 我是用ssh远程登录的,有人说切换root用户的时候需要带参数 su - root , 我加上还是没有解决,是否是安装的时候漏装了东西?谢谢各位。 我的是7.0版本 [ 本帖最后由 andylrr 于 2009-3-19 10:14 编辑 ]
rologin: root Password: Last login: Thu Nov 30 11:09:18 on tty1 You have new mail. bash: : command not found why
首先确认脚本没有问题,直接用sh +脚本 没问题,当写入crontab 后,每次运行后,就提示有一封邮件,邮件的内容就是......sh:command not found ,大伙有遇到过吗?是什么情况?
rologin: root Password: Last login: Thu Nov 30 11:09:18 on tty1 You have new mail. bash: : command not found why
初学shell,写了个脚本,chmod +x之后执行提示command not found,系统环境redhat9,用echo $SHELL检查shell版本显示为/bin/bash,为了排错,写了一个最简单的文件testfile,内容如下: /bin/bash echo "hello linux shell" 执行chmod +x testfile,运行,错误如前。 请各位大大指点