The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
Google UNIX.COM


Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here.

More UNIX and Linux Forum Topics You Might Find Helpful
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

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 05-23-2002
Registered User
 

Join Date: May 2002
Location: Ohio
Posts: 2
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
Reply With Quote
Forum Sponsor
  #2  
Old 05-23-2002
thehoghunter
Guest
 

Posts: n/a
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.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 12:18 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0