unix中的Nologin错误

时间:2016-02-15 09:29:11

标签: shell unix

您好我正在尝试在putty中运行一个shell脚本(使用它我可以访问unix服务器)一旦我运行脚本,我收到一个错误说  "没有登录:errfiles1.zip:无法创建" 在KSH里面我正在创建一个zip文件,然后使用邮件实用程序通过邮件发送。 但是当我检查日志时它没有任何错误。什么是没有登录错误。任何人都可以帮助我。

以下是主程序。

logmessage MSG "Started executing validate_feed.ksh job" >>$LOG_FILE
logmessage MSG "Calling feedvalidor.pl" >> $LOG_FILE
## Calling feed_validator.pl script to validate the generated feed files for all the regions
$(perl $ACE_CURRENT/feed_validator/bin_new/feed_validator.pl)
logmessage MSG "Completed executing perl script feed_validator.pl!!!!!!!" >> $LOG_FILE
logmessage MSG "finding .err files in $ErrFilePath ...." >> $LOG_FILE
FILES=$(find "$ErrFilePath" -type f  | sed 's/ /\\ /g' | grep ".err")
logmessage MSG "found .err files in $ErrFilePath " >> $LOG_FILE
logmessage MSG "FILES are $FILES " >> $LOG_FILE
if [ "$FILES" ]; then
alert=1
logmessage MSG "Enterrrrrrrrrred If - Mail" >> $LOG_FILE
logmessage MSG "Value of alert is $alert" >> $LOG_FILE
logmessage MSG "files are : $FILES ">>$LOG_FILE
zip -r "$FilePath/$ZipFolder" "$ErrFilePath"
logmessage MSG "CompressionNotRequired is  $CompressionNotRequired">>$LOG_FILE
##Calling exit_func which internally calls mail_func to send the mail with attached error files
exit_func
else
alert=0
exit_func
fi
logmessage MSG "Completed executing validate_feed.ksh job" >> $LOG_FILE
exit 0;

1 个答案:

答案 0 :(得分:0)

我收到了错误。我在perl模块中写了一个print语句。这导致没有登录错误,因为我正在运行内部调用perl脚本的shell脚本。