Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

How to move perl process on Windows to another server

by digioleg54 (Novice)
on Jun 09, 2016 at 20:14 UTC ( #1165253=perlquestion: print w/replies, xml ) Need Help??
digioleg54 has asked for the wisdom of the Perl Monks concerning the following question:

I have a Perl program on my local machine and it always shows the error: CMD.EXE was started with the above path as the current directory. UNC paths are not supported. Defaulting to Windows directory. The syntax of the command is incorrect. The reason is that I run it on local machine. But we have a server ABC and queue 1 on it. Can I dynamically move my program from local machine to that server and queue? I mean , probably, I have to put some line to each Perl script and module, so that it was moved and work on that server and queue. Can somebody help me?
  • Comment on How to move perl process on Windows to another server

Replies are listed 'Best First'.
Re: How to move perl process on Windows to another server
by NetWallah (Canon) on Jun 09, 2016 at 23:09 UTC
    It appears that you are attempting to run code with the current directory pointing to a UNC path.

    Try mapping a drive and 'cd' ing to it, as recommended by this stackoverflow article.

            This is not an optical illusion, it just looks like one.

Re: How to move perl process on Windows to another server
by Laurent_R (Canon) on Jun 09, 2016 at 22:28 UTC
    Cross posted on the Perl Guru forum: http://perlguru.com/gforum.cgi?post=83095;#83095.

    There is nothing wrong with cross posting questions, but it is considered polite to inform people about such cross posting, in order to avoid that people spend time trying to solve issues that may have already been solved somewhere else on the Internet.

Re: How to move perl process on Windows to another server
by stevieb (Abbot) on Jun 09, 2016 at 20:18 UTC

    Please edit your question with the relevant lines of code that are causing the error, along with the resulting Windows command line string that's being executed.

    Put all of that within <code></code> tags.

      The problem is that I have no code. I am looking for solution to make a code. May be you can link me to website, where I can read about this technic or you have a code/command, that does it. Thanks, Oleg
        The problem is that I have no code.

        But in the OP you said:

        I have a Perl program on my local machine and it always shows the error

        If you're asking for help on that problem, then you'll need to show code that reproduces the problem, the exact error message, etc.

        If you're instead asking a conceptual question, you'll need to provide more details. What OS exactly, what this "queue" is, what you want to accomplish, etc.

Re: How to move perl process on Windows to another server
by marinersk (Priest) on Jun 10, 2016 at 02:38 UTC

    Are you, by any chance, double-clicking the Perl program from Windows Explorer?

    If memory serves, the only way to hide that OS message (and that's what it is, not a Perl message) involves some largely useless trickery like changing the font to the same color as the background in the Command Prompt settings.

      ahahah i'll do via Domain Policy next April's First...

      but unfortanately is no more valid: color 00 does nothing

      L*

      There are no rules, there are no thumbs..
      Reinvent the wheel, then learn The Wheel; may be one day you reinvent one of THE WHEELS.
Re: How to move perl process on Windows to another server
by MidLifeXis (Monsignor) on Jun 14, 2016 at 13:16 UTC

    Perhaps the Windows pushd command might be useful. It dynamically creates a drive mapping, chdirs to it, and releases it after use is complete. It might not plug directly into your current implementation, but might give you a path around this Windows message.

    --MidLifeXis

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://1165253]
Approved by Corion
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (6)
As of 2018-11-19 11:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My code is most likely broken because:
















    Results (211 votes). Check out past polls.

    Notices?