[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: startup script



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 <tony@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:tony@vanderhoff.org
Ariège, France     |


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: [🔎] 4FF02C20.7060604@vanderhoff.org" target="_blank">http://lists.debian.org/[🔎] 4FF02C20.7060604@vanderhoff.org



Reply to: