<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Error with crypt command in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/error-with-crypt-command/m-p/3281829#M715480</link>
    <description>crypt can be used to encrypt files and not variables.&lt;BR /&gt;&lt;BR /&gt;check the man page</description>
    <pubDate>Thu, 20 May 2004 04:18:13 GMT</pubDate>
    <dc:creator>Umapathy S</dc:creator>
    <dc:date>2004-05-20T04:18:13Z</dc:date>
    <item>
      <title>Error with crypt command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/error-with-crypt-command/m-p/3281827#M715478</link>
      <description>Hi all,&lt;BR /&gt; I`d like encrypt a shell variable with crypt, but i get the following error:&lt;BR /&gt;&lt;BR /&gt;$ word_crpt=`echo "Hello word"|crypt "pass"`&lt;BR /&gt;crypt: cannot generate key&lt;BR /&gt;&lt;BR /&gt;Any idea.&lt;BR /&gt;&lt;BR /&gt;Thanks.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 20 May 2004 03:58:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/error-with-crypt-command/m-p/3281827#M715478</guid>
      <dc:creator>Alfonso Plaza</dc:creator>
      <dc:date>2004-05-20T03:58:28Z</dc:date>
    </item>
    <item>
      <title>Re: Error with crypt command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/error-with-crypt-command/m-p/3281828#M715479</link>
      <description>info crypt&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.informatik.uni-frankfurt.de/doc/man/hpux/crypt.3c.html" target="_blank"&gt;http://www.informatik.uni-frankfurt.de/doc/man/hpux/crypt.3c.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.informatik.uni-frankfurt.de/doc/man/hpux/crypt.1.html" target="_blank"&gt;http://www.informatik.uni-frankfurt.de/doc/man/hpux/crypt.1.html&lt;/A&gt;</description>
      <pubDate>Thu, 20 May 2004 04:15:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/error-with-crypt-command/m-p/3281828#M715479</guid>
      <dc:creator>Bruno Ganino</dc:creator>
      <dc:date>2004-05-20T04:15:39Z</dc:date>
    </item>
    <item>
      <title>Re: Error with crypt command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/error-with-crypt-command/m-p/3281829#M715480</link>
      <description>crypt can be used to encrypt files and not variables.&lt;BR /&gt;&lt;BR /&gt;check the man page</description>
      <pubDate>Thu, 20 May 2004 04:18:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/error-with-crypt-command/m-p/3281829#M715480</guid>
      <dc:creator>Umapathy S</dc:creator>
      <dc:date>2004-05-20T04:18:13Z</dc:date>
    </item>
    <item>
      <title>Re: Error with crypt command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/error-with-crypt-command/m-p/3281830#M715481</link>
      <description>Ok. but when i do the following its run ok.&lt;BR /&gt;$ echo "uncrypt"|crypt "pass"&lt;BR /&gt;Ã¹â °`Ã¶Ã´Â¶$&lt;BR /&gt;&lt;BR /&gt;And i run the next command in a Sun Solaris system and it run ok.&lt;BR /&gt;&lt;BR /&gt;$ echo "uncrypt" |crypt "pass"&lt;BR /&gt;Ã¹â °`Ã¶Ã´Â¶&lt;BR /&gt;$ &lt;BR /&gt;$ palabra=`echo "uncrypt" |crypt "pass"`&lt;BR /&gt;$ echo $palabra   &lt;BR /&gt;Ã¹â °`Ã¶Ã´Â¶&lt;BR /&gt;$ &lt;BR /&gt;&lt;BR /&gt;And the save the text crypted to a file and pass de contain to a variable its not recommendes f</description>
      <pubDate>Thu, 20 May 2004 04:42:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/error-with-crypt-command/m-p/3281830#M715481</guid>
      <dc:creator>Alfonso Plaza</dc:creator>
      <dc:date>2004-05-20T04:42:08Z</dc:date>
    </item>
    <item>
      <title>Re: Error with crypt command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/error-with-crypt-command/m-p/3281831#M715482</link>
      <description>It works fine for me.&lt;BR /&gt;It looks like crypt was unable to run /usr/lbin/makekey.&lt;BR /&gt;Perhaps it ran out of a resource such as nproc or maxuproc.&lt;BR /&gt;You could try that command in a shell that you&lt;BR /&gt;ran under tusc to watch for failing system calls.&lt;BR /&gt;&lt;BR /&gt;$ tusc -fn -o crypt.tusc /usr/bin/sh&lt;BR /&gt;$ word_crpt=`echo "Hello word"|crypt "pass"`&lt;BR /&gt;$ exit&lt;BR /&gt;$ vi crypt.tusc&lt;BR /&gt;&lt;BR /&gt;You can get tusc from&lt;BR /&gt;&lt;A href="http://hpux.cs.utah.edu/hppd/hpux/Sysadmin/tusc-7.5/" target="_blank"&gt;http://hpux.cs.utah.edu/hppd/hpux/Sysadmin/tusc-7.5/&lt;/A&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 20 May 2004 14:02:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/error-with-crypt-command/m-p/3281831#M715482</guid>
      <dc:creator>Mike Stroyan</dc:creator>
      <dc:date>2004-05-20T14:02:56Z</dc:date>
    </item>
    <item>
      <title>Re: Error with crypt command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/error-with-crypt-command/m-p/3281832#M715483</link>
      <description>I'm getting the same results as you.&lt;BR /&gt;&lt;BR /&gt;maxuprc and nproc are fine.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Thu, 20 May 2004 15:12:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/error-with-crypt-command/m-p/3281832#M715483</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2004-05-20T15:12:14Z</dc:date>
    </item>
    <item>
      <title>Re: Error with crypt command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/error-with-crypt-command/m-p/3281833#M715484</link>
      <description>Interesting.  I was working for me because I&lt;BR /&gt;have /usr/dt/bin/dtksh as my login shell.&lt;BR /&gt;The problem is that crypt is using wait() to&lt;BR /&gt;wait for makekey, but it is not checking the&lt;BR /&gt;process id when wait returns.  In the pipe&lt;BR /&gt;command under most shells the crypt process&lt;BR /&gt;is continuing after the wait() call returns&lt;BR /&gt;with the process id of the forked shell&lt;BR /&gt;process that did echo builtin.&lt;BR /&gt;&lt;BR /&gt;You can work around crypt's problem by making&lt;BR /&gt;the echo side of the pipe a little slower to&lt;BR /&gt;complete.  That will allow the makekey to&lt;BR /&gt;finish first.&lt;BR /&gt;&lt;BR /&gt;crypt=`echo "Hello word";sleep 1  |crypt "pass"`&lt;BR /&gt;</description>
      <pubDate>Thu, 20 May 2004 16:27:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/error-with-crypt-command/m-p/3281833#M715484</guid>
      <dc:creator>Mike Stroyan</dc:creator>
      <dc:date>2004-05-20T16:27:42Z</dc:date>
    </item>
    <item>
      <title>Re: Error with crypt command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/error-with-crypt-command/m-p/3281834#M715485</link>
      <description>Hmm, that needs parentheses to keep the output&lt;BR /&gt;of the echo command heading through the pipe.&lt;BR /&gt;&lt;BR /&gt;word_crpt=`(echo "Hello word";sleep 1 ) |crypt "pass"`</description>
      <pubDate>Thu, 20 May 2004 16:31:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/error-with-crypt-command/m-p/3281834#M715485</guid>
      <dc:creator>Mike Stroyan</dc:creator>
      <dc:date>2004-05-20T16:31:34Z</dc:date>
    </item>
  </channel>
</rss>

