I have made a .sh (which works) to run a mono program. How do I make it run every time I login? (and display in a terminal, not just run in background) Ubuntu server 12.04 with Unity desktop.
|
Yes you can start any script by navigating to |
|||||||||
|
|
You could use $HOME/.bashrc It is parsed and run like a script, every time bash starts. Bash is the default shell for Ubuntu. I have a script that saves every command line I've used, like this:
|
|||
|
|
Go into the Startup Applications dialog, click Add, give it a name and in Command put
You can check it works first by running |
|||
|
|
chmod +x /path/to/script
|
|||
|
|
|
Put your script in a file (we call it yourscript.sh) and make in executable:
Then open /etc/rc.local file using a text editor:
Finally add the following code in the rc.local just before "exit 0" command:
Have a nice time. |
|||
|
|
if you kown how to handle crontab , add this line :
if you don't know , execute the following commands to edit your crontab
|
||||
|
|



