stat command not working on Solaris 9/SPARC

From: Robert K (unixrobert_at_yahoo.ca)
Date: 11/21/05

  • Next message: Robert K: "Storage devices"
    Date: Mon, 21 Nov 2005 10:54:50 -0500 (EST)
    To: sunmanagers@sunmanagers.org
    
    

    Hello Managers
       
      The stat command that is supposed to give the details of a file on my Solaris 9/SPARC is teasing me. I have the man pages installed and stat is linked to the PATH.
       
      bash-2.05# stat /etc/hosts
    /usr/local/bin/stat: ./st_dev16tst_ino16tst_modenX12+DX: No such file or directory
    /usr/local/bin/stat: +/st_nlink16tst_uid16tst_gidnDDD: No such file or directory
    /usr/local/bin/stat: +/st_rdev16tst_size16tst_atim.tv_secnX8+D4+D: No such file or directory
    /usr/local/bin/stat: +/st_atim.tv_nsec16tst_mtim.tv_sec16tst_mtim.tv_nsecnDDD: No such file or directory
    /usr/local/bin/stat: +/st_ctim.tv_sec16tst_ctim.tv_nsec16tst_blksizenDDD: No such file or directory
       
      For your reference
       
      bash-2.05# which stat
    /usr/local/bin/stat

    bash-2.05# echo $PATH
    /usr/local/bin:/usr/bin:/usr/sbin:/usr/local/ssl/bin:/usr/local/mysql/bin
       
      Your help is appreciated. Thanks in advance and I will summarize.
       
       
      Robert

       
      bash-2.05#

                    
    ---------------------------------
    Find your next car at Yahoo! Canada Autos
    _______________________________________________
    sunmanagers mailing list
    sunmanagers@sunmanagers.org
    http://www.sunmanagers.org/mailman/listinfo/sunmanagers


  • Next message: Robert K: "Storage devices"

    Relevant Pages

    • rm and unlink vs stat
      ... This is maybe not the most critical issue in the world but I find it interesting and am wondering if anyone has historical knowledge or an informed opinion: while debugging another problem I noticed that the Solaris and GNU/Linux 'rm' programs do something differently. ... Solaris rm, however, does a stat() of each named file and unlinks it only if stat says it exists. ... Not to mention the potential race condition between stat and unlink, although wouldn't be technically a bug since I don't believe POSIX makes any guarantees about what happens if another process or thread creates a file while rm is running. ... This analysis is all via truss, BTW - I have not read the source code. ...
      (comp.unix.solaris)
    • T3 on V880 wont "export" its RAID volume to host
      ... I have patched OS and T3, and I have successfully created a RAID5 volume: ... t3:/:vol stat ... Solaris 8 OS should automatically become aware of the new volume. ... I have included below some information about the V880 host and the T3 array. ...
      (SunManagers)
    • value too large for defined data type
      ... users have created files that cannot be shown in Solaris. ... IPM 2006 XT-EP.dot ... IPM 2006 XT-EP.dot cannot stat ...
      (comp.unix.solaris)
    • AW: TCP connections held in a close_wait stat on Solaris.
      ... TCP connections held in a close_wait stat on Solaris. ... Its not obvious what process its orginating from. ...
      (SunManagers)
    • Re: Managing Directory with MANY Files
      ... >> On a Solaris 8 system I have some directories that by necessity have ... The default behavior of ls is to sort the output. ... files, that can be a slowdown, even without the stat() happening. ...
      (comp.unix.solaris)