• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
do shell script "command not found"
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

do shell script "command not found"


  • Subject: do shell script "command not found"
  • From: Rounak Jain <email@hidden>
  • Date: Mon, 21 Sep 2009 07:59:57 +0530

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

  • Follow-Ups:
    • Re: do shell script "command not found"
      • From: Axel Luttgens <email@hidden>
    • Re: do shell script "command not found"
      • From: LuKreme <email@hidden>
  • Prev by Date: Strange Comment Problem
  • Next by Date: Re: Snow Leopard and (old) AppleScript applications
  • Previous by thread: Re: Strange Comment Problem
  • Next by thread: Re: do shell script "command not found"
  • Index(es):
    • Date
    • Thread