Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #48483

Re: Using Python to automatically boot my computer at a specific time and play a podcast

References <6f5ad203-f692-414f-a895-2c474082e9bb@googlegroups.com>
Date 2013-06-17 07:55 +1000
Subject Re: Using Python to automatically boot my computer at a specific time and play a podcast
From Chris Angelico <rosuav@gmail.com>
Newsgroups comp.lang.python
Message-ID <mailman.3462.1371419733.3114.python-list@python.org> (permalink)

Show all headers | View raw


On Mon, Jun 17, 2013 at 5:06 AM, C. N. Desrosiers
<cndesrosiers@gmail.com> wrote:
> Hi,
>
> I'm planning to buy a Macbook Air and I want to use it as a sort of alarm.  I'd like to write a program that boots my computer at a specific time, loads iTunes, and starts playing a podcast.  Is this sort of thing possible in Python?


Python *on the system itself* cannot do this. However, if the BIOS
features aren't enough (eg if you want more flexibility), there's one
option to explore. See if your Macbook has Wake-On-LAN support; with
that, you could have a Python script *on a different machine* send a
magic packet that wakes your target. However, this isn't a Python
question, it's a systems administration one. (The very specific
question "How can I trigger wake-on-LAN from a Python program" would
be a Python question (obviously!), but that's only a tiny part of your
problem.)

ChrisA

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Using Python to automatically boot my computer at a specific time and play a podcast "C. N. Desrosiers" <cndesrosiers@gmail.com> - 2013-06-16 12:06 -0700
  Re: Using Python to automatically boot my computer at a specific time and play a podcast Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-06-16 19:22 +0000
    Re: Using Python to automatically boot my computer at a specific time and play a podcast Joel Goldstick <joel.goldstick@gmail.com> - 2013-06-16 15:34 -0400
  Re: Using Python to automatically boot my computer at a specific time and play a podcast Joel Goldstick <joel.goldstick@gmail.com> - 2013-06-16 15:25 -0400
  Re: Using Python to automatically boot my computer at a specific time and play a podcast Petite Abeille <petite.abeille@gmail.com> - 2013-06-16 21:44 +0200
  Re: Using Python to automatically boot my computer at a specific time and play a podcast Jason Swails <jason.swails@gmail.com> - 2013-06-16 15:49 -0400
  Re: Using Python to automatically boot my computer at a specific time and play a podcast Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2013-06-16 16:18 -0400
  Re: Using Python to automatically boot my computer at a specific time and play a podcast "C. N. Desrosiers" <cndesrosiers@gmail.com> - 2013-06-16 16:56 -0400
  Re: Using Python to automatically boot my computer at a specific time and play a podcast Chris Angelico <rosuav@gmail.com> - 2013-06-17 07:55 +1000
  Re: Using Python to automatically boot my computer at a specific time and play a podcast inq1ltd <inq1ltd@inqvista.com> - 2013-06-17 09:24 -0400
    Re: Using Python to automatically boot my computer at a specific time and play a podcast Irmen de Jong <irmen.NOSPAM@xs4all.nl> - 2013-06-17 19:03 +0200
  Re: Using Python to automatically boot my computer at a specific time and play a podcast "Lefavor, Matthew (GSFC-582.0)[MICROTEL LLC]" <matthew.lefavor@nasa.gov> - 2013-06-17 10:02 -0500
  Re: Using Python to automatically boot my computer at a specific time and play a podcast Giorgos Tzampanakis <giorgos.tzampanakis@gmail.com> - 2013-06-17 17:52 +0000

csiph-web