<?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: unzip v5.52 problem in batch in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/unzip-v5-52-problem-in-batch/m-p/4455386#M16959</link>
    <description>&lt;!--!*#--&gt;&amp;gt; This is easily the best problem report [...]&lt;BR /&gt;&lt;BR /&gt;But where's the fun in that?&lt;BR /&gt;&lt;BR /&gt;I ran a quick test here using UnZip 5.52 and&lt;BR /&gt;6.0, using my personal account and SYSTEM,&lt;BR /&gt;and all I get are the "skipping: xxx&lt;BR /&gt;unable to get password" messages, which is&lt;BR /&gt;what I'd expect when it considers asking the&lt;BR /&gt;user for the password, and there's no one to&lt;BR /&gt;ask.  So far as I can tell from a quick&lt;BR /&gt;inspection, it reads from stdin (SYS$INPUT),&lt;BR /&gt;so unless someone has redefined that, I can't&lt;BR /&gt;immediately explain any other behavior.</description>
    <pubDate>Wed, 08 Jul 2009 13:45:58 GMT</pubDate>
    <dc:creator>Steven Schweda</dc:creator>
    <dc:date>2009-07-08T13:45:58Z</dc:date>
    <item>
      <title>unzip v5.52 problem in batch</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/unzip-v5-52-problem-in-batch/m-p/4455384#M16957</link>
      <description>I have written a dcl procedure to test whether&lt;BR /&gt;zip file attachments to email messages are&lt;BR /&gt;password protected or not.  This is to be used&lt;BR /&gt;in the PMDF CONVERSION channel as part of our&lt;BR /&gt;Sophos virus scanning.  The test procedure&lt;BR /&gt;works fine interactively and in batch from&lt;BR /&gt;both unprivileged and fully privileged accounts&lt;BR /&gt;on an old Alpha 8200 running OpenVMS V7.1-2.&lt;BR /&gt;&lt;BR /&gt;It also works fine interactively and in batch&lt;BR /&gt;from an unprivileged account on an ES80&lt;BR /&gt;running OpenVMS V7.3-2.  However, in batch&lt;BR /&gt;mode from a privileged account on this ES80&lt;BR /&gt;the batch job hangs when it reaches the line&lt;BR /&gt;&lt;BR /&gt;$ unzip/test/quiet zip-test.zip&lt;BR /&gt;&lt;BR /&gt;and the zip file is a password protected&lt;BR /&gt;file created with zipcloak.&lt;BR /&gt;&lt;BR /&gt;A simplified version of the procedure is :&lt;BR /&gt;&lt;BR /&gt;$ unzip :== $GEN_1:[IAN]UNZ552XV-AXP.EXE&lt;BR /&gt;$ zip_file_name = "''p1'"&lt;BR /&gt;$ on error then continue&lt;BR /&gt;$ unzip/test/quiet 'zip_file_name'&lt;BR /&gt;$ exit_status = $status&lt;BR /&gt;&lt;BR /&gt;The log file from a test batch job on the&lt;BR /&gt;system running V7.1-2 is :&lt;BR /&gt;&lt;BR /&gt;$ unzip :== $GEN_1:[IAN]UNZ552XV-AXP.EXE&lt;BR /&gt;$ zip_file_name = "ZIP-TEST.ZIP"&lt;BR /&gt;$ on error then continue&lt;BR /&gt;$ unzip/test/quiet ZIP-TEST.ZIP&lt;BR /&gt;   skipping: zip_test/funny_characters unable to get password&lt;BR /&gt;   skipping: zip_test/punch.jpg   unable to get password&lt;BR /&gt;   skipping: zip_test/text file.txt  unable to get password&lt;BR /&gt;At least one error was detected in D_R:[ROBBO]ZIP-TEST.ZIP;1&lt;BR /&gt;$ exit_status = $status&lt;BR /&gt;&lt;BR /&gt;On the ES80 the log file looks like :&lt;BR /&gt;&lt;BR /&gt;$ unzip :== $GEN_1:[IAN]UNZ552XV-AXP.EXE&lt;BR /&gt;$ zip_file_name = "ZIP-TEST.ZIP"&lt;BR /&gt;$ on error then continue&lt;BR /&gt;$ unzip/test/quiet ZIP-TEST.ZIP&lt;BR /&gt;[GEN_1:[IAN]ZIP-TEST.ZIP;1] zip_test/funny_characters password:&lt;BR /&gt;%JBC-F-JOBABORT, job aborted during execution&lt;BR /&gt;&lt;BR /&gt;The abort is a result of me deleting the entry from the batch queue after it sat there for some time.&lt;BR /&gt;&lt;BR /&gt;I have compared the privs of the privileged&lt;BR /&gt;accounts on the two machines and there doesn't&lt;BR /&gt;appear to be any difference.  Nor are there any&lt;BR /&gt;differences with the various quotas.&lt;BR /&gt;&lt;BR /&gt;Does anyone have any suggestions as to why this might be happening?&lt;BR /&gt;&lt;BR /&gt;Thanks in advance.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 08 Jul 2009 08:29:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/unzip-v5-52-problem-in-batch/m-p/4455384#M16957</guid>
      <dc:creator>Dr. Ian Robinson</dc:creator>
      <dc:date>2009-07-08T08:29:31Z</dc:date>
    </item>
    <item>
      <title>Re: unzip v5.52 problem in batch</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/unzip-v5-52-problem-in-batch/m-p/4455385#M16958</link>
      <description>This is easily the best problem report posted in this ITRC forum in quite some time.  Good and complete configuration and environment details have been included on the post; thank you for that. &lt;BR /&gt;&lt;BR /&gt;I've not tried embedding the password with DCL with zip, but I've seen cases where a privileged user password prompt can end up over on the console.&lt;BR /&gt;&lt;BR /&gt;I'm using the Unix-like switches here, and not the DCL-like qualifier.&lt;BR /&gt;&lt;BR /&gt;Here, try a test with unzip -v or -vv and see if you get any diagnostics that point to a difference.  &lt;BR /&gt;&lt;BR /&gt;When the process hangs, use another privileged process and ANALYZE /SYSTEM and SHOW PROCESS /INDEX=pid to see what channels the process has open, and where they go.&lt;BR /&gt;&lt;BR /&gt;If you know the password and you're willing to embed it, then use &lt;BR /&gt;&lt;BR /&gt;unzip "-P password"&lt;BR /&gt;&lt;BR /&gt;Either SET PROCESS /PARSE=EXTENDED or quoting for uppercase switches is required here.&lt;BR /&gt;&lt;BR /&gt;Unzip /test/quiet is unzip -tq or -tqq or -t -qq&lt;BR /&gt;&lt;BR /&gt;zip 6.0 and unzip 3.0 are current.  If you're working with zip files past 2 GB or so, then you will need to upgrade to 6.0 and 3.0.&lt;BR /&gt;&lt;BR /&gt;(Assuming Mr Schweda doesn't instantiate with a specific diagnosis, you may end up building unzip from source and seeing what happens here with the Debugger.)&lt;BR /&gt;</description>
      <pubDate>Wed, 08 Jul 2009 11:42:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/unzip-v5-52-problem-in-batch/m-p/4455385#M16958</guid>
      <dc:creator>Hoff</dc:creator>
      <dc:date>2009-07-08T11:42:37Z</dc:date>
    </item>
    <item>
      <title>Re: unzip v5.52 problem in batch</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/unzip-v5-52-problem-in-batch/m-p/4455386#M16959</link>
      <description>&lt;!--!*#--&gt;&amp;gt; This is easily the best problem report [...]&lt;BR /&gt;&lt;BR /&gt;But where's the fun in that?&lt;BR /&gt;&lt;BR /&gt;I ran a quick test here using UnZip 5.52 and&lt;BR /&gt;6.0, using my personal account and SYSTEM,&lt;BR /&gt;and all I get are the "skipping: xxx&lt;BR /&gt;unable to get password" messages, which is&lt;BR /&gt;what I'd expect when it considers asking the&lt;BR /&gt;user for the password, and there's no one to&lt;BR /&gt;ask.  So far as I can tell from a quick&lt;BR /&gt;inspection, it reads from stdin (SYS$INPUT),&lt;BR /&gt;so unless someone has redefined that, I can't&lt;BR /&gt;immediately explain any other behavior.</description>
      <pubDate>Wed, 08 Jul 2009 13:45:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/unzip-v5-52-problem-in-batch/m-p/4455386#M16959</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2009-07-08T13:45:58Z</dc:date>
    </item>
    <item>
      <title>Re: unzip v5.52 problem in batch</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/unzip-v5-52-problem-in-batch/m-p/4455387#M16960</link>
      <description>fwiw, long ago with (a much) older version of UNZIP (and ZIP) I had to embed the UNZIP within a pseudo-terminal application in order to handle passwords and encryption - UNZIP (at least that long ago vintage) demanded a terminal.</description>
      <pubDate>Wed, 08 Jul 2009 13:58:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/unzip-v5-52-problem-in-batch/m-p/4455387#M16960</guid>
      <dc:creator>Jim_McKinney</dc:creator>
      <dc:date>2009-07-08T13:58:47Z</dc:date>
    </item>
    <item>
      <title>Re: unzip v5.52 problem in batch</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/unzip-v5-52-problem-in-batch/m-p/4455388#M16961</link>
      <description>&lt;!--!*#--&gt;&amp;gt; [...] I had to embed the UNZIP within a&lt;BR /&gt;&amp;gt; pseudo-terminal [...]&lt;BR /&gt;&lt;BR /&gt;The "-P" option has existed for a while, but&lt;BR /&gt;it was left undocumented (outside of the&lt;BR /&gt;source code) because it was considered such a&lt;BR /&gt;bad idea to use it.  In recent years, we got&lt;BR /&gt;tired of answering questions about it, so&lt;BR /&gt;it's now in the "-hh" help on UnZip.&lt;BR /&gt;&lt;BR /&gt;&amp;gt; [...] it reads from stdin (SYS$INPUT) [...]&lt;BR /&gt;&lt;BR /&gt;Or SYS$COMMAND, or SYS$something-or-other.</description>
      <pubDate>Wed, 08 Jul 2009 15:09:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/unzip-v5-52-problem-in-batch/m-p/4455388#M16961</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2009-07-08T15:09:10Z</dc:date>
    </item>
    <item>
      <title>Re: unzip v5.52 problem in batch</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/unzip-v5-52-problem-in-batch/m-p/4455389#M16962</link>
      <description>&lt;!--!*#--&gt;If you're still chasing this one, you might&lt;BR /&gt;toss in some simple diagnostics to reveal&lt;BR /&gt;what it might be trying to read when it&lt;BR /&gt;hangs:&lt;BR /&gt;&lt;BR /&gt;      $ show logical sys$command&lt;BR /&gt;      $ show logical sys$input&lt;BR /&gt;      $ unzip [...]&lt;BR /&gt;</description>
      <pubDate>Thu, 09 Jul 2009 21:02:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/unzip-v5-52-problem-in-batch/m-p/4455389#M16962</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2009-07-09T21:02:10Z</dc:date>
    </item>
    <item>
      <title>Re: unzip v5.52 problem in batch</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/unzip-v5-52-problem-in-batch/m-p/4455390#M16963</link>
      <description>&lt;!--!*#--&gt;&lt;BR /&gt;Sorry for the delay in responding to your suggestions - I have&lt;BR /&gt;had other pressing issues.&lt;BR /&gt;&lt;BR /&gt;Anyway, thanks to all who have taken the time and effort to offer&lt;BR /&gt;suggestions.&lt;BR /&gt;&lt;BR /&gt;I had already included things like :&lt;BR /&gt;&lt;BR /&gt;$ show logical sys$input&lt;BR /&gt;$ show logical sys$command&lt;BR /&gt;&lt;BR /&gt;in the batch jobs because I was wondering whether somehow these had been re-defined and the procedure was trying to read the&lt;BR /&gt;password from somewhere weird.  But they had not.&lt;BR /&gt;&lt;BR /&gt;The suggestion to submit the batch job and when the process hangs to use another privileged process to ANALYZE/SYSTEM and&lt;BR /&gt;SHOW PROCESS/INDEX=pid/CHANNEL was a very good starting point.  It showed that for some reason the process had a file called&lt;BR /&gt;DSA10:[IAN].;1 open :&lt;BR /&gt;&lt;BR /&gt;Process index: 0060   Name: BATCH_1752        Extended PID: 2C862860&lt;BR /&gt;--------------------------------------------------------------------&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;                            Process active channels&lt;BR /&gt;                            -----------------------&lt;BR /&gt;&lt;BR /&gt;Channel    CCB     Window     Status    Device/file accessed&lt;BR /&gt;-------    ---     ------     ------    --------------------&lt;BR /&gt;  0010  7FF7A000  00000000              DSA10:&lt;BR /&gt;  0020  7FF7A020  82261800              DSA10:[IAN]UNZ552XV-AXP.EXE;1&lt;BR /&gt;  0030  7FF7A040  8234FF40              $2$DKA0:[SYSCOMMON.SYSLIB]LIBOTS.EXE;1 (&lt;BR /&gt;section file)&lt;BR /&gt;  0040  7FF7A060  8234FB40              $2$DKA0:[SYSCOMMON.SYSLIB]LIBRTL.EXE;1 (&lt;BR /&gt;section file)&lt;BR /&gt;  0050  7FF7A080  8235D980              $2$DKA0:[SYSCOMMON.SYSEXE]DCL.EXE;1 (sec&lt;BR /&gt;tion file)&lt;BR /&gt;  0060  7FF7A0A0  8234FAC0              $2$DKA0:[SYSCOMMON.SYSLIB]DCLTABLES.EXE;&lt;BR /&gt;403 (section file)&lt;BR /&gt;  0070  7FF7A0C0  823A5800              DSA10:[IAN]TU.LOG;6&lt;BR /&gt;  0080  7FF7A0E0  824867C0              DSA10:[IAN]TU.COM;5&lt;BR /&gt;  0090  7FF7A100  82354200              $2$DKA0:[SYSCOMMON.SYSLIB]DECC$SHR_EV56.&lt;BR /&gt;EXE;1 (section file)&lt;BR /&gt;  00A0  7FF7A120  82353C00              $2$DKA0:[SYSCOMMON.SYSLIB]DPML$SHR.EXE;1&lt;BR /&gt; (section file)&lt;BR /&gt;  00B0  7FF7A140  82352180              $2$DKA0:[SYSCOMMON.SYSLIB]CMA$TIS_SHR.EX&lt;BR /&gt;E;1 (section file)&lt;BR /&gt;  00C0  7FF7A160  823A7B40              DSA10:[IAN]ZIP-TEST.ZIP;1&lt;BR /&gt;  00D0  7FF7A180  8222BD80              DSA10:[IAN].;1&lt;BR /&gt;  00E0  7FF7A1A0  00000000              DSA10:&lt;BR /&gt;&lt;BR /&gt;  Total number of open channels : 14.&lt;BR /&gt;SDA&amp;gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;It turns out that this file already existed and was, in fact, an empty file which had a creation date of some months ago - a carry&lt;BR /&gt;over from some other issue no doubt (can't remember what).&lt;BR /&gt;&lt;BR /&gt;So, when I deleted this file and re-submitted the batch job it all&lt;BR /&gt;worked fine.&lt;BR /&gt;&lt;BR /&gt;Since sys$input is defined to be _DSA10: in this batch job (default) is it possible that this is a bug and that sys$input is being&lt;BR /&gt;interpreted as _DSA10:[IAN].;1 ?&lt;BR /&gt;&lt;BR /&gt;I never quite understood how the default definition of sys$input in batch translated to the actual command procedure which was&lt;BR /&gt;submitted - but clearly it is as the log file for the following simple test procedure shows :&lt;BR /&gt;&lt;BR /&gt;$ show logical sys$input&lt;BR /&gt;$ show logical sys$command&lt;BR /&gt;$ show logical sys$output&lt;BR /&gt;$ read sys$input line&lt;BR /&gt;thisisatest&lt;BR /&gt;$ show symbol line&lt;BR /&gt;$ exit&lt;BR /&gt;&lt;BR /&gt;$ show logical sys$input&lt;BR /&gt;   "SYS$INPUT" = "_DSA10:" (LNM$PROCESS_TABLE)&lt;BR /&gt;$ show logical sys$command&lt;BR /&gt;   "SYS$COMMAND" = "_DSA10:" (LNM$PROCESS_TABLE)&lt;BR /&gt;$ show logical sys$output&lt;BR /&gt;   "SYS$OUTPUT" = "_DSA10:" (LNM$PROCESS_TABLE)&lt;BR /&gt;$ read sys$input line&lt;BR /&gt;$ show symbol line&lt;BR /&gt;  LINE = "thisisatest"&lt;BR /&gt;$ exit&lt;BR /&gt;&lt;BR /&gt;Other tests show that if the .;1 file is not empty the batch job completes and the log file contains entries such as :&lt;BR /&gt;&lt;BR /&gt;$ unzip/test/quiet ZIP-TEST.ZIP&lt;BR /&gt;[GEN_1:[IAN]ZIP-TEST.ZIP;1] zip_test/funny_charactors password:&lt;BR /&gt;password incorrect--reenter:&lt;BR /&gt;password incorrect--reenter:&lt;BR /&gt;[GEN_1:[IAN]ZIP-TEST.ZIP;1] zip_test/punch.jpg password:&lt;BR /&gt;password incorrect--reenter:&lt;BR /&gt;password incorrect--reenter:&lt;BR /&gt;[GEN_1:[IAN]ZIP-TEST.ZIP;1] zip_test/text file.txt password:&lt;BR /&gt;password incorrect--reenter:&lt;BR /&gt;password incorrect--reenter:&lt;BR /&gt;Caution:  zero files tested in GEN_1:[IAN]UOM-ZIP-TEST.ZIP;1.&lt;BR /&gt;3 files skipped because of incorrect password.&lt;BR /&gt;$ exit_status = $status&lt;BR /&gt;&lt;BR /&gt;so I guess unzip must be trying to read the password from the file DSA10:[IAN].;1.&lt;BR /&gt;&lt;BR /&gt;If I create a password protected zip file for which I know the password and put this password in the file DSA10:[IAN].;1 then&lt;BR /&gt;the log shows :&lt;BR /&gt;&lt;BR /&gt;$ unzip/test/quiet ZIP-TEST.ZIP&lt;BR /&gt;[GEN_1:[IAN]ZIP-TEST.ZIP;2] test2/ password:&lt;BR /&gt;&lt;BR /&gt;No errors detected in compressed data of GEN_1:[IAN]UOM-ZIP-TEST.ZIP;2.&lt;BR /&gt;&lt;BR /&gt;Anyway, as a workaround I guess I need to either specifically define sys$input or perhaps add a :&lt;BR /&gt;&lt;BR /&gt;$ delete .;1&lt;BR /&gt;&lt;BR /&gt;to my procedure before the unzip.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 10 Jul 2009 03:32:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/unzip-v5-52-problem-in-batch/m-p/4455390#M16963</guid>
      <dc:creator>Dr. Ian Robinson</dc:creator>
      <dc:date>2009-07-10T03:32:35Z</dc:date>
    </item>
  </channel>
</rss>

