Cron and Crontab

I’m trying to provide a periodic service with cron. I thought I would use
crontab to create the cron file, but when I type crontab, I get the error –
crontab: mmapp: Invalid argument.
The way I read the manual page, every argument is optional. What’s wrong?
I’m logged in as root on a qnx 6.1 system.

I didn’t want to give up that easily, so I made my own crontab file in the
/var/spool/cron/crontabs/root directory. When I start up cron with the
command cron -v&, I get the error – cron: line too long in crontab: root 1
The line is right out of the man page on crontab, well almost.
5,10,15 * * * * (echo -n " "; date; echo) > /dev/tty

Surely there aren’t serious problems with cron/crontab. I wonder what
services need to be running before these work correctly?

Regards,
David Kuechenmeister

David Kuechenmeister wrote:

I’m trying to provide a periodic service with cron. I thought I would use
crontab to create the cron file, but when I type crontab, I get the error –
crontab: mmapp: Invalid argument.
The way I read the manual page, every argument is optional. What’s wrong?
I’m logged in as root on a qnx 6.1 system.

I think there are serious problems with crontab in qnx 6.1. Anyway, the
crontab command needs at least one argument to perform any useful
function. To edit root’s crontab file: crontab -e

I didn’t want to give up that easily, so I made my own crontab file in the
/var/spool/cron/crontabs/root directory. When I start up cron with the
command cron -v&, I get the error – cron: line too long in crontab: root 1
The line is right out of the man page on crontab, well almost.
5,10,15 * * * * (echo -n " "; date; echo) > /dev/tty

That might be what you typed into this message, but is it the same as
what you typed into the crontab file? I cut and pasted the command in
the crontab man page, and cron has no complaints about it.

Surely there aren’t serious problems with cron/crontab. I wonder what
services need to be running before these work correctly?

AFAIK cron only needs cron.

cron has not worked 100% properly in any version of QNX I’ve used so far.

Thanks for the reply. I did just try crontab -e and that failed with the
same cryptic mmap message. I also pasted the suspect line into my crontab
file with the same “line too long” error.

Thanks again,
David

“Mathew Kirsch” <mkirsch@ocdus.jnj.com> wrote in message
news:b5fioa$f7f$1@inn.qnx.com

David Kuechenmeister wrote:
I’m trying to provide a periodic service with cron. I thought I would
use
crontab to create the cron file, but when I type crontab, I get the
error –
crontab: mmapp: Invalid argument.
The way I read the manual page, every argument is optional. What’s
wrong?
I’m logged in as root on a qnx 6.1 system.

I think there are serious problems with crontab in qnx 6.1. Anyway, the
crontab command needs at least one argument to perform any useful
function. To edit root’s crontab file: crontab -e

I didn’t want to give up that easily, so I made my own crontab file in
the
/var/spool/cron/crontabs/root directory. When I start up cron with the
command cron -v&, I get the error – cron: line too long in crontab:
root 1
The line is right out of the man page on crontab, well almost.
5,10,15 * * * * (echo -n " "; date; echo) > /dev/tty

That might be what you typed into this message, but is it the same as
what you typed into the crontab file? I cut and pasted the command in
the crontab man page, and cron has no complaints about it.

Surely there aren’t serious problems with cron/crontab. I wonder what
services need to be running before these work correctly?

AFAIK cron only needs cron.

cron has not worked 100% properly in any version of QNX I’ve used so far.

David,

I get the same wierd message. It seems like a compatibility/porting bug.

Robert.

“David Kuechenmeister” <david.kuechenmeister@viasat.com> wrote in message
news:b5fo2k$l05$1@inn.qnx.com

Thanks for the reply. I did just try crontab -e and that failed with the
same cryptic mmap message. I also pasted the suspect line into my crontab
file with the same “line too long” error.

Thanks again,
David

“Mathew Kirsch” <> mkirsch@ocdus.jnj.com> > wrote in message
news:b5fioa$f7f$> 1@inn.qnx.com> …
David Kuechenmeister wrote:
I’m trying to provide a periodic service with cron. I thought I would
use
crontab to create the cron file, but when I type crontab, I get the
error –
crontab: mmapp: Invalid argument.
The way I read the manual page, every argument is optional. What’s
wrong?
I’m logged in as root on a qnx 6.1 system.

I think there are serious problems with crontab in qnx 6.1. Anyway, the
crontab command needs at least one argument to perform any useful
function. To edit root’s crontab file: crontab -e

I didn’t want to give up that easily, so I made my own crontab file in
the
/var/spool/cron/crontabs/root directory. When I start up cron with the
command cron -v&, I get the error – cron: line too long in crontab:
root 1
The line is right out of the man page on crontab, well almost.
5,10,15 * * * * (echo -n " "; date; echo) > /dev/tty

That might be what you typed into this message, but is it the same as
what you typed into the crontab file? I cut and pasted the command in
the crontab man page, and cron has no complaints about it.

Surely there aren’t serious problems with cron/crontab. I wonder what
services need to be running before these work correctly?

AFAIK cron only needs cron.

cron has not worked 100% properly in any version of QNX I’ve used so
far.