Page 1 of 1

run pbxstat d xxx in a script

Posted: 13 Dec 2016 12:01
by sebwa2k
Hello,
i would like to automate a Status report of a hunting group on Alcatel oxe.
The Command

Code: Select all

pbxstat d xxx |grep in > result.txt
writes the active numbers of this Group to result.txt
Now i want a cronjob to do this every 10 minutes.

Code: Select all

*/10 * * * * pbxstat d xxx |grep in > result.txt
in mtcl.cron does not work, contab -e does not Show this cronjob.

Can anybody help me with this Problem?

Best Regards,
Sebastian

Re: run pbxstat d xxx in a script

Posted: 14 Dec 2016 04:31
by sadim
The crontab entry should be:

*/10 * * * * /usr2/oneshot/mtcl/tool pbxstat d xxx |grep in > result.txt

Regards