Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
do shell script "command not found"
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

do shell script "command not found"



Question 1:
I downloaded p7zip for mac os
http://web.me.com/krmathis/applications/p7zip 9.04.dmg

from http://web.me.com/krmathis/

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.

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.