这是系统调用,我现在在 perl 中进行 tar 文件
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
现在我想使用排除标签排除一些文件,它不排除文件
system("${tarexe} -pcvf $tarname $includepath --exclude $excludepath")
$excludepath -> ./input/myMockPacketName/my3
同样的说法
${tarexe} -pcvf $tarname $includepath --exclude $excludepath
当我在命令行中运行它时不起作用。