Scripting cron jobs? [SOLVED]
Posted: 29 Jun 2016 08:56
I'm new to Alcatel, but I'm familiar with a few different scripting languages and I'm really having a lot of trouble setting up a basic cron job on a 7950. I can set up SSH to run the command from another server on a cron job but I'd really prefer to do it on the router itself and not rely on whether the server and the path to the router is up.
From what I can tell, the scripting should be similar to the 7750, so I tried to emulate what I see here:
http://alcatelunleashed.com/viewtopic.p ... ron#p87730
But that looks like an exec script and from what I can tell, I don't seem to be able to set up exec scripts through cron, only python. Crucially, the script, location, and action options are gone. I am also looking under the ">config>system>cron" hierarchy as it appears that I have no access to the ">config>cron" hierarchy. This is running on a VM, so login permissions shouldn't be factoring into it.
I have no problem writing a python script but I don't see any way to execute CLI commands from python and I can't find an API anywhere. Does anyone have any experience with such scripting?
From what I can tell, the scripting should be similar to the 7750, so I tried to emulate what I see here:
http://alcatelunleashed.com/viewtopic.p ... ron#p87730
But that looks like an exec script and from what I can tell, I don't seem to be able to set up exec scripts through cron, only python. Crucially, the script, location, and action options are gone. I am also looking under the ">config>system>cron" hierarchy as it appears that I have no access to the ">config>cron" hierarchy. This is running on a VM, so login permissions shouldn't be factoring into it.
I have no problem writing a python script but I don't see any way to execute CLI commands from python and I can't find an API anywhere. Does anyone have any experience with such scripting?