Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #160581

Re: how execute a script

From shawn wilson <ag4ve.us@gmail.com>
Newsgroups linux.debian.user
Subject Re: how execute a script
Date 2015-11-15 15:20 +0100
Message-ID <qv6jT-2te-5@gated-at.bofh.it> (permalink)
References <qun3x-77o-109@gated-at.bofh.it> <qunmO-7uR-11@gated-at.bofh.it> <qunPQ-7FI-19@gated-at.bofh.it> <quFMK-2mI-7@gated-at.bofh.it> <quFMJ-2mI-5@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


[Multipart message — attachments visible in raw view] - view raw

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
>
>

Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

how execute a script Pol Hallen <deben@fuckaround.org> - 2015-11-13 15:00 +0100
  Re: how execute a script <tomas@tuxteam.de> - 2015-11-13 15:20 +0100
    Re: how execute a script Pol Hallen <deben@fuckaround.org> - 2015-11-13 15:50 +0100
      Re: how execute a script Lotek <lotek3@verizon.net> - 2015-11-14 01:30 +0100
      Re: how execute a script Pol Hallen <deben@fuckaround.org> - 2015-11-14 11:00 +0100
        Re: how execute a script shawn wilson <ag4ve.us@gmail.com> - 2015-11-15 15:20 +0100
    Re: how execute a script David Wright <deblis@lionunicorn.co.uk> - 2015-11-13 16:20 +0100
      Re: how execute a script Don Armstrong <don@debian.org> - 2015-11-13 18:20 +0100
        Re: how execute a script David Wright <deblis@lionunicorn.co.uk> - 2015-11-13 22:20 +0100
          Re: how execute a script Don Armstrong <don@debian.org> - 2015-11-13 23:10 +0100
            Re: how execute a script David Wright <deblis@lionunicorn.co.uk> - 2015-11-14 00:40 +0100
      Re: how execute a script <tomas@tuxteam.de> - 2015-11-14 08:40 +0100
        Re: how execute a script David Wright <deblis@lionunicorn.co.uk> - 2015-11-16 05:50 +0100
          Re: how execute a script <tomas@tuxteam.de> - 2015-11-16 10:50 +0100
            Re: how execute a script David Wright <deblis@lionunicorn.co.uk> - 2015-11-16 19:30 +0100
              Re: how execute a script <tomas@tuxteam.de> - 2015-11-17 09:20 +0100
  Re: how execute a script Gene Heskett <gheskett@shentel.net> - 2015-11-13 15:20 +0100
  Re: how execute a script Gene Heskett <gheskett@shentel.net> - 2015-11-13 15:30 +0100

csiph-web