Cronjob with CentOs 4.2 ?

My server has CentOs 4.2 which doesn't use Pico, however Nano appears to be loaded.
I am trying to add a cronjob to use with chkrootkit as follows:-
You can create a cronjob script like this:
=========== /etc/cron.daily/rkhunter ====================
#!/bin/sh
(
/usr/local/bin/rkhunter --versioncheck
/usr/local/bin/rkhunter --update
/usr/local/bin/rkhunter --cronjob --report-warnings-only
) | /bin/mail -s 'rkhunter Daily Run' root
=========================================================
Because Pico doesn't work the above results in an error something like "bash: command not recognised".
Anyone know a work-around for this and how it should be entered from # root ?

Thanks in anticipation.

 

 

 

 

Top