You are not logged in.

#1 2006-10-18 16:56:58

tdphys
Member
From: Lower Mainland
Registered: 2005-06-14
Posts: 42

login script?

I would like to start fetchmail and X automatically after my user has logged into my Arch Box.   Doing this in my .bashrc file has the side effect of trying to start X and fetchmail every time a terminal is opened.  Is there any other way to have a users specified login script?

Thanks

Offline

#2 2006-10-20 22:59:42

Dusty
Schwag Merchant
From: Medicine Hat, Alberta, Canada
Registered: 2004-01-18
Posts: 5,986
Website

Re: login script?

I use this:

  if [ -z "$DISPLAY" ] && [ $(tty) == /dev/vc/1 ]; then
      startx
  fi

Offline

#3 2006-10-24 03:53:24

tdphys
Member
From: Lower Mainland
Registered: 2005-06-14
Posts: 42

Re: login script?

Thanks guys, the Dusty's way worked,

I suppose the $- way should work, but I found that
$- = himBH for both logins and terms... so somethings probably screwed
up on my computer.. :

Offline

Board footer

Powered by FluxBB