Re: Advanced shell scripting question :-)

2002-09-04 Thread Michael O'Donnell
>I want the following three things to happen when I run p: > >1. I want both stdout and stderr to go to the screen > >2. I want stdout and stderr combined in a file > >3. I want an error log file to only contain stderr. > >p 2>&1 | tee outnerr # Solves 1 and 2 > >p 2> errlog # Solves 3 but b

Re: Advanced shell scripting question :-)

2002-09-04 Thread Derek D. Martin
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 At some point hitherto, Steven W. Orr hath spake thusly: > 1. I want both stdout and stderr to go to the screen > > 2. I want stdout and stderr combined in a file > > 3. I want an error log file to only contain stderr. [snip] > Any takers? Using on

Re: Advanced shell scripting question :-)

2002-09-04 Thread Marc Evans
How about something like this: p 3>ERR 2>&3 2>&1 | tee OUTERR Looking at the output of lsof, I think that this is doing the right thing: cat4157 marc1w FIFO0,0 1092582 pipe cat4157 marc2w FIFO0,0 1092582 pipe cat4157

Advanced shell scripting question :-)

2002-09-04 Thread Steven W. Orr
I have a program (which we shall call p) which produces text to both stdout and stderr. I want the following three things to happen when I run p: 1. I want both stdout and stderr to go to the screen 2. I want stdout and stderr combined in a file 3. I want an error log file to only contain std

Re: SSH v2 sans password prompting...

2002-09-04 Thread John Abreau
Ken Ambrose <[EMAIL PROTECTED]> writes: > How do I get logged in to a remote host, via ssh, w/o password prompting, > a la the rhosts file? I can do it with SSH v1, but v2 seems to give me > some problems. I've plugged the public key into the authorized_keys file, > but no dice. Any suggestion

Re: SSH v2 sans password prompting...

2002-09-04 Thread William Stearns
Good morning, Ken, On Wed, 4 Sep 2002, Ken Ambrose wrote: > How do I get logged in to a remote host, via ssh, w/o password prompting, > a la the rhosts file? I can do it with SSH v1, but v2 seems to give me > some problems. I've plugged the public key into the authorized_keys file, > but no di

Re: SSH v2 sans password prompting...

2002-09-04 Thread Michael O'Donnell
>The most blindly simple-minded approach >would be the equivalent of: > > cat clientMachine:~/.ssh/id*pub >>serverMachine:~/.ssh/authorized_keys > cat clientMachine:~/.ssh/id*pub >>serverMachine:~/.ssh/authorized_keys2 > chmod go-rwx clientMachine:~/.ssh/authorized_key

Re: SSH v2 sans password prompting...

2002-09-04 Thread Michael O'Donnell
The most blindly simple-minded approach would be the equivalent of: cat clientMachine:~/.ssh/id*pub >>serverMachine:~/.ssh/authorized_keys cat clientMachine:~/.ssh/id*pub >>serverMachine:~/.ssh/authorized_keys2 chmod go-rwx clientMachine:~/.ssh/authorized_keys*

Re: SSH v2 sans password prompting...

2002-09-04 Thread Kevin D. Clark
Ken Ambrose <[EMAIL PROTECTED]> writes: > How do I get logged in to a remote host, via ssh, w/o password prompting, > a la the rhosts file? I can do it with SSH v1, but v2 seems to give me > some problems. I've plugged the public key into the authorized_keys file, > but no dice. Any suggestio

Re: SSH v2 sans password prompting...

2002-09-04 Thread Rich Payne
On Wed, 4 Sep 2002 [EMAIL PROTECTED] wrote: > > In a message dated: Wed, 04 Sep 2002 07:14:31 PDT > Ken Ambrose said: > > >How do I get logged in to a remote host, via ssh, w/o password prompting, > >a la the rhosts file? I can do it with SSH v1, but v2 seems to give me > >some problems. I've

Re: SSH v2 sans password prompting...

2002-09-04 Thread Ben Boulanger
On Wed, 2002-09-04 at 10:14, Ken Ambrose wrote: > How do I get logged in to a remote host, via ssh, w/o password prompting, > a la the rhosts file? I can do it with SSH v1, but v2 seems to give me > some problems. I've plugged the public key into the authorized_keys file, > but no dice. Any sug

Re: SSH v2 sans password prompting...

2002-09-04 Thread pll
In a message dated: Wed, 04 Sep 2002 07:14:31 PDT Ken Ambrose said: >How do I get logged in to a remote host, via ssh, w/o password prompting, >a la the rhosts file? I can do it with SSH v1, but v2 seems to give me >some problems. I've plugged the public key into the authorized_keys file, >but

SSH v2 sans password prompting...

2002-09-04 Thread Ken Ambrose
How do I get logged in to a remote host, via ssh, w/o password prompting, a la the rhosts file? I can do it with SSH v1, but v2 seems to give me some problems. I've plugged the public key into the authorized_keys file, but no dice. Any suggestions? Thanks, -Ken __

Re: Slackware Line Numbering

2002-09-04 Thread Mighty Industries
Jefferson Kirkland said: > Thanks a bunch for the responses. I had played with the PS1 prompt to > set it to something different, but will definately try again. Thanks > again! I'm running Slackware8.0 and have never had that happen. Just in case you nolonger have the default prompt part of