• 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: julifos <email@hidden>
  • Date: Fri, 18 Apr 2003 19:04:32 +0200

> 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

Ok, thanks.

I'll study the log-to-file method, but I'd prefer not launching the
Terminal. Perhaps... Perhaps I can create a simple background daemon script
to do this job for me, then monitorize the log (if I can create one with the
related shell command) or the process itself (eg, if I'm duplicating a file,
I can calculate the original size and compare it to the copy).

Thanks!

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.

References: 
 >Re: Log progress to AS from "do shell script" (From: Rob Morton <email@hidden>)

  • Prev by Date: Re: Responding to events
  • Next by Date: RE: Newbie Script Error - Help?
  • Previous by thread: Re: Log progress to AS from "do shell script"
  • Next by thread: Changes won't Stick in SysPrefs
  • Index(es):
    • Date
    • Thread