免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1893 | 回复: 7
打印 上一主题 下一主题

crontab 报错 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2004-01-10 16:59 |只看该作者 |倒序浏览
我做了一个定时备份
root#[/]crontab -l
39 16 * * * fbackup -f /dev/rmt/0m -i /etc/group
却得到了mai如下:root#[/]mail
From root@root Sat Jan 10 16:39:31 EAT 2004
Received: (from root@localhost)
by root (8.9.3/8.9.3) id QAA28358
for root; Sat, 10 Jan 2004 16:39:31 +0800 (EAT)
Date: Sat, 10 Jan 2004 16:39:31 +0800 (EAT)
From: root@root
Message-Id: <200401100839.QAA28358@root>;
Subject: cron

fbackup(1004): session begins on Sat Jan 10 16:39:01 2004
fbackup(3203): volume 1 has been used 3 time(s)
fbackup(3024): writing volume 1 to the output file /dev/rmt/0m
fbackup(3055): total file blocks read for backup: 15
fbackup(3056): total blocks written to output file /dev/rmt/0m: 39


*************************************************
Cron: 前面的信息是标准输出
和您的一个 crontab 命令的标准错误:

fbackup -f /dev/rmt/0m -i /etc/group

这到底是怎么回事?谢谢指点!

论坛徽章:
0
2 [报告]
发表于 2004-01-10 21:57 |只看该作者

crontab 报错

为什么各位老大不理我啊,ding

论坛徽章:
0
3 [报告]
发表于 2004-01-10 22:10 |只看该作者

crontab 报错

Your cron and fbackup do not have problem. The mail you received is a notification of the cron job, it's not an error.

论坛徽章:
0
4 [报告]
发表于 2004-01-11 10:17 |只看该作者

crontab 报错

Cron: 前面的信息是标准输出
和您的一个 crontab 命令的标准错误:

fbackup -f /dev/rmt/0m -i /etc/group

那提示中的标准错误是什么意思啊?谢谢

论坛徽章:
0
5 [报告]
发表于 2004-01-11 10:33 |只看该作者

crontab 报错

That is normal.

The "标准错误" is just standard error, that is a Unix term. You know what is standard input (usually your keyboard), standard output(usually your terminal or console), standard error (the place that your process' errors go), right?

When you use cron, you did not redirect the standard error to anywhere else, so it just remind you the standard error is included in the email.

Nothing is wrong in your cron job and your fbackup.

论坛徽章:
0
6 [报告]
发表于 2004-01-12 10:05 |只看该作者

crontab 报错

楼主:你的cron没问题。Standard error(标准错误)是正常的输出。

论坛徽章:
0
7 [报告]
发表于 2004-01-12 17:29 |只看该作者

crontab 报错

重定向输出试试!

论坛徽章:
0
8 [报告]
发表于 2004-01-14 10:51 |只看该作者

crontab 报错

正常mail
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP