How to determine if a file type for Progress rcode and xcode

Chris Kelleher

Administrator
Staff member
I assume that you already have the xcode utility which is a part of the
programmer's toolkit from progress and that you can write a shell script.

If you add the lines below to the end of your /etc/magic file, then you can
use the file command to determine if a file contains x-code.

try

man 1 file


# The next 5 lines should be added to the end of the /etc/magic file
# Reccomened by Grant Maizels on PEG
0 char 0x11 Progress X-Code
0 char 0x13 Progress V8 X-Code
0 long 0x56ced309 Progress R-Code
0 long 0x09d3ce56 Progress R-Code byte-swapped
 
Top