Log in

No account? Create an account
Multiple guess - But here in my heart, I give you the best of my love.

> Recent Entries
> Archive
> Friends
> Profile
> Doogie's Delusions

Classy Sports Commentary
Pirates Blog
Erin's blog
Tril's blog
Robin's blog
Aaron's blog
KC Royals Pitcher: Brian Anderson
Austin's blog
Ed Barnes: On the Road
Newzie's Blog
ckd's blog
Cosmic Ray
Dan's new blog
Rabbi Andy's blog
Geezer Pirate
Josh the Younger
Jim Norton (He just sucks)
Frank Longbottom (PTM journal)
Old Frank Longbottom Journal (PTM RPG Journal)
Augustus Rookwood (PTM journal)
Frank Longbottom (Cataclysm RPG journal)
Captain Lord Ivan Vorpatril (Vor RPG journal)
Lord Richars Vorrutyer (Vor RPG journal)
Byerly Vorrutyer (Vor LJ RPG journal)
FF chart (potential TMI)

December 30th, 2008

Previous Entry Share Next Entry
11:45 am - Multiple guess
I am a moron smart!
ETA: Good grief. One extra character and the whole thing goes mad. 8-)
I just fixed my .login script. Hoppie helped me write it and it worked perfectly until today. But I found (and after much thrashing) fixed the problem! Go me!

I log in to my UNIX machine from my windows machine, but I Xwindow back to my Windows machine(s).
Hoppie helped me fixed the script so that instead of hard-defaulting to my office machine, I could default to whichever machine I was logged in from.
This is the code he gave me:

set tty=`tty | sed 's%/dev/%%'`
set host=`finger | grep "$tty" | awk '{print $NF}' | awk -F. '{print $1}'`
setenv DISPLAY {$host}:0.0

Well, Larry logged in yesterday, which resulted in the $host being something like marci-machine larry-machine, which in turn results in too many options specified for the setenv DISPLAY.

I changed the set host line to:
set host=`finger | grep marci | grep "$tty" | awk '{print $NF}' | awk -F. '{print $1}'`

which will work as long as I'm never logged in from both home and the office. At some point I'll have to come up with something better. (And I'm open to suggestions)

Current Mood: geekygeeky

(3 Represent the voice of the people | Request an audience)


[User Picture]
Date:December 30th, 2008 11:19 pm (UTC)
actually, I think it might qualify you as "genius" ;)

> Go to Top