每日一记-note_20200928

1、守护进程
① nohup /bin/bash /xxx/shell脚本 &
挂后台防止掉线

安装screen
建立一个窗口,并命名
screen -S window_name
执行命令
e.g. /bin/bash /xxxx/shell脚本
保存退出
Ctrl + a + d
下次登录恢复窗口
screen -r -d
2、sqlplus连接oracle
sqlplus username/password@sid &>> info.log << EOF
set heading off
set line 4000
set WRAP OFF
select 1 from dual;
exit
EOF

猜你喜欢

转载自blog.csdn.net/qq_38774492/article/details/108846429