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

Re: how execute a script



You can call a function from within a sourced file and it'll run (no matter x bit).

So:

# ~/bin/runner.sh
runner () {
echo foo
}

runner

# ~/.bashrc
PATH="$PATH:~/bin"
source runner.sh

On Nov 14, 2015 4:51 AM, "Pol Hallen" <deben@fuckaround.org> wrote:
Put the command at the end of /home/user/.profile
It works for me.

thanks for help but does not work :-/

Pol


Reply to: