• 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
Re: Log progress to AS from "do shell script"
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Log progress to AS from "do shell script"


  • Subject: Re: Log progress to AS from "do shell script"
  • From: Rob Morton <email@hidden>
  • Date: Fri, 18 Apr 2003 11:00:50 -0400

The easiest way that I have found to do this is along these lines...

set CompleteLogFile to "/tmp/log.txt"
do shell script ("touch " & CompleteLogFile)
ignoring application responses
tell application "Terminal" to do script ("tail -f " & CompleteLogFile)
end ignoring

do shell script {insert your commands} >> CompleteLogFile

While this is not clean in that it launches the terminal to monitor changes
in your log file, it is quick and served my purposes. Plus it will create a
complete log file of every step.

Rob Morton

on 4/17/03 2:43 PM, julifos at email@hidden wrote:

> Hi.
>
> Do you know any way to retrieve information about the progress of a "do
> shell script"?. Eg, I'm "cp"ying or "unzip"ping a very large file and this
> process will take some minutes.
>
> JJ
> _______________________________________________
> applescript-users mailing list | email@hidden
> Help/Unsubscribe/Archives:
> http://www.lists.apple.com/mailman/listinfo/applescript-users
> Do not post admin requests to the list. They will be ignored.
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Log progress to AS from "do shell script"
      • From: julifos <email@hidden>
References: 
 >Log progress to AS from "do shell script" (From: julifos <email@hidden>)

  • Prev by Date: Re: Newbie Script Error - Help?
  • Next by Date: Re: Pref files
  • Previous by thread: Re: Log progress to AS from "do shell script"
  • Next by thread: Re: Log progress to AS from "do shell script"
  • Index(es):
    • Date
    • Thread