PDA

View Full Version : [SOLVED] [Ubuntu Gnome 16.04] How to start a script at each login?



actionmystique
August 4th, 2016, 10:00 AM
I've unsuccessfully tried to call it from ~/.profile.
Any suggestion?

ajgreeny
August 4th, 2016, 12:00 PM
What is the script and what do you expect, or want, it to do?
It might be useful to show us the script content, removing anything personal to you that you want kept away from public view.

Does it need to run as root? If so you will need to think again.

Tell us in more detail everything you are trying to do and we will try to help you.

mdbratch
August 4th, 2016, 06:00 PM
I've unsuccessfully tried to call it from ~/.profile.
Any suggestion?
Can you clarify "unsuccessfully"? How did you try to call it? Was the script file marked executable? Was it in your current PATH, or in the same folder as `~/.profile`?

actionmystique
August 6th, 2016, 06:11 AM
Thanks for your answers. I realized afterwards that some of the commands needed to be run as root, so it's my mistake.
I've removed the call from ~/.profile and installed a daily cron job for the user root through gnome-schedule, rebuilt from sources since it has disappeared from the latest Ubuntu 16.04.