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


Forgot your password?
Check out the new SourceForge HTML5 internet speed test! No Flash necessary and runs on all devices. Also, Slashdot's Facebook page has a chat bot now. Message it for stories and more. ×
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:

# 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 ;

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: