We had a sysadmin that spent most of his time on 2 tasks, 1 was an internal maintenance task, and the other was email.
When he quit, those tasks fell to me, the sole programmer at the time. THe internal maintenance task, I did it for about a week before I decided that it needed to go away. So I wrote scripts and an interface for it, tested it for a while, and turned it over to customer service, which was the department that was requesting it anyhow. They were ecstatic because it meant they no longer had to request it and wait... They could just do it instantly. Much better for everyone.
The email was easier. We just moved to Google Apps.
The remaining tasks that the sysadmin did were now just a tiny fraction of my time.
As the company grew, those tasks increased until management realized they needed an actual sysadmin again, and they hired one.
A programmer will automate some tedious repetitive task, and then boast about the automation to his programmer peers and managers. The programmer will then be rewarded with more tedious tasks to deal with.
A sysadmin automates a boring task, and tells nobody. The only way anyone can request work done is to file a ticket in the ticket tracker. The work gets done, but nobody besides the sysadmin knows how it was done. If the sysadmin is good at his job, he is rarely seen at his desk, and often seen playing foosball.
If you can replace someone's job with the proverbial small shell script (or apt-get install $OPENSOURCEPROJECT), sooner or later that is what will happen.
I was at a party with a dear friend of mine, Pat Davis, who is an expert PCB layout engineer at Millennium Design (www.millenniumdes.com). When I was healthier, I used to do some occasional PCB and automation work for his company. While the two of us were talking with another mutual friend, I said, "Working with me can be, ummm, interesting. I have zero patience for poorly built machines and programs." And then I asked Pat for affirmation from his own experience working with me.
Pat replied, "Sure, you can be tough to work with, but there is a real upside to it; if I never want to do something manually again, I just make Jon do it three times. He'll lose his patience and automate the living snot out of it."
As much as I hate to admit it, his answer was completely truthful.