How do i make a "system call to tar files(along with exclude tag)" to work in Perl
Posted
by superstar
on Stack Overflow
See other posts from Stack Overflow
or by superstar
Published on 2010-04-04T00:15:06Z
Indexed on
2010/04/04
0:33 UTC
Read the original article
Hit count: 543
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.
© Stack Overflow or respective owner