E
Edward Wildgoose
I'm trying to track down a problem with my TWiki installation on windows
which is driving me nuts. I have traced it to the rcs command which is run,
but which does nothing via perl, but runs fine from the windows command
prompt.
I have a skeleton piece of code here which demonstrates the problem
use strict;
my $cmd =
'z:/twikiUnixSupportFiles/ci -x,v -q -l -m"none" -t-none -w"edward"
z:/twiki/data/Sandbox/TestTopic4.txt 2>&1';
my $rcsOutput = `$cmd`; # capture stderr (S.Knutson)
print $rcsOutput;
I suspected a shell quoting issue, so I changed the command to be 'echo
z:/twiki/etc etc' and then look at the output variable, but this still
executes fine if I copy and paste it into a windows command prompt...
If I create a deliberate error, eg mis-spell the file name then I do get
back an error from the command (so I am capturing stdout), however, when
running the correct command above I get no output back, but equally no rcs
checkin file is actually created....
Is this a "ci" problem? If so, why might it execute correctly from the cmd
prompt, but not from perl? Am I doing something strange in the code above?
This is all running on Perl 5.8 under Windows 2K
Thanks for any insight, getting bored of looking at this now...
Ed
which is driving me nuts. I have traced it to the rcs command which is run,
but which does nothing via perl, but runs fine from the windows command
prompt.
I have a skeleton piece of code here which demonstrates the problem
use strict;
my $cmd =
'z:/twikiUnixSupportFiles/ci -x,v -q -l -m"none" -t-none -w"edward"
z:/twiki/data/Sandbox/TestTopic4.txt 2>&1';
my $rcsOutput = `$cmd`; # capture stderr (S.Knutson)
print $rcsOutput;
I suspected a shell quoting issue, so I changed the command to be 'echo
z:/twiki/etc etc' and then look at the output variable, but this still
executes fine if I copy and paste it into a windows command prompt...
If I create a deliberate error, eg mis-spell the file name then I do get
back an error from the command (so I am capturing stdout), however, when
running the correct command above I get no output back, but equally no rcs
checkin file is actually created....
Is this a "ci" problem? If so, why might it execute correctly from the cmd
prompt, but not from perl? Am I doing something strange in the code above?
This is all running on Perl 5.8 under Windows 2K
Thanks for any insight, getting bored of looking at this now...
Ed