thanks for your helpful reply.
# PROGRAM INCLUDES use OLE; use strict; # file with routine to retrieve server variables require 'D:\\Scripts\\Perl-Scripts\\OMS\\OMS_SI_Server_Include.pl'; # file with routine to transfer and validate files require 'D:\\Scripts\\Perl-Scripts\\OMS\\OMS_FI_FTP_Include.pl'; #Path=D:\\prochannel\\pc_7\\PC_Mod\\bin;D:\\Perl\\bin\\;D:\\oracle\\or +a92\\bin;C:\\Program Files\\Oracle\\jre\\1.1.8\\bin;C:\\WINDOWS\\syst +em32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;d:\\PROGRA~1\\BMCSOF~1\\ +Patrol3\\bin;C:\\win32app\\TWS\\maestro;C:\\win32app\\TWS\\maestro\\b +in;D:\\scripts\\perl-scripts\\oms;C:\\j2sdk1.4.2_06\\jre ## ------------------------------------------------------------------- +-- # FUNCTION: Main Program # PARAMETERS: none # RETURN VALUE: none # DESCRIPTION: Main program # OMS File processing related Variables my %File_variable = SI_get_File_variables(); my $oms_file = $File_variable{"oms_part_file"}; my $oms_hdr_file = $File_variable{"oms_part_withhdr_file"}; my $oms_remote_file = $File_variable{"oms_part_remote_file"}; my $log_file = $File_variable{"oms_part_log_file"}; my $changedrive = $File_variable{"oms_part_changedrive"}; my $changedir = $File_variable{"oms_part_changedir"}; my $binenv = $File_variable{"oms_part_binenv"}; my $doupdate = $File_variable{"oms_part_doupdate"}; # variables for OMS_Part_Import.pl - from the TEST version of SERVE +R_INCLUDE # $File_variable{"oms_part_file"} = "E:\\inetpub\\ftproot\\oms_part +s"; # $File_variable{"oms_part_withhdr_file"} = "E:\\inetpub\\ftproot\\ +DMSPARTS"; # $File_variable{"oms_part_remote_file"} = "/usr1/MIG/drm/outgoing/ +OMSPMCLX"; # $File_variable{"oms_part_log_file"} = "E:\\inetpub\\ftproot\\DMSPA +RTS.log"; # $File_variable{"oms_part_changedrive"} = "D:"; # $File_variable{"oms_part_changedir"} = "cd \\ProChannel\\pc_7\\PC_ +Mod"; # $File_variable{"oms_part_binenv"} = "bin\\env.bat"; # $File_variable{"oms_part_doupdate"} = "D:\\ProChannel\\pc_7\\PC_Mo +d\\bin\\doupdate IMPORT_BASIC_PART E:\\inetpub\\ftproot\\oms_parts"; # %File_variable; ... system("$changedrive & $changedir & $binenv & $doupdate");

In reply to Re^2: perl script works at command but job does not work by 2blv2wn
in thread perl script works at command but job does not work by 2blv2wn

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.