freelanceprogrammers.org Forum Index » Perl
running system command
Joined: 13 May 2004
Posts: 3
running system command
Trying to run system commands from ActivePerl on Windows.
I tried adding the following lines to my perl script to run commands,
but does not work. How can I run the commands.
$ENV{`PATH`} = `Windowssystem32:data_vcs:Program FilesGNUWinCvs
1.2`;
$ENV{`CVSROOT`} = `:pserver:myname@...:/u`;
$ENV{`CVSHOME`} = `data_vcs`;
$result = exec `cvs rdiff -D 04/01/2004 -D 05/11/2004 documentation
2>&1 | grep Index | sed "s/Index: //g" | grep .pdf$ >
pdfresults.txt`;
I can run the command from a dos prompt, starting with cvs rdiff, and
it works great. How can I run it from a perl script. I am not sure if
$ENV{`CVSROOT`} or $ENV{`CVSHOME`} can be set this way.
All times are GMT
Page 1 of 1
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Freelace Website Designer - Customer web design and software building.
Booking Calendar - reservation calendar script
Land Surveying - total station instruments and equipments
China Wholesale - Electronics Products
Character Studio - Tutorials and Help
Booking Calendar - reservation calendar script
Land Surveying - total station instruments and equipments
China Wholesale - Electronics Products
Character Studio - Tutorials and Help







