My geekscale has just hit red

Kasyx

Expert Member
Joined
Jun 6, 2006
Messages
2,565
Reaction score
1
Location
127.0.0.1
I have just been writing a bash script for one of our client's servers that basically checks whether postfix is running and, if not, alerts me and then starts it (their postfix has been dying whenever one of their programs needs to update). It isn't really a workable permanent fix, but they are getting a new server in a few weeks so it is more of a bandaid...

Anyhow,

First I needed to check whether Postfix was running using "ps aux". Now generally in my scripts I use the acronym PS for postfix (PF is taken), so I think on what to call my variable for the ps aux output, and I figure "Hey! I'll just call it "PS" for postfix and "aux" for whether it is running.

Thus:

Code:
PSaux=`ps aux | grep -i postfix | wc -l`

I called my variable containing the output of ps aux... "PSaux", although for a completely different reason!

You may note how unfunny that really is, yet for some reason I am still laughing.

Please kill me :(
 
Hardly funny at all, and merely an "orange" IMO. Where's the wildcards man?

Still, writing working shell-script is quite gratifying
 
i'm glad to say i don't get it and am thus disqualified as a geek
 
I'm busy with a linux router to "load share" 3 ADSL lines. Almost ready for testing.
 
Yea I don't really know what this thread is about ...
 
And yet, when things don't work, who do the ignorant masses run to?

Kasyx, having a g/f is no longer a sing of geekliness - the babes have discovered that a lack of fashion-sense doesn't mean the person isn't capable in other areas
:D
 
Oh please, it's so simple, I would have trouble even lowering to that level to explain it.:rolleyes:

[no REAL UNIX geek would ever make such a post.]:D ]

Okay I am confused. I make a post about a basic variable name that I happened to find humorous in the tech section, and for some reason I am trying to boast about my knowledge? How does that even work?

It's like someone posting a quote from the Bible in the PD section and then being repremanded for boasting about their knowledge of scripture?

I do so apologise if I have offended you, Skeptik, oh great and wise BOFH master, with my simple ps aux. I promise to give up my heathen ways of applying Occam's Razor in my scripting practices. In future I will be sure to overcomplicate every single command just so that I can impress everyone in the MyBB community with my "advanced" knowledge of shell scripting.

I am forever humbled by your brilliance.
 
Top
Sign up to the MyBroadband newsletter
X