Per estrarre i record della tabella 'table' in cui il campo 'time_field' contenga una data compresa tra ieri e oggi, usare la query seguente:
SELECT * FROM table WHERE time_field >= DATE_SUB(CURRENT_DATE(), INTERVAL 1 DAY)
SELECT * FROM table WHERE time_field >= DATE_SUB(CURRENT_DATE(), INTERVAL 1 DAY)
SELECT nome,cognome FROM utenti WHERE nome = 'Pippo'Il cui risultato sara':
set @N = 0;Il cui output sara':
Query OK, 0 rows affected (0.27 sec)
SELECT @N := @N +1 AS numero,nome,cognome FROM utenti WHERE nome = 'Pippo'
display_errors = 0
ini_set( "display_errors", 0);

apt-get install ethtool
root@dead:~# ethtool eth0 Settings for eth0: Supports Wake-on: g Wake-on: d Link detected: yes
Supports Wake-on: g
Wake-on: d
root@dead:~# ethtool -s eth0 wol g
Ora non resta che conoscere il MAC address della scheda di rete del PC che vogliamo risvegliare. Avete due possibilita':
root@dead:~# ethtool eth0
Settings for eth0:
Supports Wake-on: g
Wake-on: g
Link detected: yes
me@dead:~$ /sbin/ifconfig
eth0 Link encap:Ethernet HWaddr 00:0A:E6:F6:A3:F4
inet addr:192.168.1.80 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::20a:e6ff:fef6:a3f4/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:2218390 errors:0 dropped:0 overruns:0 frame:0
TX packets:3098440 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1624008578 (1.5 GiB) TX bytes:1368310661 (1.2 GiB)
Interrupt:10 Base address:0xd400
Otterremo qualcosa del genere:
me@mystery:~$ ping -c 1 dead
me@mystery:~$ /usr/sbin/arp dead
Address HWtype HWaddress Flags Mask Iface
dead ether 00:0A:E6:F6:A3:F4 C eth0
apt-get install wakeonlanetherwake deve essere eseguito da root, wakeonline puo' essere eseguito anche da utenti senza privilegi.
apt-get install etherwake
wakeonlan 00:0A:E6:F6:A3:F4
etherwake 00:0A:E6:F6:A3:F4


Scaricare i pacchetti gloobus e gloobus-preview dal sito: https://code.launchpad.net/gloobus/+download
cd /usr/local/src
tar xzvf /downloads/Gloobus-Preview-x.xx.tar.gz
tar xzvf /downloads/Gloobus-x.xxx.tar.gz
cd RELEASE
sudo ./install.sh
sudo apt-get install libsdl-gfx1.2-4
sudo apt-get install nautilus actions



killall nautilus