Running is therapy

a blog about running, cats and Linux.
  • Home
  • Current Schedule
  • Personal Records
  • Upcoming Races

Admin

Published by Nathan Powell on March 13, 2006 08:43 pm under computers

My new post has me doing a lot more admining than I had been at the last job and I am tackling some neat stuff.

New things learned today:

1: Perl does not like it when you use shell pipes in backticks (ie. `cat foo | grep bar` won’t work.) You have to use ‘exec’… exec “cat foo | grep bar”;

2: sshd does not try to keep connections open by default (meaning, it will drop you if there is no data sent to the server after a certain amount of time). You can change this by editing /etc/ssh/sshd_config, and editing the lines ‘ClientAliveInterval 0′ and ‘ClientAliveCountMax 3′ ( make those whatever you like, I used 30 b/c I locked myself out of a server today testing /etc/hosts.deny ;)

It seems to be working.

Until next time!

2 Comments so far

  1. patrick on April 8th, 2006

    perl -e 'print `cat /etc/passwd | grep root`' seems to work for me. Maybe something odd re: usage?

  2. Nathan Powell on April 8th, 2006

    Ok, this is very strange. :)

    I went back to look at the script and the line I recall giving me problems was:

    `mysqldump $db | gzip > $db.$time.gz`;

    I put that in a script by itself, and the damn thing ran. Now I have no idea why that is happening. :) Must research further!

Posting your comment.

  • Search

  • Archives

    • August 2008 (7)
    • July 2008 (11)
    • June 2008 (14)
    • May 2008 (15)
    • April 2008 (10)
    • March 2008 (16)
    • February 2008 (17)
    • January 2008 (37)
    • December 2007 (21)
    • November 2007 (30)
    • October 2007 (29)
    • September 2007 (22)
    • August 2007 (30)
    • July 2007 (49)
    • June 2007 (32)
    • May 2007 (29)
    • April 2007 (38)
    • March 2007 (26)
    • February 2007 (25)
    • January 2007 (23)
    • December 2006 (10)
    • November 2006 (12)
    • October 2006 (9)
    • September 2006 (9)
    • August 2006 (5)
    • July 2006 (13)
    • June 2006 (9)
    • May 2006 (8)
    • April 2006 (11)
    • March 2006 (12)
    • February 2006 (12)
    • January 2006 (13)
    • December 2005 (15)
    • November 2005 (19)
    • October 2005 (8)
  • Categories

    • blather (60)
    • books (10)
    • computers (177)
    • cooking (1)
    • economics (3)
    • emacs (3)
    • football (1)
    • gaming (1)
    • hiking (5)
    • housekeeping (5)
    • lifehacking (7)
    • music (3)
    • paddling (2)
    • personal (1)
    • politics (21)
    • programming (67)
    • running (228)
    • smoking (40)
    • sysadmin (9)
    • tlc (10)
    • Uncategorized (1)
  • Pages

    • Current Schedule
    • Personal Records
    • Upcoming Races

Copyright © 2008 Running is therapy
WordPress Theme based on Light Theme