http://blog.chinaunix.net/uid-7552018-id-182133.html crontab执行php脚本 http://www.jb51.net/article/29136.htm [root@jiangbo ~]# crontab -u root -l no crontab for root [root@jiangbo ~]# crontab -u root -e no crontab for root - using an empty one crontab
问题:在shell脚本中执行“su – 用户名”后,脚本终止执行,并且切换到su 中指定用户名的交互式界面 现象:我在root中执行一个脚本,但是其中的一些命令或脚本必须用oracle用户来执行., [root@HZ-ITF- cron.d]# vi /data/itf/app/oracle/sync/test.sh #!/bin/bash set -x su - oracle sqlplus /nolog <<EOF conn hxy/hxy create table test1 as s