<?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: Using Perl on OpenVMS for remote file access in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/using-perl-on-openvms-for-remote-file-access/m-p/3833815#M34537</link>
    <description>Kees,&lt;BR /&gt;&lt;BR /&gt;As Craig writes, just use 'glob' and 'stat' and 'open' as normal and provide with a remote filespec.&lt;BR /&gt;&lt;BR /&gt;And of course you can always use the back-ticks:&lt;BR /&gt;&lt;BR /&gt;perl -e "print foreach (`dir 0""hein password""::login.com`)"&lt;BR /&gt;&lt;BR /&gt;So what did you try?&lt;BR /&gt;What seemed to be the problem?&lt;BR /&gt;Any error messages?&lt;BR /&gt;Any behaviour you can not explain or deal with?&lt;BR /&gt;&lt;BR /&gt;Groetjes,&lt;BR /&gt;Hein.</description>
    <pubDate>Mon, 31 Jul 2006 18:38:37 GMT</pubDate>
    <dc:creator>Hein van den Heuvel</dc:creator>
    <dc:date>2006-07-31T18:38:37Z</dc:date>
    <item>
      <title>Using Perl on OpenVMS for remote file access</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/using-perl-on-openvms-for-remote-file-access/m-p/3833813#M34535</link>
      <description>Is there a solution for the DCL command: dir node"user passw"::disk:directory:[000000]file.ext ? We like to rewrite some DCL scripts into Perl and therefore we need to do file manipulation via DECnet and also via TCP on remote nodes. Will someone give me a start?</description>
      <pubDate>Mon, 31 Jul 2006 07:22:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/using-perl-on-openvms-for-remote-file-access/m-p/3833813#M34535</guid>
      <dc:creator>Kees van der Pot</dc:creator>
      <dc:date>2006-07-31T07:22:58Z</dc:date>
    </item>
    <item>
      <title>Re: Using Perl on OpenVMS for remote file access</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/using-perl-on-openvms-for-remote-file-access/m-p/3833814#M34536</link>
      <description>Perl on VMS generally understands native filespecs, so I would just try using your fully specified names including nodename.  Here's an example that works for me:&lt;BR /&gt;&lt;BR /&gt;$ perl -e "@a = glob '0""user password""::sys$manager:*.dat'; print join qq/\n/, @a;"&lt;BR /&gt;0"user password"::sys$sysroot:[sysmgr]accountng.dat&lt;BR /&gt;0"user password"::sys$sysroot:[sysmgr]decw$terminal_default.dat&lt;BR /&gt;0"user password"::sys$sysroot:[sysmgr]iogen$prefix.dat&lt;BR /&gt;0"user password"::sys$sysroot:[sysmgr]vmsimages.dat&lt;BR /&gt;0"user password"::sys$common:[sysmgr]amds$driver_access.dat&lt;BR /&gt;0"user password"::sys$common:[sysmgr]decw$autoconfig.dat&lt;BR /&gt;0"user password"::sys$common:[sysmgr]decw$fs_config.dat&lt;BR /&gt;0"user password"::sys$common:[sysmgr]decw$rgb.dat&lt;BR /&gt;0"user password"::sys$common:[sysmgr]dtss$config_template.dat&lt;BR /&gt;0"user password"::sys$common:[sysmgr]net$configure-lock.dat&lt;BR /&gt;0"user password"::sys$common:[sysmgr]vms$audit_server.dat&lt;BR /&gt;0"user password"::sys$common:[sysmgr]vms$images_master.dat&lt;BR /&gt;0"user password"::sys$common:[sysmgr]vmsimages.dat&lt;BR /&gt;&lt;BR /&gt;As far as TCP/IP using Perl, that shouldn't really be any different on VMS than on other platforms.</description>
      <pubDate>Mon, 31 Jul 2006 18:05:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/using-perl-on-openvms-for-remote-file-access/m-p/3833814#M34536</guid>
      <dc:creator>Craig A Berry</dc:creator>
      <dc:date>2006-07-31T18:05:07Z</dc:date>
    </item>
    <item>
      <title>Re: Using Perl on OpenVMS for remote file access</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/using-perl-on-openvms-for-remote-file-access/m-p/3833815#M34537</link>
      <description>Kees,&lt;BR /&gt;&lt;BR /&gt;As Craig writes, just use 'glob' and 'stat' and 'open' as normal and provide with a remote filespec.&lt;BR /&gt;&lt;BR /&gt;And of course you can always use the back-ticks:&lt;BR /&gt;&lt;BR /&gt;perl -e "print foreach (`dir 0""hein password""::login.com`)"&lt;BR /&gt;&lt;BR /&gt;So what did you try?&lt;BR /&gt;What seemed to be the problem?&lt;BR /&gt;Any error messages?&lt;BR /&gt;Any behaviour you can not explain or deal with?&lt;BR /&gt;&lt;BR /&gt;Groetjes,&lt;BR /&gt;Hein.</description>
      <pubDate>Mon, 31 Jul 2006 18:38:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/using-perl-on-openvms-for-remote-file-access/m-p/3833815#M34537</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2006-07-31T18:38:37Z</dc:date>
    </item>
    <item>
      <title>Re: Using Perl on OpenVMS for remote file access</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/using-perl-on-openvms-for-remote-file-access/m-p/3833816#M34538</link>
      <description>Hello, thanks for your reply, both.&lt;BR /&gt;&lt;BR /&gt;It is not working as expected. Here are my findings:&lt;BR /&gt;This command is silently not working with -e, so i made it to be -w. See result:&lt;BR /&gt;perl -w "@a = glob '0""kees password""::pcmrar_ontw:[exe]*.exe'; print join qq/\n/, @a;"&lt;BR /&gt;Can't open perl script "@a = glob '0"kees password"::pcmrar_ontw:[exe]zip.exe'; print join qq/\n/, @a;": file &lt;BR /&gt;&lt;BR /&gt;specification syntax error&lt;BR /&gt;%RMS-F-SYN, file specification syntax error&lt;BR /&gt;&lt;BR /&gt;Tryed to put it in a script (one.pl):&lt;BR /&gt;&lt;BR /&gt;@a = glob('0""kees password""::pcmrar_ontw:[exe]*.exe');&lt;BR /&gt;foreach(@a)&lt;BR /&gt; {&lt;BR /&gt;    my $bewerk = $_;&lt;BR /&gt;       print("glob vond $bewerk\n");&lt;BR /&gt; }&lt;BR /&gt;&lt;BR /&gt;$ perl -w one.pl&lt;BR /&gt;glob failed (can't start child: invalid argument) at one.pl line 1.&lt;BR /&gt;&lt;BR /&gt;Perl Version:&lt;BR /&gt;perl -V&lt;BR /&gt;&lt;BR /&gt;This is perl, v5.8.6 built for VMS_AXP&lt;BR /&gt;&lt;BR /&gt;The other suggestion works, but i am not able to make a script of it.&lt;BR /&gt;perl -e "print foreach (`dir 0""kees password""::pcmrar_ontw:[exe]zip.exe`)"&lt;BR /&gt;&lt;BR /&gt;Directory 0"kees password"::PCMRAR_ONTW:[EXE]&lt;BR /&gt;&lt;BR /&gt;ZIP.EXE;641                                      197  31-JAN-2000 14:29:11.09&lt;BR /&gt;&lt;BR /&gt;Total of 1 file, 197 blocks.&lt;BR /&gt;&lt;BR /&gt;Here i want to see if there are warnings, now it's not working anymore.&lt;BR /&gt;&lt;BR /&gt;perl -w "print foreach (`dir 0""kees password""::pcmrar_ontw:[exe]zip.exe`)"&lt;BR /&gt;Can't open perl script "print foreach (`dir 0"kees password"::pcmrar_ontw:[exe]zip.exe`)": file specification &lt;BR /&gt;&lt;BR /&gt;syntax error&lt;BR /&gt;%RMS-F-SYN, file specification syntax error</description>
      <pubDate>Tue, 01 Aug 2006 08:58:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/using-perl-on-openvms-for-remote-file-access/m-p/3833816#M34538</guid>
      <dc:creator>Kees van der Pot</dc:creator>
      <dc:date>2006-08-01T08:58:31Z</dc:date>
    </item>
    <item>
      <title>Re: Using Perl on OpenVMS for remote file access</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/using-perl-on-openvms-for-remote-file-access/m-p/3833817#M34539</link>
      <description>&lt;BR /&gt;Kees,&lt;BR /&gt;&lt;BR /&gt;Try putting the perl in a script first.&lt;BR /&gt;&lt;BR /&gt;I like using the -e for 'one liners' a lot, but the quotes can easily get too confusing.&lt;BR /&gt;&lt;BR /&gt;The double quotes (for the name/pass) in the quoted string (for the filespec) in the quoted string (for the program) gets you about 3 levels deep and wondering whether you need to double up or triple up or what.&lt;BR /&gt;&lt;BR /&gt;On a Unix platform you can put the program itself in single quotes, and use double quotes for interpretted symbols withing the program. However, on VMS the single quotes on hte command line start a substitution so can not be used.&lt;BR /&gt;&lt;BR /&gt;fwiw,&lt;BR /&gt;Hein.&lt;BR /&gt;</description>
      <pubDate>Tue, 01 Aug 2006 09:21:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/using-perl-on-openvms-for-remote-file-access/m-p/3833817#M34539</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2006-08-01T09:21:38Z</dc:date>
    </item>
    <item>
      <title>Re: Using Perl on OpenVMS for remote file access</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/using-perl-on-openvms-for-remote-file-access/m-p/3833818#M34540</link>
      <description>Kees,&lt;BR /&gt;&lt;BR /&gt;The -w switch cannot be substituted for the -e switch.  -w enables warnings and -e instructs Perl to run a "one-liner", i.e., take a string from the command line as a program instead of expecting the name of a file containing a program.  You can certainly use them together, however:&lt;BR /&gt;&lt;BR /&gt;$ perl -we "$x = 'hello'; "&lt;BR /&gt;Name "main::x" used only once: possible typo at -e line 1.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;The problem in your one.pl script is that you left in the doubled up double quotes, which is necessary when DCL sees the string before Perl does, but dead wrong otherwise.  As Hein points out, one-liners of any complexity can put you in a strange world that is the intersection of DCL syntax and Perl syntax; you need to be pretty comfortable with both to survive there.</description>
      <pubDate>Tue, 01 Aug 2006 10:09:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/using-perl-on-openvms-for-remote-file-access/m-p/3833818#M34540</guid>
      <dc:creator>Craig A Berry</dc:creator>
      <dc:date>2006-08-01T10:09:20Z</dc:date>
    </item>
    <item>
      <title>Re: Using Perl on OpenVMS for remote file access</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/using-perl-on-openvms-for-remote-file-access/m-p/3833819#M34541</link>
      <description>Thanks Craig and Hein,&lt;BR /&gt;&lt;BR /&gt;I spend a lot of time expirimenting with quotes, but it is not working.&lt;BR /&gt;&lt;BR /&gt;But i found a way to get files from a remote host with FTP.&lt;BR /&gt;The problem is that i want to rewrite DCL scripts to Perl and try to avoid using system calls. Now i spend a lot of time searching the internet for solutions and find that if there is one for windows or unix, its not working on VMS.&lt;BR /&gt;&lt;BR /&gt;Thanks again! (i will make a new thread about Perl in VMS)</description>
      <pubDate>Wed, 02 Aug 2006 08:00:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/using-perl-on-openvms-for-remote-file-access/m-p/3833819#M34541</guid>
      <dc:creator>Kees van der Pot</dc:creator>
      <dc:date>2006-08-02T08:00:54Z</dc:date>
    </item>
  </channel>
</rss>

