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: 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.