Question 1: I downloaded p7zip for mac os
There are no instructions as to how to install it. And I don't know much about how programs are installed in linux.
So I copied the file "7za" from the dmg to /usr/local/bin because some of my other command line programs were placed there.
If I run the command "7za" in Terminal, I get a proper help for that command. I have also been able to create and delete archives.
If I run the command "sh" and then run the command "7za" in Terminal, I get the same result as above.
However, when I use "do shell script 7za", I get the error: sh: 7za: command not found
Question 2: (This question is not a substitute to question 1 because I need to know why I get the error above) I am going to write scripts for creating/deleting/editing archives. I want to know if I can use the linux version of p7zip ( http://sourceforge.net/projects/p7zip/) in mac os since I am not sure if the mac os version will be in active development or not. Or do you want to recommend me some other free command line utility to compress/decompress files? These are my requirements for such utility: ability to create and open archives with password ability to open split archives
Thanks.
|