PxPlus User Forum

Twitter Twitter Twitter

Author Topic: Extended File Info from open Directory  (Read 1231 times)

James Zukowski

  • Diamond Member
  • *****
  • Posts: 296
    • View Profile
Extended File Info from open Directory
« on: October 02, 2019, 10:48:49 AM »
I recall seeing (somewhere) a Directory being opened with certain options, and the READ providing more than simply the name. Does anyone know what that might be?
We're currently using RedHat Linux 5.

Thanks!
James Zukowski
Sr. Developer - J&E

BRAND>SAFWAY
Brand Industrial Services

michaelgreer

  • Diamond Member
  • *****
  • Posts: 129
    • View Profile
Re: Extended File Info from open Directory
« Reply #1 on: October 02, 2019, 10:52:49 AM »
James,

On Linux I frequently do this instead of just opening the directory:

open(hfn)"<ls -l /path/to/dir"

It is then simple to parse out the response.

Michael

Mike King

  • Diamond Member
  • *****
  • Posts: 3810
  • Mike King
    • View Profile
    • BBSysco Consulting
Re: Extended File Info from open Directory
« Reply #2 on: October 02, 2019, 10:56:54 AM »
James

Add a OPT="+INFO" to get additional information when reading a directory.

For details please see the following documentation.
Mike King
President - BBSysco Consulting
eMail: mike.king@bbsysco.com