Put it in your $HOME, create the script with the first line: #! /bin/bash # This is your script called myScript echo "my script is running!" # you may not need this line!
then put this line in your ~/.profile file: # include .bashrc if it exists if [ -f "$HOME/.myScript" ]; then . "$HOME/.bashrc" fi On Sun, Jul 1, 2012 at 6:53 PM, Tony van der Hoff <t...@vanderhoff.org>wrote: > Hi, > > I have a script (non gui) which I want to run each time I log in. Which > is the correct way to do this? > > -- > Tony van der Hoff | mailto:t...@vanderhoff.org > Ariège, France | > > > -- > To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org > with a subject of "unsubscribe". Trouble? Contact > listmas...@lists.debian.org > Archive: http://lists.debian.org/4ff02c20.7060...@vanderhoff.org > >