Re: Login and auto executes

看板FB_questions作者時間11年前 (2014/07/07 11:01), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串6/8 (看更多)
On Sun, 06 Jul 2014 21:38:28 +0200, Jos Chrispijn wrote: > kpneal@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). -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... _______________________________________________ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"
文章代碼(AID): #1JkWrkrO (FB_questions)
文章代碼(AID): #1JkWrkrO (FB_questions)