Using nohup to execute command very confused?
问题 my script: #!/bin/bash . /home/was/.bash_profile export PATH=/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin:/home/was/bin:/wasdata/oracle/10.2.0/client_1/bin: sqlplus "mon_system/monsystem@10.10.4.90" <<eof set echo off set feedback off set serveroutput on set term off set sqlprompt "" set linesize 200 spool /wasdata/scripts/systeminf/tmp-was-restart.sh exec prc_auto_restart eof sed -i '/prc_auto_restart/d' tmp-was-restart.sh /wasdata/scripts/systeminf/tmp-was-restart.sh cat