|
I have an incredibly annoying problem that is completely stumping myself and some other perl users at work, that I'm really hoping somebody can help with. I'm using ActivePerl in windows, and the script in question is designed to run a build process automatically. The script runs on two separate PCs, alternating back and forth so that there's a constant stream of new builds. None of this is really relevant to the problem, but I thought some background would be nice. The problem is this: at one point in the script, the Windows "mkdir" command is called using a system() call. On ONE MACHINE ONLY, this fails, regardless of the location of the directory that is being created. The other machine executes the command just fine. The actual script creates a directory on another machine over the network, but I've tested it with local directories, and the same failure happens. Running the mkdir from a Windows command prompt works fine in both cases. The line of code in question is this: code:
code:
code:
We've tried re-installing Perl, using a different version of Perl, rechecking permissions, etc. Nothing seems to make any difference. Has anyone seen anything similar to this before, or have any ideas why a string that would be parsed normally on one machine, would be parsed completely differently on another machine running an identical Perl install?
|
# ¿ Dec 11, 2007 22:22 |
|
|
# ¿ May 2, 2024 03:54 |
|
Triple Tech posted:For starters, don't make shell calls if there are CPAN modules available to do the same thing. There should definitely be an ActiveState-approved module that creates file paths... Thanks. Right after I posted that, we found another Perl user that explained that we could just use mkdir on its own, without a shell call, and that seems to be working. Still no idea why it stopped working, though. The thing I forgot to mention in my original post is that this script has been running continuously for the past 3 months, but this is the first time it's failed like this. Very strange.
|
# ¿ Dec 11, 2007 22:42 |