On Mon, Jul 19, 2010 at 7:50 AM, newbie01 perl <newbie01.p...@gmail.com>wrote:
> Hi all, > > Does anyone know if someone had written a Perl stat script that mimics the > Linux' stat command? > > I want to be able to use the stat command on Solaris, unfortunately, I just > found out that that command is not available on Solaris and HP-UX so am > thinking a Perl script should be the way to go then instead so I can have > it > on any UNIX's flavours. > > Any suggestion will be very much appreciated. > > Thanks in advance. > I would say have a go at finding a module like this on cpan ( http://search.cpan.org) as I'm sure others have run into this problem before. I have worked with both Solaris and HP-UX for a combined total of nearly 10 years now and I have never really needed this. There are alternative HP-UX and Solaris commands that offer very similar functionality. I have to agree that stat is a nice solution but don't be tricked into the typical Windows user trap when they switch to *nix. You will have to learn to work with new tools and applications on the new platform this is just the way life works ;-) Also if you have install rights I'm quite sure that in a third party repository you will be able to find stat for HP-UX/Solaris as it is as I said before quite a handy tool.