Automatic CTRL-D (EOF) | |
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] | |
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@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html
[Site Home] [Linux Newbie] [Audio] [Hams] [Kernel Newbies] [Memory] [Util Linux NG] [Security] [Netfilter] [Bugtraq] [Writing Drivers] [Photo] [Yosemite Photos] [Yosemite News] [MIPS Linux] [ARM Linux] [Linux Security] [Linux RAID] [Samba] [Video 4 Linux] [Git] [Linux Resources] [Fedora Users]
![]() |