0

How can i start a python script.py after a reboot as user xy in Debian Squeeze automatically?

2 Answers2

1

Put an entry in rc.local with something similar to the following:

su user_xy -c "script.py" 

to execute the program as that user:

su - user_xy -c "script.py"
0

You can use @reboot entry in crontab of user root or user xy. Debian cron supports such entries.

man -S5 crontab

string         meaning
------         -------
@reboot        Run once, at startup.
AnFi
  • 5,883
  • 1
  • 12
  • 26