D&C GLug - Home Page

[ Date Index ] [ Thread Index ] [ <= Previous by date / thread ] [ Next by date / thread => ]

Re: [LUG] Simple Script Problem

 

On 1/19/07, Alex Charrett <alex@xxxxxxxxxxxx> wrote:

>
> $ . script
>
> So if you're desparate to have a script cd for you, this should achieve
> this.  All previous comments about why this is an unusual thing do to
> apply though.

No very common, its used throughout the startup scripts. check
/etc/X11/XSession it has a line in it to run the user .xsession script
such as

. ~/.xsession

many user scripts are called from system scripts this way so ENVs can
be updated etc.



-- 
Robin Cornelius
http://www.byteme.org.uk

-- 
The Mailing List for the Devon & Cornwall LUG
http://mailman.dclug.org.uk/listinfo/list
FAQ: http://www.dcglug.org.uk/linux_adm/list-faq.html