When my computer is completely started up i would like to start up a bin automaticaly. shap is the name of the bin. The bin is in folder /home/user/shap/ and the config for shap is in the same folder. ( shop.xml )
When i start shap manualy then i open a terminal and login as root. Then i type:
./shap -d shap.xml
How can i manage to do this autmaticaly?
Thank you for giving this n00b any hint or tip.:shame:
You can make a bash script of that command. Start it as a text file and name it something like shap.sh and then RightClick on it and Click Properties. Set it as an executable file. Put that in your Start Up.
Now open YaST and go to the SUDOers add yourself as an SUDOer and point it to that file. Set it to run as root and no password. This will automatically run without any effort on your part.
I had to do the same thing to get my NAS share mounted at start up.
Thank you very much for this very quick reply. I will try to make a bash but first i have to do some research about making scripts ( like i said i’m a noob :shame: )
The only thing i know is that it must start with
will write everything that comes out into that log. The log will be overwritten at every start. When you want it different, ask.
We are now comming to the point where the two line solution becames more comfortable. You can then skip all those /home//shap/:
./shap -c shap.xml >log 2>&1
BTW imho that extra new line at the end is nonsense, but everybody tells it everybody and so it will be for ever and ever.
And @Wilson_Phillips, it will work in both shells, because they are not that different. But they are different. Less then a week ago we identified a problem on these Forums due to the fact that a script was not interpreted by the shell it was wriiten for.
The logging goes now to a file and you can check it later. That is what is normal done with logging. But when you want to see online and real time what happens, that is something quite different. When you run in the background there is no direct relation to your GUI session. And more, you can only show something on the GUI by creating a window. That must all be done from the script then. Not obvious, though I think it can be done.