$this->bbcode_second_pass_code('', '[root@home_s ~]# logrotate -f /etc/logrotate.conf')
Work!
------
I'm add this to cron:
$this->bbcode_second_pass_code('', '[root@home_s ~]# crontab -l
0 23 * * * logrotate -f /etc/logrotate.conf')
cron.log:
$this->bbcode_second_pass_code('', 'Sep 21 23:00:02 home_s /USR/SBIN/CROND[24037]: (root) CMD (logrotate -f /etc/logrotate.conf)
Sep 21 23:00:02 home_s /USR/SBIN/CROND[24036]: (root) CMDOUT (/bin/sh: logrotate: command not found)
Sep 21 23:00:02 home_s /USR/SBIN/CROND[24038]: (CRON) EXEC FAILED (/usr/sbin/sendmail): No such file or directory
Sep 21 23:00:02 home_s /USR/SBIN/CROND[24036]: (root) MAIL (mailed 38 bytes of output but got status 0x0001')
Please help, what is not work?