Thanx Anonymous Monk, I studied what you proposed and came up with this:

use Win32::ShellQuote(); use Win32::Process(); my(@Node_Exe_Location) = ['C:\Program Files\nodejs\node.exe']; my(@Child_Script_To_Run) = [ 'node', 'I:\HTTPS\prinet.org\site\assets\javascript\child-module.js' ]; Win32::Process::Create( $Child_Module, Win32::ShellQuote::quote_system_string(@Node_Exe_Location), Win32::ShellQuote::quote_system_string(@Child_Script_To_Run), 0, Win32::Process::DETACHED_PROCESS(), ".", ) or do { my($err) = int($!).' '.$!." #### ".int($^E)." $^E "; warn "??? - CreateProcess failed $err "; };


I have tried several variations of single quote, double quote, escaped and non-escaped slashes/back slashes to no avail. The closest I have got is the above code, but I'm getting "??? - CreateProcess failed 0 #### 123 The filename, directory name, or volume label syntax is incorrect" in the error log. I seriously appreciate your direction, but I'm having trouble understanding the syntax somehow. I'm assuming that "Win32::Process::DETACHED_PROCESS()" is something I wasn't aware of and that is one of the keys to what I'm attempting, but the "Win32::ShellQuote()" is what I'm misunderstanding somehow. Could you enlighten me a wee bit more? Oh, yea, thank you for what you provided, I'm going to keep experimenting here...
-Gary


I tried re-inventing the wheel again, but everytime I push it, it still falls flat on it's side...

In reply to Re^2: system() function by PriNet
in thread system() function by PriNet

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.