Почему & ldquo; shutdown p 01: 00 & rdquo; не работает?

3
задан 28 January 2011 в 05:13

1 ответ

Вы хотите -P, а не -p. Это чувствительно к регистру. Также поймите, что вам нужно быть пользователем root, чтобы отключиться таким образом.

На данный момент есть разные способы входа. Взято из man shutdown:

       TIME  may  have  different  formats, the most common is simply the word
   'now' which will bring the system down immediately.  Other  valid  for‐
   mats  are  +m,  where m is the number of minutes to wait until shutting
   down and hh:mm which specifies the time on the 24hr clock.

Пример:

$ sudo shutdown -P 20:30
[sudo] password for ward: 

Broadcast message from ward@sekhmet
(/dev/pts/0) at 20:14 ...

The system is going down for power off in 16 minutes!
0
ответ дан 28 January 2011 в 05:13

Другие вопросы по тегам:

Похожие вопросы: