![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| S-248: HP OpenVMS SSH Using TCP/IP Services for OpenVMS | iBot | Security Advisories (RSS) | 0 | 04-02-2008 11:40 AM |
| Converting bash script to csh | Kweekwom | Shell Programming and Scripting | 4 | 07-11-2007 02:54 PM |
| unix script for converting a decimal to binary | softy | Shell Programming and Scripting | 3 | 10-19-2005 06:33 AM |
| Porting File from OPenVMS to AIX Unix | S.P.Prasad | High Level Programming | 1 | 03-01-2005 04:04 PM |
| OpenVMS IPC and TCP/IP Programming | S.P.Prasad | High Level Programming | 7 | 10-24-2004 09:28 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
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 |
| Forum Sponsor | ||
|
|
|
#2
|
|||
|
|||
|
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. |
|||
| Google The UNIX and Linux Forums |