RunProgram tar with lots of arguments
Posted: Tue Mar 03, 2015 10:39 pm
hi all,
i need to extract a single (README) file form a tar.gz archive. the model command is:
this works fine. i am now trying to convert this into PB's RunProgram:
which results in an error:
file permissions are at 755, and the tar.gz is owned by the user. Any ideas/suggestions?
i need to extract a single (README) file form a tar.gz archive. the model command is:
Code: Select all
tar --extract --file="/home/user/packs/testpack.tar.gz" -C /tmp/packs/ "testpack/README"Code: Select all
RunProgram("tar", "--extract --file=" + #DQUOTE$ + source + #DQUOTE$ + " -C /tmp/packs/ " + #DQUOTE$ + tarpack + "/" + filename + #DQUOTE$, "/tmp", #PB_Program_Wait)Code: Select all
tar: "/home/user/packs/testpack.tar.gz": Cannot open: No such file or directory
tar: Error is not recoverable: exiting now