Second I am trying to add an input to my user profile in the .bashrc file in the format of an if statement that will run gkrellm each time I log in. My problem is that I do not want it to run when I log in using command libne like if I ssh in remotely.
I have another perl script I wrote that runs if I am in command line and I figured out a way to make sure it was a command line session before it would run.
I need something like this but the oposite.
as of right now I have tried something like:
- Code: Select all
var = set | TERM vt100;
term = "vt100";
if [ $var != $term ]; then
gkrell -g +1100+200
fi
I am trying to remember this off the top of my head since I am not at home but believe that this code is what I had last night. Of course it did not work but this should show you what I am trying to do..
Any ideas on how to do this using simple shell scripting. I could wrap it in with startx but I do not want it to start until I actually log in. If I wrap with startx it will try to start as soon as startx starts up. Not after I enter the user and pass like I want it to.



