From: "Mário Gamito" <gamito@gmail.com>
To: Linux-Admin ML <linux-admin@vger.kernel.org>
Subject: Automatic CTRL-D (EOF)
Date: Tue, 11 Mar 2008 13:07:54 +0000 [thread overview]
Message-ID: <47D6842A.2@gmail.com> (raw)
Hi,
I have a script that has to perform 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 use the right search
strings or there is nothing relevant about this.
Bottom line is that I need this command to print the password hash and
returns to the shell automatically:
$ sha512sum | xargs echo "password" | cut -f2 -d' '
Tried:
$ read x; echo "$x" | sha512sum | xargs echo "password" | cut -f2 -d' '
but no good and as a bonus (NOT) the hash is incorrect.
Any help would be appreciated.
Warm Regards,
Mário Gamito
--
To unsubscribe from this list: send the line "unsubscribe linux-admin" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next reply other threads:[~2008-03-11 13:07 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-03-11 13:07 Mário Gamito [this message]
2008-03-11 13:27 ` Automatic CTRL-D (EOF) Jose Celestino
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=47D6842A.2@gmail.com \
--to=gamito@gmail.com \
--cc=linux-admin@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).