Fog Creek Software
Discussion Board




Unix question

If one were to determine the real, user, and system time of an executable script processed over a batch server, what would be the Unix commands to do this?

Ron
Monday, December 08, 2003

Look into the 'time' command.  It may be a shell built-in and/or an executable (/usr/bin/time).  The normal syntax is:

time program args...

Tim Evans
Monday, December 08, 2003

My, that question looks familiar.  It's actually from a job posting I saw earlier today:  http://portland.craigslist.org/sof/20556690.html

Some people here have expressed annoyance at being asked to help with homework.  I merely wonder how the OP expects to get past an interview with these folks.

Sam Livingston-Gray
Monday, December 08, 2003

Posting has been deleted.

BTW, who the F would ask such a specific question in an interview? What, are you not allowed to have a copy of "UNIX in a Nutshell" on your desk when you actually do the work?

Joe
http://www.joegrossberg.com

Joe Grossberg
Tuesday, December 09, 2003

I'll grant that this one was overly specific, but I do generally like the practice of asking candidates some sort of filtering question, just to see how they think (and whether they really understand what they say they know).

Sam Livingston-Gray
Tuesday, December 09, 2003

*  Recent Topics

*  Fog Creek Home