Catch up on stories from the past week (and beyond) at the Slashdot story archive

 



Forgot your password?
typodupeerror
DEAL: For $25 - Add A Second Phone Number To Your Smartphone for life! Use promo code SLASHDOT25. Also, Slashdot's Facebook page has a chat bot now. Message it for stories and more. Check out the new SourceForge HTML5 Internet speed test! ×
User Journal

Journal Punk Walrus's Journal: Should I start a journal here?

I am debating on whether or not to have a journal here. At first, I thought, "Why?" but then I realized that my own journal on my web page is always trying to decide whether to cater to techy or journal people.

If I use this site, I think I'll do all tech-related notes.

Here's a taste: I just took the RHCE 300 Rapid Track course, and while I didn't pass the exam, I learned a LOT of cool stuff. One of them was a script our teacher made where you can see who has ssh access on your dhcp leases:

#!/bin/sh
# Copyright 2003 Brad Smith

for i in $(perl -ne 'm/^lease\D+?(\d+\.\d+\.\d+\.\d+)/ ;
if ($1 != "") { print "$1\n";}' /var/lib/dhcp/dhcpd.leases) ;
do echo "Who's on $i?" ;
if ping -c1 -W1 $i &>/dev/null ;
then ssh $i w ;
else echo "Nobody there!";
fi ;
done

Arg... this journal format doesn't lend to cut and pasting code very well...

This discussion has been archived. No new comments can be posted.

Should I start a journal here?

Comments Filter:

I think there's a world market for about five computers. -- attr. Thomas J. Watson (Chairman of the Board, IBM), 1943

Working...