To make vTigerCRM working with my Asterisk PBX I start a php script (AsteriskClient.php):
root@MSI:~$ cd /var/www/vtigercrm/cron/modules/PBXManager/
root@MSI: /var/www/vtigercrm/cron/modules/PBXManager$ ./AsteriskClient.php
Above script is OK.
(This script must be kept running.....)
So I leave a terminal window open for the script to run
Questions:
1. Why can't I do this with one command?
root@MSI:~$ /var/www/vtigercrm/cron/modules/PBXManager/AsteriskClient.php
2. It looks like this script can't run in the background with &.
Why not?
root@MSI:/var/www/vtigercrm/cron/modules/PBXManager$ ./AsteriskClient.php &
3. To do this automatic 'at boot' I made a crontab :
root@MSI:/var/www/vtigercrm/cron/modules/PBXManager# crontab -l
@reboot cd /var/www/vtigercrm/cron/modules/PBXManager/
@reboot ./AsteriskClient.php
This doesn't seem to work either, because the php script doesn't start. (or starts and stops at once?)