Technopedia Center
PMB University Brochure
Faculty of Engineering and Computer Science
S1 Informatics S1 Information Systems S1 Information Technology S1 Computer Engineering S1 Electrical Engineering S1 Civil Engineering

faculty of Economics and Business
S1 Management S1 Accountancy

Faculty of Letters and Educational Sciences
S1 English literature S1 English language education S1 Mathematics education S1 Sports Education
teknopedia

teknopedia

teknopedia

teknopedia

teknopedia

teknopedia
teknopedia
teknopedia
teknopedia
teknopedia
teknopedia
  • Registerasi
  • Brosur UTI
  • Kip Scholarship Information
  • Performance
  1. Weltenzyklopädie
  2. sleep (Unix) - Teknopedia
sleep (Unix) - Teknopedia

sleep (dormi) è un semplice comando dei sistemi operativi Unix e Unix-like, e più in generale dei sistemi POSIX, che consente di inserire delle pause negli shell script o comunque nelle combinazioni di comandi in riga di comando.

Sintassi

[modifica | modifica wikitesto]
sleep RITARDO[SUFFISSO]

RITARDO è semplicemente un numero floating point mentre SUFFISSO può essere

  • s per secondi
  • m per minuti
  • h per ore
  • d per giorni

Se il SUFFISSO è omesso il ritardo viene considerato in secondi

Esempi di utilizzo

[modifica | modifica wikitesto]

Riavvia il sistema tra 3 ore:

sleep 3h && /sbin/reboot

Utilizzo in un ciclo:

while test 1
do
  [...]
  sleep 5s
done

Collegamenti esterni

[modifica | modifica wikitesto]
  • (EN) sleep - delay for a specified amount of time, in Unix man pages. URL consultato il 24-08-2011 (archiviato dall'url originale il 12 settembre 2011).
V · D · M
Programmi Unix/Unix-like con interfaccia a riga di comando e comandi interni della shell unix
File systemcat · cd · chattr · chmod · chown · chgrp · cksum · cmp · cp · du · df · fdisk · file · fsck · fuser · gzip · ln · ls · lsattr · lsof · mkdir · mknod · mount · mv · pwd · rm · rmdir · split · tar · touch · umount · umask
Processiat · chroot · crontab · exit · kill · killall · nice · nohup · pgrep · pidof · pkill · ps · pstree · sleep · time · top · wait
Ambiente utentealias · env · export · finger · id · logname · mesg · newgrp · passwd · su · sudo · uname · uptime · w · wall · who · whoami · write
Elaborazione testoawk · comm · cut · diff · ed · ex · fmt · head · iconv · join · less · more · paste · sed · sort · tail · tr · uniq · vi · wc · xargs
Script di shellbasename · dirname · echo · expr · false · printf · test · true · unset
Retedig · nslookup · ifconfig · netstat · ping · rcp · rlogin · route · netcat · traceroute
Ricerchefind · grep · strings
Amministrazionedmesg · groupadd · groupdel · groupmod · mdadm · shutdown · useradd · userdel · usermod
Altribanner · bc · cal · clear · date · dd · lp · man · size · tee · tput · yes
  Portale Sicurezza informatica: accedi alle voci di Teknopedia che trattano di sicurezza informatica
Estratto da "https://it.wikipedia.org/w/index.php?title=Sleep_(Unix)&oldid=141780984"

  • Indonesia
  • English
  • Français
  • 日本語
  • Deutsch
  • Italiano
  • Español
  • Русский
  • فارسی
  • Polski
  • 中文
  • Nederlands
  • Português
  • العربية
Pusat Layanan

UNIVERSITAS TEKNOKRAT INDONESIA | ASEAN's Best Private University
Jl. ZA. Pagar Alam No.9 -11, Labuhan Ratu, Kec. Kedaton, Kota Bandar Lampung, Lampung 35132
Phone: (0721) 702022