I'm facing a strange problem. I have a Python script that includes the following line
subprocess.call("ifconfig ens3 inet6 add " + str(address) + "/64", shell=True)
It assigns a ip to the OS in a loop. The problem I'm facing is that the IPs get assigned if I manually run it, but the IPs don't get assigned when I run it with cron at reboot. I do know the script does run at boot because I send the results to a log. But when I check with ip -6 addr
the IPs are not assigned if the script ran with cron. But they are assigned if I run it myself.