run pbxstat d xxx in a script

Did you say hacking ?
Post Reply
sebwa2k
Member
Posts: 1
Joined: 13 Dec 2016 11:19

run pbxstat d xxx in a script

Post 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
sadim
Alcatel Unleashed Certified Guru
Alcatel Unleashed Certified Guru
Posts: 691
Joined: 02 Jun 2006 07:11
Location: Portugal

Re: run pbxstat d xxx in a script

Post by sadim »

The crontab entry should be:

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

Regards
Post Reply

Return to “System Hacking”