Code: Select all
#!/usr/bin/python
Code: Select all
#!/usr/bin/python
Code: Select all
os.execv('/AbsolutePathtoScript/a.py', lst_args)
you need to drop the sudo (rc.local will be run from root) and add the full path to your python scriptaxl.axel wrote:
I run the python code with the following line added to rc.local:
> sudo python logging.py &