[英]Not execution of shell script with nohup
我在使用“修饰符” nohup执行shell脚本时遇到问题。 在没有nohup的情况下执行的脚本可以正常工作。
该脚本拥有所有权利。 错误消息真的很奇怪。
oracle@serveur6:/home/oracle/xxx/yyy/test>ls -ltr
total 16
-rwxrwxrwx 1 oracle dba 1620 Jun 7 14:56 lanceur2.sql
-rwxrwxrwx 1 oracle dba 48 Jun 7 14:56 alt_script.ksh
drwxrwxrwx 2 oracle dba 256 Jun 7 14:57 log
oracle@serveur6:/home/oracle/xxx/yyy/test> nohup /home/oracle/admin/ESPACE/test/alt_script.ksh &
[1] 25493628
oracle@clay925p6:/home/oracle/admin/ESPACE/test> Sending output to nohup.out
nohup: /home/oracle/admin/ESPACE/test/alt_script.ksh: **No such file or directory**
[1] + Done(127) nohup /home/oracle/admin/ESPACE/test/alt_script.ksh &
检查事项:
#!/bin/sh
nohup
在后台运行命令,因此脚本必须像其他任何命令一样可执行。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.