Sponsored Content
Full Discussion: Computer wake commands
Top Forums UNIX for Dummies Questions & Answers Computer wake commands Post 302961547 by scrutinizerix on Tuesday 1st of December 2015 04:37:33 AM
Old 12-01-2015
Computer wake commands

I'm a OS X user (MacBook Pro, OS X Lion) and I need it to wake up on Mondays, Wednesdays, Thursdays and Saturdays at 9:00 AM
on the rest of the days of the week at 7:00

I issue the following commands:

Code:
sudo pmset repeat wake MWRS 09:00:00

for the former

Code:
sudo pmset repeat wake TFU 07:00:00

for the latter


None of these works. Mac simply refuses to wake up.

schedule wake option seems to work but it's not what I need.

What I'm doing wrong?
 

8 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Wake on Lan script

Im old to Unix but new to scripting I have a MacBook running osx that I want to use as an nfs client. The server will be a linux box with a wake on lan card. Here's the idea. Run a cron command on the mac every minute that checks if I am on my home wireless network (the linux box is wired to... (0 Replies)
Discussion started by: anon0mus
0 Replies

2. Shell Programming and Scripting

Wake on LAN script

m old to Unix but new to scripting I have a MacBook running osx that I want to use as an nfs client. The server will be a linux box with a wake on lan card. Here's the idea. Run a cron command on the mac every minute that checks if I am on my home wireless network (the linux box is wired to... (6 Replies)
Discussion started by: anon0mus
6 Replies

3. Programming

how to wake up a thread that blocking at epoll_wait?

I have two threads: one maintains a thread-safe message queue (handle this queue at the beginning of every loop) and deals with tcp connections, the other one posts message to the former one. the problem is, while the former one was blocking at epoll_wait, it's not sure that how long until the... (0 Replies)
Discussion started by: cometeor
0 Replies

4. Linux

rhel 4 linux WOL wake on lan

Hi guys, Two boxes on the same .23 subnet 192.168.1.x The box I wanted to shutdown and restart remotely went down, but didn't come back up when I used ether-wake 00:11:22:etc:etc: The sleeper has two nics, but only one with cable. I configured both nics to wake on lan using the g option. The... (0 Replies)
Discussion started by: Bloke
0 Replies

5. UNIX for Dummies Questions & Answers

Linux Device Driver: how can an ISR wake up a user-thread?

Hi all, Is it possible to do the following in Linux (kernel 2.6.x): - A user-space thread goes to "sleep". Using any call/mechanism - On a hardware generated interrupt, the Interrupt handler (ISR) "wakes" the sleeping user-thread. I have seen wait_event() and wake_up() but it appears... (1 Reply)
Discussion started by: agaurav
1 Replies

6. UNIX for Dummies Questions & Answers

Using another computer to issue commands on your own

Hey guys, I'm somewhat new to Unix and the whole terminal stuff. What I need to do is run a program that runs in the terminal window (ie I type in the program name in the window and it runs) but I have to run it from my own computer as the data is on my disk. I can connect remotely to the... (1 Reply)
Discussion started by: rsingh
1 Replies

7. Programming

How to sleep and wake a thread???

Hi guys, I am creating two posix threads. I have some queries, hopefully you will help me out with them 1) How can I put a thread to indefinite sleep, for indefinite time period. I am familiar with this sleep(5); for 5 second, how can I make it indefinite?? 2) How can one thread wake another... (11 Replies)
Discussion started by: gabam
11 Replies

8. UNIX for Dummies Questions & Answers

Trouble Configuring Wake On Lan

As the title implies I'm having trouble setting up Wake-On-LAN with my Debian box. Here is the output from ethtool and my /etc/network/interfaces: # cat /etc/network/interfaces # /etc/network/interfaces - configuration file for ifup(8), ifdown(8) # The loopback interface auto lo iface lo... (2 Replies)
Discussion started by: Azrael
2 Replies
shevek::closure(3)					     Library Functions Manual						shevek::closure(3)

NAME
shevek::closure - Block and resume without blocking the main loop. SYNOPSIS
#include <closure.hh> Inherits shevek::refbase. Public Member Functions bool empty () const Check if the closure is empty. void set_function (sigc::slot0< void > func, bool run=true, sigc::slot0< void > cb=sigc::slot0< void >()) Set running function on an empty closure. ~closure () Destructor. void wake () Continue running the closure. Static Public Member Functions static Glib::RefPtr< closure > create () Create a new closure. static void block () Sleep, returning control to the caller until awoken. Detailed Description Block and resume without blocking the main loop. Closures allow blocking and resuming the main loop. They are implemented with threads, which means that they don't work well with multi- threaded programs. If a function wants to be able to block using a closure, it must be called using closure(). It (or any function it calls) can then suspend by calling closure::block(). It can be awoken again by calling closure::wake() on the closure object. Member Function Documentation static void shevek::closure::block () [static] Sleep, returning control to the caller until awoken. This function puts the current closure to sleep. It will continue to run when awoken with wake(). It can also be destroyed. This function uses a global variable to know which is the current closure, so it can be called without an object, as closure::block (); . static Glib::RefPtr<closure> shevek::closure::create () [inline, static] Create a new closure. Create a new closure. It will be empty initially. bool shevek::closure::empty () const [inline] Check if the closure is empty. Check if the closure is empty. If it is, set_function() can be called. void shevek::closure::set_function (sigc::slot0< void >func, boolrun = true, sigc::slot0< void >cb = sigc::slot0< void >()) Set running function on an empty closure. Set running function. The closure must be empty when this is called. When the function exits, the closure returns to the empty state, and the callback is called, if given. void shevek::closure::wake () Continue running the closure. Wake a closure. It is an error to wake a closure which isn't blocking (in particular also the currently running closure). Author Generated automatically by Doxygen for libshevek from the source code. libshevek Fri May 11 2012 shevek::closure(3)
All times are GMT -4. The time now is 05:43 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy