dmahony / LoRa-AX25-IP-Network

Utilising inexpensive wireless modules and open source software to form networks over long distances using AX25 and IP networking in the unlicensed ISM bands, without reliance on a centralised service provider.
204 stars 28 forks source link

Trying to find a way to autorun my python scripts upon login (only for specific user) #4

Closed dmahony closed 8 years ago

dmahony commented 8 years ago

If anyone knows, please get in touch!

mdxe commented 8 years ago

Which OS?

dmahony commented 8 years ago

Sorry, I should have clarified, for Linux on the Raspberry Pi. I sort of got it working but it runs the script for every user. I need it to run just for a single user. The lora chat app should run as it's own user so I can keep it locked down. On 15 Dec 2015 6:31 pm, "Alex Bouchard" notifications@github.com wrote:

Which OS?

— Reply to this email directly or view it on GitHub https://github.com/dmahony/Lora-Chat-Device/issues/4#issuecomment-164683197 .

mdxe commented 8 years ago

You could add a line to ~/.bashrc that will run the script upon login for the current user (but if you open multiple shells, it would run it multiple times)

dmahony commented 8 years ago

I have the command in /etc/bash.bashrc but I need to find where to put it for a specific user.

mdxe commented 8 years ago

~/.bashrc means /home/username/.bashrc and it will run only for username

dmahony commented 8 years ago

Excellent! thanks for that.