[plug] Where is it - AT

Craig Ringer craig at postnewspapers.com.au
Wed Jul 9 15:23:45 WST 2003


>>which at
>>or
>>ls -l `which at`
>>
>>being a handy alternative.

> (True in general...) Except that `at` is no longer in his PATH.

Good point. I was thinking in more general terms, and hadn't considered 
'at has been moved accidentally but still exists'.

> PS. If `at` has been exceedingly displaced, e.g. its parent directory
> wound up in lost+found, I would try `locate /at | grep '/at$'` (although
> it would be more thorough to try `find / -name at`).

I was working on a machine recently that lacked a 'which' command, and 
kept commands in REALLY STRANGE places. So I tried
	locate cmdname | egrep '/cmdname$'
.... but got the horrifying error:

locate: not found
egrep: not found

It was egrep that impressed me. This was OpenServer 5.0.2 and must've 
been a basic or cut down install to omit egrep. Locate is apparently a 
Linux and BSD only thing, or at least only recent on other UNIXes. *sigh*.

Craig Ringer




More information about the plug mailing list