This topic has been archived. It cannot be replied.
-
枫下家园 / 电脑电信 / 请教个linux的问题,在terminal 里面,我输入一个命令aaa,命令可以执行,但是script里面调用这个命令的时候,就说找不到,/bin/sh: 1: aaa: not found.WHY? thanks
-haihai(享受阳光);
2018-1-10
(#11282638@0)
-
path environment variable
-hunhunhunhun(不知道);
2018-1-10
(#11282654@0)
-
path里面有
-haihai(享受阳光);
2018-1-10
(#11282664@0)
-
1, Use "which aaa" to find it's path; 2, Inside the script, provide the full path to aaa. e.g. "sh /usr/local/bin/aaa".
-sailor(Ocean & Mountain);
2018-1-10
(#11282655@0)
-
1 找到,在path里面了 ,就是奇怪不工作,只好用2这个方法了
-haihai(享受阳光);
2018-1-10
(#11282671@0)