Archivio per il tag:

Un po’ di buon umore: messaggi di errore UNIX e Linux

Comics, Open Source, Varie Nessun commento »

Che mettano meno il buon umore in chi se li ritrova davanti durante una sessione di lavoro, non è dato sapere. Così come non posso dire che sia certa al 100% la loro autenticità. Certo è che la collezione di messaggi di errore UNIX e Linux raccolti da Mike Tremell è davvero divertente. Ecco una mia personale top twenty:

  1. ERROR 1164 HOW IN THE HELL DID YOU GET HERE
  2. “Keyboard not present, press any key”
  3. Momentaraly writing while seeking..
    Constantly writing while seeking..
    Momentaraly writing while reading..
  4. Error: Error ocurred when attempting to print error message.
  5. ERROR 0: POWER NOT ON
  6. A funny symbol that I can’t read has just been input. Continue, and I’ll forget that it ever happened.
  7. Maybe you should try asking a human?
  8. Liar, Liar! Pants on Fire!
  9. User Error: An unknown error has occurred in an unidentified program while executing an unimplemented function at an undefined address. Correct error and resubmit.
  10. Good afternoon, gentelman, I’m a HAL 9000 Computer
  11. Error: Success
  12. Something Rotten in Denmark, Interp Stack Not ALigned
  13. YOU JUST TRIED TO FAKE-OUT MOTHER NATURE, AND SHE CAUGHT YOU! SUPER-VULCAN NOW HAS YOUR NAME ON HIS ENEMY LIST, AND YOU CAN BE CERTAIN THAT FUTURE ATTEMPTS TO RESOURCE LFN 0,3,OR 6 WILL RESULT IN YOUR BEING ABORTED, SPINDLED, MANGLED, FOLDED, PUNCHED, DELETED, AND DEALLOCATED.
  14. Only real wizzards know the spells to open the gate of paradize
  15. One of your faux pas seems to have wounded me deeply.. in fact, I’m barely conscious. Please fix it and try again.
  16. ?Ouch, That HURTS!
  17. You must be joking.
  18. This label is the target of a goto from outside of the block containing this label AND this block has an automatic variable with an initializer AND your window wasn’t wide enough to read this whole error message
  19. Not tonight, I’ve got a headache.
  20. I the most critical examiner of all have determined that there is an error on line 42.
Fonte: http://linuxshellaccount.blogspot.com/2008/07/little-linux-and-unix-humor-error.html

Alterare l’orario di accesso ad un file

Shell, Sistema, Tips & tricks Nessun commento »
Konsole catturato con KsnapshotI sistemi basati su UNIX e Linux conservano le informazioni relative all’ultima modifica e all’ultimo accesso di ogni file. Per visualizzare quest’ultima informazione si ricorre al comando:
$ls -lu
L’orario di accesso ad un file può essere però alterato mediante l’utilizzo del comando `touch`. Questo comando si usa di norma per cambiare data e ora di ultima modifica e di ultimo accesso ad un file:
$touch nome_file
Se il file nome_file non esiste viene creato come file vuoto. Per modificare soltanto data e ora di ultimo accesso ad un file si utilizza il parametro -a:
$touch -a nome_fileAnalogamente è possibile modificare data e ora dell’ultima modifica senza alterare le informazioni relative all’ultimo accesso:
$touch -m nome_file
In entrambi i casi è possibile indicare un orario specifico mediante l’opzione -t:
$touch -t orario_desiderato nome_file

Per quanto riguarda la sintassi da adottare per il parametro orario_desiderato, `man` offre una spiegazione non semplicissima ma abbastanza esaustiva:

L’argomento è un numero decimale della forma [SS]AA]MMGGoomm[.ss] con l’ovvio significato. Se SS non è specificato, l’anno SSAA viene assunto nell’intervallo 1969-2068. Se ss non è specificato, viene assunto 0; può essere specificato nell’intervallo 0-61 in modo da potersi riferire a secondi saltati («leap second»). L’orario risultante viene interpretato come un orario nel fuso specificato dalla variabile ambientale TZ. Si ha un errore se l’orario ottenuto è precedente al 1 gennaio 1970

A cena con… SCO OpenServer 5

Diario di bordo Nessun commento »

Il logo di SCO OpenServer 5L’esperienza di farmi una pizza in compagnia di un server UNIX non l’avevo ancora fatta. C’è sempre una prima volta per qualsiasi cosa, anche per le più miserabili! In effetti non sono del tutto solo, anche il mio socio condivide con me questa iniziazione non proprio entusiasmante. Stiamo effettuando un backup generale in vista del completo rifacimento della macchina di un cliente, che passa da uno SCO OpenServer 5 ad una Fedora Core 7, un balzo in avanti anni luce a mio modesto parere, nonostante io non sia un grande estimatore della sorellastra Open di Red Hat. Leggi il resto »