Converting an OpenVms .com to a UNIX ksh script

Does anyone know what a unix equivalent to the following OpenVms string would be?

                 variable1 = F$FAO\("!123AS",file\_create_time\)

I can't seem to find the proper syntax of anything I try.

Thx!

J

It's been awhile since I played with DCL so would you mind showing an example of $ dir/full and the output of the F$FAO command on the same file?

It may be that you will have to use something more than (ksh, csh, sh, bash... by the way, what are you using?) to get the info you want if you can get it at all. Perl may be an option.

You can check the man page on ls - you should find 'ls -l' gives you something of what you want

ls -l (the long list) prints its output as follows for the
POSIX locale:

 -rwxrwxrwx\+  1 smith  dev    10876  May 16 9:42 part2

Piping that to your favorite Maxicut 9000 (it slices, it dices, it makes julian fries) such as awk or cut (see man page on awk and cut) will then get the date and time.

$ ls -l myfile | awk '{print $6 $7 $8}'
May 16 9:42
$

If this doesn't help then post the output of dir/full and f$fao.