G
Gancy
Hi All,
I have a perl script which reads parameters from text file and builds
the command line string for another perl script. and i intend to
execute the same with systm command.
parameter file would look Something like this
Parameter file:
description=1
log=0
outputdir=~gancy/testsource
scandir=pwd
perl script reads this and builds commnad line and calls the system
command.
if i print the string would look like
print $CmdLine;
perl BinaryParser.pl -d ~gancy/testsource pwd
system("$CmdLine");
but the problem is system command does not resolve ~ and pwd.
I have tried same in C, it works exactly as i want. Even i tried to
fork antoher process.
any suggestions
Thanks
Ganesh Tiwari
I have a perl script which reads parameters from text file and builds
the command line string for another perl script. and i intend to
execute the same with systm command.
parameter file would look Something like this
Parameter file:
description=1
log=0
outputdir=~gancy/testsource
scandir=pwd
perl script reads this and builds commnad line and calls the system
command.
if i print the string would look like
print $CmdLine;
perl BinaryParser.pl -d ~gancy/testsource pwd
system("$CmdLine");
but the problem is system command does not resolve ~ and pwd.
I have tried same in C, it works exactly as i want. Even i tried to
fork antoher process.
any suggestions
Thanks
Ganesh Tiwari