Login and auto executes

Polytropon freebsd at edvax.de
Mon Jul 7 02:40:26 UTC 2014

On Sun, 06 Jul 2014 21:38:28 +0200, Jos Chrispijn wrote:
> kpneal at pobox.com:
> > On Sun, Jul 06, 2014 at 11:26:22AM +0200, Jos Chrispijn wrote:
> >
> > Are you certain that these files are in the right home directory? They
> > need to be in the directory that is listed in /etc/passwd for your account.
> > I ask because you said "folder", but the correct term is "directory". You
> > aren't, say, putting these files in the base of a network share instead
> > of your /etc/passwd home directory?
> Jep, I put them in the correct folder.

Directory. :-)

> I solved it by using the .login file with the appropiate commands.

But that suggests you aren't using bash, but csh? From "man csh",
section FILES:

       ~/.login        Read  by  login  shells  after ~/.tcshrc or ~/.history.
                       The shell may  be  compiled  to  read  ~/.login  before
                       instead of after ~/.tcshrc and ~/.history; see the ver-
                       sion shell variable.

Note that .login is in csh syntax, not (ba)sh syntax. In case
you want to use sh syntax for a login-time startup script, just
call it from ~/.login via something like "/bin/sh ~/.sh.login"
or  "/usr/local/bin/bash ~/.bash.login" (if you require bash-isms
which sh does not support).

Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...

More information about the freebsd-questions mailing list