Re: Log progress to AS from "do shell script"
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.