原帖由 _liu8210 于 2006-5-18 09:40 发表
语句如下
0 0 * * * su - oracle /dbbackup/expyw.sh 1>/dbbackup/ywexp.log 2>&1
重定向的ywexp.log记录如下
tcsetattr: stdin: Not a typewriter
tcsetattr: stdin: Not a typewriter
之 ...
原帖由 _liu8210 于 2006-5-24 12:34 发表
感谢大家的回复,现在终于搞定。
原因在于shell的问题。
原帖由 yanjun2023 于 2006-5-28 02:49 发表
因为他没有在?/dbbackup/expyw.sh 里加#!/bin/ksh
嘿嘿
ps:不知道各位了解securesh吗
原帖由 老农 于 2006-5-28 14:47 发表
在脚本前头加#!/bin/ksh是好习惯,否则经常出问题。
欢迎光临 Chinaunix (http://bbs.chinaunix.net/) | Powered by Discuz! X3.2 |