Azitech

Azimout's Linux weblog

a sample bash script

leave a comment »

i wrote this for someone who wanted to check if the event of closing the laptop’s lid was received by ubuntu, and i’m putting it here for future reference:

for i in {1..10}; do cat /proc/acpi/button/lid/LID/state; sleep 1; done

Advertisements

Written by azimout

19/11/2008 at 16:13

Posted in Tricks

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: