Changed to remove the company-specific-ness:
This script gets called as follows:
FooScript 'datafile.data' 'datafile.control' ' /source/directory/'
Yes, that extraneous whitespace is passed to it, but that doesn't really
matter. The script these people wrote then looks like this:
=========
#!/bin/ksh
PARAMS=${1}
DATA_FILE=`echo $PARAMS|cut -f9 -d" "|tr -d '"'`
CONTROL_FILE=`echo $PARAMS|cut -f10 -d" "|tr -d '"'`
DIR=`echo $PARAMS|cut -f11 -d" "|tr -d '"'`
=========
And they claimed this crap WORKED on one server and not on another, that
the problem is we have ssh configured wrong. (Later on it tries to sftp
those files to other servers.) The guy who wrote this gets PAID TO
CODE.
This script gets called as follows:
FooScript 'datafile.data' 'datafile.control' ' /source/directory/'
Yes, that extraneous whitespace is passed to it, but that doesn't really
matter. The script these people wrote then looks like this:
=========
#!/bin/ksh
PARAMS=${1}
DATA_FILE=`echo $PARAMS|cut -f9 -d" "|tr -d '"'`
CONTROL_FILE=`echo $PARAMS|cut -f10 -d" "|tr -d '"'`
DIR=`echo $PARAMS|cut -f11 -d" "|tr -d '"'`
=========
And they claimed this crap WORKED on one server and not on another, that
the problem is we have ssh configured wrong. (Later on it tries to sftp
those files to other servers.) The guy who wrote this gets PAID TO
CODE.
no subject
Date: 2007-12-18 09:55 pm (UTC)Heh
Just the other day, I get a call. Now, for a little background: Company A runs a business around a certain website. Company B builds said website for them. Company C (where I work) maintains the server rack that runs said website, both production and development servers. The three companies are located in different parts of Israel, the server rack is in NYC (company A does most of its business in USA/Canada and has a branch office in Manhattan).
Back to the call...
AAAAAH! THE WORLD IS OVER! DEVELOPMENT SERVER NO WORK! FIX NOW! FIVE PEOPLE CAN'T WRITE CODE!!!
...okay. Try to remote into server - it's not responding to RDP. Strange. Open up ESX console (it's all virtual machines) - the VM (Windows Server 2003) shows a grey screen (desktop background) and does not respond. Oh well, hard reboot. Loads fine, they resume working, then, 10 minutes later...
SERVER BREAK AGAIN! FIX! REINSTALL IIS! CAN'T WORK! FASTER FASTER FASTER!!!
Remote in. Check IIS. The website they're working on reports "Service unavailable". Hmmm. Event log shows w3wp.exe crashing multiple times, and then IIS disabling DefaultAppPool due to multiple crashes. Hmmm. Reboot IIS, reproduce the problem on their latest and greatest creation, check that the other sites are loading fine, report back to the devs that IIS seems to be fine, and their code seems to be... problematic.
NO! CODE IS FINE! NO BUGS HERE!! SAME CODE RUNNING FINE ON ANOTHER DEV SERVER!!! REINSTALL IIS NOW!!!
Grrr. Muck about IIS some more, take some crash dumps, call them back.
...oops. We found the bug. And by the way, same thing was happening on the other development server, thankyouverymuchforwastinganhour.
Gah.
no subject
Date: 2007-12-18 10:04 pm (UTC)no subject
Date: 2007-12-18 10:08 pm (UTC)no subject
Date: 2007-12-18 11:23 pm (UTC)no subject
Date: 2007-12-19 01:21 pm (UTC)no subject
Date: 2007-12-18 10:07 pm (UTC)no subject
Date: 2007-12-18 11:10 pm (UTC)Well, there's your problem!
no subject
Date: 2007-12-19 02:40 pm (UTC)To my enormous delight, the scripts (including the installer) for the climate model I am responsible for setting up are written in ksh. Not only that, but they only work properly with one particular version of ksh.
no subject
Date: 2007-12-18 11:37 pm (UTC)no subject
Date: 2007-12-19 03:18 am (UTC)That being said, I've written some pretty heinous abominations of perl/awk/bash... but I don't expect anyone else to ever have to use them.
no subject
Date: 2007-12-19 03:27 am (UTC)no subject
Date: 2007-12-19 07:55 am (UTC)no subject
Date: 2007-12-19 03:22 pm (UTC)It boggles my mind how tenaciously some admins will cling to shell scripting crap that should have been moved to Perl long, long, looooooong ago. Frankly I'm headed to Perl the minute I need so much as a conditional branch, the hell with shell scripting anything more complicated than a simple string of commands.
no subject
Date: 2007-12-19 01:22 pm (UTC)