TCLUG Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [TCLUG:3548] xdm
- To: tclug-list@listserv.real-time.com
- Subject: Re: [TCLUG:3548] xdm
- From: "Shawn T . Amundson" <amundson@gimp.org>
- Date: Thu, 21 Jan 1999 15:20:34 -0800
- In-Reply-To: <199901211326.HAA22291@nitz.hep.umn.edu>; from trammell@nitz.hep.umn.edu on Thu, Jan 21, 1999 at 07:26:36AM -0600
- References: <199901211326.HAA22291@nitz.hep.umn.edu>
- Reply-To: "Shawn T . Amundson" <amundson@gimp.org>
Generally, xinit executes ~/.xinitrc wish "sh ~/.xinitrc" if it
is not executable, or just "~/.xinitrc" if it is.
~/.xsession is much more system dependant though, as it is executed
by a configurable XSession script. Looking through that file on
Debian reveals you do indeed need the executable bit set. (One
could consider that a bug, as it's certainly not a feature.)
-Shawn
On Thu, Jan 21, 1999 at 07:26:36AM -0600, trammell@nitz.hep.umn.edu wrote:
> Hello all:
>
> Shawn T. Amundson <amundson@gimp.org> wrote:
>
> >> One (frustrating!) problem I ran in to was that some of the ~/.x*rc
> >> files need to have their execute bits set to run properly, unlike
> >> ~/.cshrc and the like.
> >
> > That should only be the case if you are using non-/bin/sh shell
> > syntax in your ~/.x*rc. Without the execute bit, it should be executed
> > with /bin/sh. With the execute bit, it should be executed according
> > to the #!<shell> at the top of the file.
>
> I guess I don't follow you. Without the execute bit set, how
> will it execute at all, /bin/sh or anything?
>
> ==========================================================================
> [trammell@nitz ~]$ cat >foo
> #!/bin/sh
>
> echo "Hello World"
> ^D
> [trammell@nitz ~]$ ls -l foo
> -rw-r--r-- 1 trammell users 30 Jan 21 07:22 foo
> [trammell@nitz ~]$ ./foo
> ./foo: Permission denied.
> [trammell@nitz ~]$ chmod 755 foo
> [trammell@nitz ~]$ ./foo
> Hello World
> [trammell@nitz ~]$
> ==========================================================================
>
> Regards,
> John
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tclug-list-unsubscribe@listserv.real-time.com
> For additional commands, e-mail: tclug-list-help@listserv.real-time.com
> Try our website: http://tclug.real-time.com
>
--
Shawn T. Amundson
amundson@gimp.org http://www.gimp.org/~amundson
"The assumption that the universe looks the same in every
direction is clearly not true in reality." - Stephen Hawking