Re: [CentOS] Automatically send CTRL-D

2008-03-11 Thread William L. Maltby
On Tue, 2008-03-11 at 09:01 -0700, Garrick Staples wrote: > On Tue, Mar 11, 2008 at 12:35:19PM +, Mário Gamito alleged: > > Hi, > > > > Sorry for the little bit off-topic. > > > > I have a script that has to performe a hash over a password. > > Problem is that sha512sum expects CTRL-D to be p

Re: [CentOS] Automatically send CTRL-D

2008-03-11 Thread Garrick Staples
On Tue, Mar 11, 2008 at 12:35:19PM +, Mário Gamito alleged: > Hi, > > Sorry for the little bit off-topic. > > I have a script that has to performe a hash over a password. > Problem is that sha512sum expects CTRL-D to be pressed to return to the > command prompt. > > I've searched all over Go

Re: [CentOS] Automatically send CTRL-D

2008-03-11 Thread Luciano Rocha
On Tue, Mar 11, 2008 at 12:58:03PM +, Mário Gamito wrote: > Hi Marcelo, > > On Tue, Mar 11, 2008 at 12:52 PM, Marcelo Roccasalva < > [EMAIL PROTECTED]> wrote: > > > On Tue, Mar 11, 2008 at 10:35 AM, Mário Gamito <[EMAIL PROTECTED]> wrote: > > [...] > > > $ sha512sum | xargs echo "password" |

Re: [CentOS] Automatically send CTRL-D

2008-03-11 Thread Mário Gamito
Hi Marcelo, On Tue, Mar 11, 2008 at 12:52 PM, Marcelo Roccasalva < [EMAIL PROTECTED]> wrote: > On Tue, Mar 11, 2008 at 10:35 AM, Mário Gamito <[EMAIL PROTECTED]> wrote: > [...] > > $ sha512sum | xargs echo "password" | cut -f2 -d' ' > > read x;echo "$x" | sha512sum | xargs echo "password" | cut

Re: [CentOS] Automatically send CTRL-D

2008-03-11 Thread Marcelo Roccasalva
On Tue, Mar 11, 2008 at 10:35 AM, Mário Gamito <[EMAIL PROTECTED]> wrote: [...] > $ sha512sum | xargs echo "password" | cut -f2 -d' ' read x;echo "$x" | sha512sum | xargs echo "password" | cut -f2 -d' ' -- Marcelo "¿No será acaso que ésta vida moderna está teniendo más de moderna que de vida?"

[CentOS] Automatically send CTRL-D

2008-03-11 Thread Mário Gamito
Hi, Sorry for the little bit off-topic. I have a script that has to performe a hash over a password. Problem is that sha512sum expects CTRL-D to be pressed to return to the command prompt. I've searched all over Google, but either I didn't do the right search or there is nothing relevant about t