mail

mail

Post by Michael Moor » Fri, 09 May 1997 04:00:00



I'm not faliliar with linux, I'm currently a sysadm on a SCO opercerver
system. However I'm on a Linux system at school and am having trouble
setting up a crontab. either my syntax is wrong or my commands are wrong.
It is not like SCO's, I have that mastered. Tried to use the same cronfile
but it is not working. I'm trying to auto mail me stuff as needed I think
my mail syntax is wrong also. Here are my files, they work fine in sco, can
someone help me convert this to Linux? Or foward me to some documentation
on this subject? Thank,s in advance......

Cronfile:

 2   7  10   *   *  mail -s "Check Generator Fuel" mmoore % Check Generator
Fuel
 3   7   1   *   *  mail -s "Send Janet Phone Reports" mmoore % Send Janet
the 5
 4   8   2   2   *  mail -s "Change Batteries" mmoore % Dart Message
machines
 5   2   3   3   *  mail -s "Change water filters" mmoore % Throughout
building

Cronfields: Don't even know if the fields are the same??? the MAN
documentation
is just not enough to help me.
crontab fields?

1 minutes      0-59
2 hours        0-23
3 day of month 1-31
4 month        1-12
5 day of week  0-6 0=sunday
6 command

 
 
 

mail

Post by Mathew E. Kirsc » Fri, 09 May 1997 04:00:00



> I'm not faliliar with linux, I'm currently a sysadm on a SCO opercerver
> system. However I'm on a Linux system at school and am having trouble
> setting up a crontab. either my syntax is wrong or my commands are wrong.
> It is not like SCO's, I have that mastered. Tried to use the same cronfile
> but it is not working. I'm trying to auto mail me stuff as needed I think
> my mail syntax is wrong also. Here are my files, they work fine in sco, can
> someone help me convert this to Linux? Or foward me to some documentation
> on this subject? Thank,s in advance......

Cron in Linux is a standard BSD implementation of cron. There's nothing special
about it.
How about you tell us what the problems are. It's obvious you're having trouble,
but what exactly you're having trouble with is a mystery. We can't read minds.

Quote:> Cronfile:

>  2   7  10   *   *  mail -s "Check Generator Fuel" mmoore % Check Generator Fuel
>  3   7   1   *   *  mail -s "Send Janet Phone Reports" mmoore % Send Janet the 5
>  4   8   2   2   *  mail -s "Change Batteries" mmoore % Dart Message machines
>  5   2   3   3   *  mail -s "Change water filters" mmoore % Throughout building

Well, I do know that a "%" is not a comment character, in any flavor of unix,
even SCO.
Maybe that's what's breaking mail? The comment character is a "#", not a "%".

Quote:> Cronfields: Don't even know if the fields are the same??? the MAN
> documentation is just not enough to help me. crontab fields?

> 1 minutes      0-59
> 2 hours        0-23
> 3 day of month 1-31
> 4 month        1-12
> 5 day of week  0-6 0=sunday
> 6 command

That's what my crontab man page tells me. I don't know what your crontab man
page says.

--
Mathew E. Kirsch, CLSE (Certifiable Linux Systems Engineer)
*Opinions expressed herein do not reflect those of my employer.

"If you don't have time to read the FAQ, I don't have time to read it to you."