[LUGOS-PROG] Skripta
David Klasinc
bigwhale at lubica.net
Wed Feb 6 07:57:08 CET 2002
Quoting Pero <pero13667 at yahoo.com>:
> Hvala!
> Medtem se v Cju napisal deamon, ki dela isto.
> ce koga zanima je koda spodaj.
> > Se pravi nekaj takega:
> > #!/usr/bin/perl -w
> > open(IN,"</proc/acpi/event");
> > while (<IN>) {
> > system("/sbin/halt") if ($_ eq 'power 00000080 00000000\n');
> > }
>
> #include <stdio.h>
Clovek bi dejal, Razlika je ocitna! :)
--
David!
More information about the lugos-prog
mailing list