Dear comunity.
I’m trying to run a python script on the awake of a AXC F 2152.
Does somebody know how to do that?
Thanks
Best regards
Angel Arturo
There was a discussion about a similar question here:
Forum - PLCnext Community PLCnext Technology from Phoenix Contact is a unique, open ecosystem for modern automation that is capable of meeting all the challenges of the IoT world.
There is also another option:
You can use the cron system. On the shell, run crontab -e. This will start an editor; Now simply add a line that starts with @reboot followed by the command you want to run. For example,
@reboot sleep 30 s && /bin/ping -c 1 8.8.8.8
will wait for 30 seconds after reboot and then send a single ping to Googles nameserver.
Note that the default editor is vi / vim, which is rather hard to use if you don’t know it. If you run the command as
EDITOR=nano crontab -ethe editor will be nano,which is much easier to use.