에서 일을 내가 지금 파일는 어떻게,이 시스템 호출이다 펄
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
같은 stament
${tarexe} -pcvf $tarname $includepath --exclude $excludepath
doesnot 작업을 제외 doesnot 태그를 제외하여 일부 파일을 제외 할 명령 줄에서 실행할 때.
을하는 이유가있을 수 있습니다 동의 그래서 당신은'--exclude' ISN을 의미 일하는거야? –
--exclude 태그와 함께 perl에서 시스템 호출을 할 때 디렉토리를 제외하지 않습니다 (포함 된 경로를 tars합니다). – superstar
이것은 질문 한 것과 매우 유사합니다. http://stackoverflow.com/questions/2545955/ how-can-i-tar-multiple-files-in-perl – justintime