How do i make a "system call to tar files(along with exclude tag)" to work in Perl
- by superstar
This is the system call, i am making right now in perl to tar the files
system("${tarexe} -pcvf $tarname $includepath") which works fine.
$tarexe -> location of my tar.exe file
$tarname -> myMock.tar
$includepath -> ./input/myMockPacketName ./input/myPacket/my2/*.wav ./input/myPacket/my3 ./input/myPacket/in.html
Now i want to exclude some files using exclude tag, which doesnot exclude the files
system("${tarexe} -pcvf $tarname $includepath --exclude $excludepath")
$excludepath -> ./input/myMockPacketName/my3
The same stament
${tarexe} -pcvf $tarname $includepath --exclude $excludepath
works fine when i run it in the command line.