- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Error with crypt command
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-19-2004 08:58 PM
05-19-2004 08:58 PM
I`d like encrypt a shell variable with crypt, but i get the following error:
$ word_crpt=`echo "Hello word"|crypt "pass"`
crypt: cannot generate key
Any idea.
Thanks.
Solved! Go to Solution.
- Tags:
- crypt
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-19-2004 09:15 PM
05-19-2004 09:15 PM
Re: Error with crypt command
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-19-2004 09:18 PM
05-19-2004 09:18 PM
Re: Error with crypt command
check the man page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-19-2004 09:42 PM
05-19-2004 09:42 PM
Re: Error with crypt command
$ echo "uncrypt"|crypt "pass"
ù⠰`öô¶$
And i run the next command in a Sun Solaris system and it run ok.
$ echo "uncrypt" |crypt "pass"
ù⠰`öô¶
$
$ palabra=`echo "uncrypt" |crypt "pass"`
$ echo $palabra
ù⠰`öô¶
$
And the save the text crypted to a file and pass de contain to a variable its not recommendes f
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-20-2004 07:02 AM
05-20-2004 07:02 AM
Re: Error with crypt command
It looks like crypt was unable to run /usr/lbin/makekey.
Perhaps it ran out of a resource such as nproc or maxuproc.
You could try that command in a shell that you
ran under tusc to watch for failing system calls.
$ tusc -fn -o crypt.tusc /usr/bin/sh
$ word_crpt=`echo "Hello word"|crypt "pass"`
$ exit
$ vi crypt.tusc
You can get tusc from
http://hpux.cs.utah.edu/hppd/hpux/Sysadmin/tusc-7.5/
- Tags:
- tusc
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-20-2004 08:12 AM
05-20-2004 08:12 AM
Re: Error with crypt command
maxuprc and nproc are fine.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-20-2004 09:27 AM
05-20-2004 09:27 AM
Solutionhave /usr/dt/bin/dtksh as my login shell.
The problem is that crypt is using wait() to
wait for makekey, but it is not checking the
process id when wait returns. In the pipe
command under most shells the crypt process
is continuing after the wait() call returns
with the process id of the forked shell
process that did echo builtin.
You can work around crypt's problem by making
the echo side of the pipe a little slower to
complete. That will allow the makekey to
finish first.
crypt=`echo "Hello word";sleep 1 |crypt "pass"`
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-20-2004 09:31 AM
05-20-2004 09:31 AM
Re: Error with crypt command
of the echo command heading through the pipe.
word_crpt=`(echo "Hello word";sleep 1 ) |crypt "pass"`