<?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: Perl in Windows Environment Help in Operating System - Microsoft</title>
    <link>https://community.hpe.com/t5/operating-system-microsoft/perl-in-windows-environment-help/m-p/3835375#M11250</link>
    <description>You should associate a .pl extension with perl.exe but that is not necessary. I assume that since you are asking this question under OB2/DP that this is an OB2/DP related question so there are a few things you have to do to make Perl work as a pre/post-exec script.&lt;BR /&gt;&lt;BR /&gt;1) If you have installed Perl under Program Files, I suggest that you uninstall and install it under C:\Perl. This makes life simpler because your scripts and the data specifications don't have to be so careful about correctly quoting pathnames with embedded white space. &lt;BR /&gt;&lt;BR /&gt;2) You actually have to copy 2 Perl files to your %OmniBack% bin directory (and once again, I suggest that you install OB2/DP in C:\OmniBack) so that you don't have to deal with white space. It's much easier to remove and reinstall DP that it is to deal with obscure scripting problems. In any event, you need to copy perl.exe and perl58.dll (or whatever version you are using) to the %OmniBack%\bin directory. &lt;BR /&gt;&lt;BR /&gt;3) Your Perl script(s) also should be installed in the %OmniBack%\bin directory. (C:\OmniBack\bin on my Windows boxes).&lt;BR /&gt;&lt;BR /&gt;4) Edit your data specification and add a line similar to this:&lt;BR /&gt;&lt;BR /&gt;-pre_exec "perl.exe -I C:/Perl/lib -I C:/Perl/site/lib C:\OmniBack\bin\myscript.pl"&lt;BR /&gt;&lt;BR /&gt;to the backup object.&lt;BR /&gt;&lt;BR /&gt;This will execute myscript.pl as a pre-exec.&lt;BR /&gt;Make sure that your script explicitly  exits with an appropriate return value (e.g. 0 if all is well).&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Tue, 01 Aug 2006 16:13:24 GMT</pubDate>
    <dc:creator>A. Clay Stephenson</dc:creator>
    <dc:date>2006-08-01T16:13:24Z</dc:date>
    <item>
      <title>Perl in Windows Environment Help</title>
      <link>https://community.hpe.com/t5/operating-system-microsoft/perl-in-windows-environment-help/m-p/3835374#M11249</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Being new to perl, I would like to get help with working in windows/dos environment on schedule basis (not execute manually from cmd):&lt;BR /&gt;&lt;BR /&gt;1)  do we need a batch file to execute the perl file?&lt;BR /&gt;2)  does the perl need an extention as .pl?&lt;BR /&gt;3)  what is the syntac on the first line of perl in windows:&lt;BR /&gt;&lt;BR /&gt;#!C:\perl\bin\perl&lt;BR /&gt;or&lt;BR /&gt;#!/usr/bin/perl&lt;BR /&gt;&lt;BR /&gt;(not in Unix environment!)&lt;BR /&gt;&lt;BR /&gt;Any help is very appreciated!&lt;BR /&gt;&lt;BR /&gt;Steven</description>
      <pubDate>Tue, 01 Aug 2006 15:52:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-microsoft/perl-in-windows-environment-help/m-p/3835374#M11249</guid>
      <dc:creator>Steven Chen_1</dc:creator>
      <dc:date>2006-08-01T15:52:40Z</dc:date>
    </item>
    <item>
      <title>Re: Perl in Windows Environment Help</title>
      <link>https://community.hpe.com/t5/operating-system-microsoft/perl-in-windows-environment-help/m-p/3835375#M11250</link>
      <description>You should associate a .pl extension with perl.exe but that is not necessary. I assume that since you are asking this question under OB2/DP that this is an OB2/DP related question so there are a few things you have to do to make Perl work as a pre/post-exec script.&lt;BR /&gt;&lt;BR /&gt;1) If you have installed Perl under Program Files, I suggest that you uninstall and install it under C:\Perl. This makes life simpler because your scripts and the data specifications don't have to be so careful about correctly quoting pathnames with embedded white space. &lt;BR /&gt;&lt;BR /&gt;2) You actually have to copy 2 Perl files to your %OmniBack% bin directory (and once again, I suggest that you install OB2/DP in C:\OmniBack) so that you don't have to deal with white space. It's much easier to remove and reinstall DP that it is to deal with obscure scripting problems. In any event, you need to copy perl.exe and perl58.dll (or whatever version you are using) to the %OmniBack%\bin directory. &lt;BR /&gt;&lt;BR /&gt;3) Your Perl script(s) also should be installed in the %OmniBack%\bin directory. (C:\OmniBack\bin on my Windows boxes).&lt;BR /&gt;&lt;BR /&gt;4) Edit your data specification and add a line similar to this:&lt;BR /&gt;&lt;BR /&gt;-pre_exec "perl.exe -I C:/Perl/lib -I C:/Perl/site/lib C:\OmniBack\bin\myscript.pl"&lt;BR /&gt;&lt;BR /&gt;to the backup object.&lt;BR /&gt;&lt;BR /&gt;This will execute myscript.pl as a pre-exec.&lt;BR /&gt;Make sure that your script explicitly  exits with an appropriate return value (e.g. 0 if all is well).&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 01 Aug 2006 16:13:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-microsoft/perl-in-windows-environment-help/m-p/3835375#M11250</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2006-08-01T16:13:24Z</dc:date>
    </item>
  </channel>
</rss>

