jhs3 has asked for the wisdom of the Perl Monks concerning the following question:
...
Such a simple problem I have. It is so simple, I will explain at length.
OS is WinNT 4.0. Dinosaur! Can't do anything about that!
This script I am having problems with 'used' to work. It has been working for 7 years, used hundreds of times. Recently, (thanks to Misters Sarbane/Oxley) things have changed in accessing the system.
The script normally runs from Unix, from a shell script, where 'remsh' is executed on the NT server. The script is run as the 'root' user - which I log into using 'sudo su -'.
An example of the command that is run:
'kirk' is the NT server.# remsh kirk -n "d:\perl\bin\perl d:\qad\srcmgr\mv_prog.pl -t -f d:\qa +d\srcmgr\prog.lst" Can't open \\kirk\QAD\TIMES2\LOG\comp_one.lst: Invalid argument
This is the result I would expect to get from running on Unix.D:\QAD\srcmgr>d:\perl\bin\perl d:\qad\srcmgr\mv_prog.pl -t -f d:\qad\s +rcmgr\prog.lst Processing file MGURMTP.P \\kirk\QAD\MODS\US\SRC\MGURMTP.P is readable. 1 file(s) copied.
OK. The script fails when I run it from Unix, but runs on the NT server. I try another thing - I delete the 'comp_one.lst' file and run it in the command window again:open(COMPLIST, "> " . $CompFiles) || die "Can't open $CompFiles: $!\n" +;
</code>D:\QAD\srcmgr>d:\perl\bin\perl d:\qad\srcmgr\mv_prog.pl -t -f d:\qad\s +rcmgr\prog.lst Can't open \\kirk\QAD\TIMES2\LOG\comp_one.lst: Invalid argument
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Open: Invalid Argument
by FunkyMonk (Bishop) on Jun 01, 2007 at 15:55 UTC | |
by cdarke (Prior) on Jun 01, 2007 at 16:10 UTC | |
|
Re: Open: Invalid Argument
by blazar (Canon) on Jun 01, 2007 at 15:55 UTC | |
|
Re: Open: Invalid Argument
by jhs3 (Novice) on Jun 01, 2007 at 19:21 UTC |