• 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: Detecting if Time Machine is busy backing up
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Detecting if Time Machine is busy backing up


  • Subject: Re: Detecting if Time Machine is busy backing up
  • From: "Mark J. Reed" <email@hidden>
  • Date: Tue, 11 Aug 2009 17:57:36 -0400

Random note: the 'u' option to ps isn't doing anything useful in this
instance, so may be left off. The 'a' shows all processes, not just
yours; 'x' includes ones with no controlling terminal; and 'c' limits
the displayed command to the executable basename, no path or arguments
(which keeps the grep from finding itself). The 'u' just adds more
columns of detail to the output being discarded. :)

On 8/11/09, Laine Lee <email@hidden> wrote:
> On 5/7/09 2:25 PM, "rob" <email@hidden> wrote:
>
>> I'm writing a script to eject my Time Machine backup drive. I'd like to
>> first determine whether Time Machine is in the middle of running a backup,
>> and let it finish before ejecting.
>>
>> Is there any info on scripting TM anywhere? If needed, maybe a way to
>> determine when the next backup is scheduled to take place?
>>  _______________________________________________
>
> The backup daemon process always quits within a few minutes of completing a
> Time Machine backup. I guess some buffer time is good. Sorry this is so
> late.
>
> if IsProcRunning("backupd") then
>     set app_is_up to true
> else
>     set app_is_up to false
> end if
> if app_is_up then
>     display alert "TM is Running."
> else
>     display alert "TM is not Running."
> end if
>
> on IsProcRunning(theProc)
>     try
>         do shell script "ps auxc | grep \"" & theProc & "\""
>         return true
>     on error
>         return false
>     end try
> end IsProcRunning
>
> --
> Laine Lee
>
>
>  _______________________________________________
> 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
>

--
Sent from my mobile device

Mark J. Reed <email@hidden>
 _______________________________________________
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

References: 
 >Re: Detecting if Time Machine is busy backing up (From: Laine Lee <email@hidden>)

  • Prev by Date: SOLVED: Getting Plain-Text onto the Clipboard
  • Next by Date: Re: SOLVED: Getting Plain-Text onto the Clipboard
  • Previous by thread: Re: Detecting if Time Machine is busy backing up
  • Next by thread: Re: get type of selected finder item
  • Index(es):
    • Date
    • Thread