[sf-lug] Adding Scripts to Bash
jim
jim at systemateka.com
Wed Jul 6 19:14:02 PDT 2011
assuming you have an executable program skype.sh and
it's in your home directory (e.g. /home/eric).
your .bashrc script is the key to automating stuff
when you open a terminal window.
$ cd
$ pwd
/home/eric
$ gedit .bashrc
scroll to the bottom of the file and add the line
./skype.sh
save and quit.
try it out.
if the skype.sh script is somewhere else, e.g. /usr/local/bin,
then in your .bashrc file put
/usr/local/bin/skype.sh
then save, quit, try....
On Wed, 2011-07-06 at 17:43 -0700, Eric W. Rasmussen wrote:
> A while back I went to a LUG meeting and the fine folks helped me add a
> script to my terminal that activated once it opened. Basically, I need
> to turn off my touchpad at startup. The script is this:
>
> xinput set-int-prop "ETPS/2 Elantech Touchpad" "Device Enabled" 8 0
>
> We couldn't get it to automatically deactivate without opening the
> terminal so I said, Whatever! But I have changed my OS (mint) and I
> need to do it again.
>
> Now I have to run a special .sh file if I want Skype to work correctly.
> The question is...
>
> Where do I place skype.sh and how do I automate the execution once
> terminal is open.
>
> Much thanks if you can walk me through this
>
> ewr
>
> _______________________________________________
> sf-lug mailing list
> sf-lug at linuxmafia.com
> http://linuxmafia.com/mailman/listinfo/sf-lug
> Information about SF-LUG is at http://www.sf-lug.org/
More information about the sf-lug
mailing list