Slashdot is powered by your submissions, so send in your scoop

 



Forgot your password?
typodupeerror
What's the story with these ads on Slashdot? Check out our new blog post to find out. ×
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 was playing poker the other night... with Tarot cards. I got a full house and 4 people died. -- Steven Wright

Working...