Complete.Org: Mailing Lists: Archives: discussion: February 2000:
[aclug-L] Re: odd shell question
Home

[aclug-L] Re: odd shell question

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: aclug-L@xxxxxxxxxxxx
Subject: [aclug-L] Re: odd shell question
From: Jeff <schaller@xxxxxxxxxxxxx>
Date: Tue, 1 Feb 2000 08:39:09 -0600 (CST)
Reply-to: aclug-L@xxxxxxxxxxxx

Replying to myself and Tom; 'answer' to the problem:

> > Tom: "my ssh-agent(1) man page shows an example that uses eval."
> Jeff: "will give it a try."

This does indeed do the trick:

[ ! $SSH_AGENT_PID ] && eval `ssh-agent` >/dev/null
ssh-add

The /dev/null is for the 'echo $PID' it does. This puts me right
into the ssh-add password prompt, which is cool.


> Jeff: "I was expecting ssh-agent to run "bash --login""

It was. It exec'd ssh-agent correctly, and it exec'd bash
correctly, but bash barfs soon after with:

     0.000126 rt_sigaction(SIGTTIN, {SIG_DFL}, {SIG_IGN}, 8) = 0
     0.000141 kill(0, SIGTTIN)          = 0
     0.000118 --- SIGTTIN (Stopped (tty input)) ---

repeated over and over.  I'm wondering if it doesn't like the idea
that ssh-agent fed it input?  (The shell variables).  Anyway, it
gets stuck in this loop, never exiting.


> Jeff to Tom: "Thanks for the ideas :)"

I thank you again for the second point of view -- always helps!

-jeff
-- 
The Kansas BoE approved new science standards which de-emphasize the teaching
of evolution. What do you think? "As a Kansan, I just ask myself, 'WWJD?' I 
figure he'd want to wear white button-up shirts, drink beer, cheer the 
Jayhawks, and set education in this state back about 100 years."
Stan Crouse, Appliance Repairer. http://www.theonion.com


[Prev in Thread] Current Thread [Next in Thread]