Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
dmahony opened this issue Dec 12, 2015 · 6 comments

Comments

@dmahony
Copy link
Owner

dmahony commented Dec 12, 2015

If anyone knows, please get in touch!

@mdxe
Copy link
Collaborator

mdxe commented Dec 15, 2015

Which OS?

@dmahony
Copy link
Owner Author

dmahony commented Dec 15, 2015

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
#4 (comment)
.

@mdxe
Copy link
Collaborator

mdxe commented Dec 15, 2015

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
Copy link
Owner Author

dmahony commented Dec 15, 2015

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

@mdxe
Copy link
Collaborator

mdxe commented Dec 16, 2015

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

@dmahony
Copy link
Owner Author

dmahony commented Dec 16, 2015

Excellent! thanks for that.

@dmahony dmahony closed this as completed Dec 16, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants