keywords: ip pbx voip gateway gsm gateway

×

Notice

The forum is in read only mode.
× Questions about VS-GW2120/GW1600/GW1202 and WGW1002G GSM Series VoIP Gateway

-bash: crontab: command not found

3 years 4 months ago #14861 by sonoc
Hello Support
We have some gateways GW1600 and crontab is now working
-bash: crontab: command not found
the file /etc/cfg/gw/crontabs_root is configured but the scheduled tasks are not excecuted.
We just updated the unit but no success
# uname -r
4.19.81
3 years 4 months ago #14862 by hua
Hello

Please add your task to /etc/crontab file ,after save you can run command /etc/init.d/cron restart to make it work .
3 years 4 months ago #14863 by sonoc
Thanks for you reply. I did this but not sucess. Crontab is still not running.
The task are not executed and the command and the command is not found
root@zw-gw1:/data/log/zw-gw1# /etc/init.d/cron restart
/etc/functions.sh: line 3: 8399 Done pgrep $1
8400 Killed | while read line; do
PID=$line; if [ "$PID" != "$2" ]; then
kill -9 $PID;
fi;
done
root@zw-gw1:/data/log/zw-gw1# crontab -l
-bash: crontab: command not found
3 years 4 months ago #14865 by hua
Hello

Sorry about that .We will check it at our side , If has issue will fix in the next firmware version .
3 years 3 months ago #14868 by sonoc
Thanks for your reply.
I was trying to put some script in the following paths, but I get a Read-only file system error.
/gateway/etc/cron.d
/gateway/etc/cron.daily
Is there a way to put some script in those paths.
Regards,
Juan
3 years 3 months ago #14869 by hua
You can build custom script in /etc/asterisk/gw/custom.sh . this will load when the system boot.
Time to create page: 0.043 seconds
Powered by Kunena Forum