From: Kevin Gannon (kevin at domain gannons.net)
Date: Fri 04 May 2001 - 10:02:22 IST
At 11:22 AM 5/3/01 +0000, Conor Daly wrote:
>On Thu, May 03, 2001 at 11:34:09AM +0100 or thereabouts, Dave Neary wrote:
> > Conor Daly wrote:
> > >
> > > Running two boxes, one SunOS 5.5 the other SunOS 5.7 Is there an
> equivalent
> > > of lsof for these boxes? I'm trying to do a C-shell script to do a
> waitfor
> > > on a file and I can do it for a file that shows on a command-line
> using ps
> > > but I really need lsof instead.
> >
> > How about using lsof? It's available for Solaris
> > http://www.sunfreeware.com/ I think, and if not the source
> > (ftp://vic.cc.purdue.edu/pub/tools/unix/lsof/) should build on Solaris.
> >
> > If solaris's man supports -k you could try man -k open | grep files -
> > also it'll be in section 8 of the man pages, if that's a help. And it'll
> > likely be one of the executables in /usr/sbin :)
>
>Did that. Have to wait fo the sysadmin to build it though.
>
>Lars Hecking mentioned the proc tools collection which might be useful.
>Once I've identified a process using a file, I can use pwait on the pid to
>catch the exit.
fuser which comes with Solaris might also do the trick for you.
Regards,
Kevin
>Thanks,
>
>Conor.
>--
>Conor Daly
>Met Eireann, Glasnevin Hill, Dublin 9, Ireland
>Ph +353 1 8064217 Fax +353 1 8064275
>------------------------------------
> 11:20am up 23 days, 20:31, 11 users, load average: 1.00, 1.00, 1.00
>
>--
>Irish Linux Users' Group: ilug at domain linux.ie
>http://www.linux.ie/mailman/listinfo/ilug for (un)subscription information.
>List maintainer: listmaster at domain linux.ie
*********************************IMPORTANT NOTICE******************************
All e-mails for technical support must be cc'd to support at domain lancomms.ie. This
ensures that the call is logged with the support desk and the case is actively
tracked which speeds up the response you will receive. If you have an urgent
problem you _must_ contact the support desk directly on 01-4093030.
*****************************************************************************************
This archive was generated by hypermail 2.1.6 : Thu 06 Feb 2003 - 13:10:11 GMT