?

Log in

No account? Create an account

Previous Web | Next Web

120

Well, the interview went.... not sure whether it was good or passable...

I was ok on the UNIX security stuff they asked... what would you check on a default distribution install to make sure an install is secure, that kinda of thing... what services would you kill, why can NIS be bad, fairly easy stuff...

Then the annoying part.... UNIX commands...

1st was, "if I had a directory tree and I wanted to know the size of each directory, sorted numerically, how would I do it..?" Damnit if all I could remember was

du | sort

I couldn't even remember how sort sorts things; that it's not a numerical sort by default, that you need to tack on -n to get that.... grrrrr..... so I floundered and made up something about using perl to mess with the first field of du's output.... which is doable, obviously... but i still can't remember syntax... and it doesn't look great :-(

Then there was "if i had a directory on a cdrom which contained 10,000 images with the filename format nnnn.jpg;1 (source is VMS apparently), how would you get them happilly onto the UNIX box?" well firstly I neglected to remember that the ; character is the tie-commands-together-on-the-same-line character... so the filename would be treated as nnnn.jpg[new command starts here]1.... and obviously "1" isn't a command... I *did* remember the basic structure of what i was trying to do though....

for $file in `ls -b` do
cp $file `awk -F; '{ print $1 }'`

which looks pretty good... except I orignally was for some reason thinking that grep did that job, not awk... grrr again... and I should've double-quoted the $file in the cp command so as to render it as not being shell-interpretted... and I should probably have done the same for that one after the -F in the awk bit too....

double-grrr....

My excuse is that I'm not getting much UNIX exposure recently... my box is still awaiting a motherboard transplant...

I *hope* that they'll put it down to nerves and not having the greatest memory on the planet... I did mention that I'd immediately be into the man pages if I did happen to get it wrong, so they know I know where to look for help... which is no bad thing...

But I missed my Unix In A Nutshell book today :-( That book is *way* too useful...

I did ok on the last part of the interview though, about supporting users in their programming... and I managed to raise a few smiles from them in places where I was hoping to, so that's always good... managing to display a sense of humour in an interview I think is a fairly good thing... cause if you can still manage to be cheery enough to make funny when you're in that kind of stress, you'll probably manage to be fairly easy going even if you're working on three projects that landed on your desk yesterday and were due the day before that..!

I *may* have fluffed it slightly because I did mention that i'm *learning* fortran atm, and since the job is gonna be using fortran a lot, that could be a bit of a concern, but then again, there was no requirement on the job description to know it, so i don't think they can hold it against me....

I'm actually starting to enjoy the fortran too... apart from the irritation of having to remember to put in (*,*) after read and write to do the most basic form of I/O, it's quite nice :-)

To say it's so old and all these supposedly "modern" languages are supposed to be so whizzy and easy, I think I prefer fortran to Java right now...... but then Java annoys the hell out of me.... how can it be so goddamn annoying to simply write "Hello World!"???

System.out.println("Hello world!");

so *annoying*...
I mean:

write (*,*) "Hello world!"

It makes *sense*... it's almost a 4th-generation-language (4GL), unlike Java which is supposedly high-end 3GL....

pisses me off it does!

Oh well, mini-Java-sux-rant over... I'm gonna get munchies!

Comments

( 2 Mobwebs — Spin A Cobweb )
lnr
14th Jan, 2003 11:17 (UTC)
*hugs* well, it doens't sound like it was a disaster anyway. I was very much talking about having to look things up and read the manual when interviewing for my current job and it seemed to work! Hope you hear soon anyway, I know how horrid the waiting is.
littlemissgoth
14th Jan, 2003 12:09 (UTC)
thanx hun <hugs>

i hope so too...

there's been a fluff up with references for a few of the candidates (me included), like the referees didn't get contacted due to xmas.... so I'm now chasing mine up... the decision will happen after those are provided.

I'm still annoyed that i'd forgotten this was only 18.5 hours/week...... :-(
( 2 Mobwebs — Spin A Cobweb )