Coastal & Marine Geology InfoBank

Home FACS Activities Atlas Geology School Related Sites More

USGS InfoBank program -- fullpath

Skip navigational links
Loading
InfoBank Programs: by Name   by Topic  
Expanded Description
Topic Description
Name
fullpath
Synopsis
/infobank/programs/time/events/fullpath.for
Description
  Subroutine to convert relative pathname to absolute pathname.

       
AUTHOR
  Clint Steele      6/14/2007


    
Reads
      read (37, '(i)') WordCount
      read (36, '(q,a)') NameLength, InputFileName(1:NameLength)
Writes
Opens
      open (unit = 37,
     *      access = 'sequential',
     *      form = 'formatted',
     *      status = 'unknown',
     *      name = '/infobank/tmp/events.wc.temp')
      open (unit = 36,
     *      access = 'sequential',
     *      form = 'formatted',
     *      status = 'unknown',
     *      name = '/infobank/tmp/events.fullpath.temp')
Calls
      call stringlen (LongID, IDLength)
          call system ('/bin/ls '//
     *        '/infobank/'//ShortID(1:1)//'/'//
     *        ShortID(1:IDLength)//'/*/'//
     *        InputFileName(1:NameLength)//' > 
     *        '/infobank/tmp/events.fullpath.temp')
          call system ('/bin/ls '//
     *        '/infobank/'//ShortID(1:1)//'/'//
     *        ShortID(1:IDLength)//'/'//
     *        InputFileName(1:NameLength)//' > 
     *        '/infobank/tmp/events.fullpath.temp')
          call system ('/bin/ls '//
     *        '/infobank/'//ShortID(1:1)//'/'//
     *        ShortID(1:IDLength)//'/'//
     *        InputFileName(Slash(SlashCount-1)+1:NameLength)//' > 
     *        '/infobank/tmp/events.fullpath.temp')
      call system ('/bin/wc /infobank/tmp/events.fullpath.temp > 
     *             '/infobank/tmp/events.wc.temp')
          call system ('/bin/cat /infobank/tmp/events.fullpath.temp')
      call system ('/bin/rm /infobank/tmp/events.fullpath.temp')

Skip footer navigational links

Coastal and Marine Science Centers:  Pacific   St. Petersburg   Woods Hole  
InfoBank   Coastal and Marine Geology Program   Geologic Information   Ask-A-Geologist   USGS Disclaimer  


Accessibility FOIA Privacy Policies and Notices

Take Pride in America logo USA.gov logo U.S. Department of the Interior | U.S. Geological Survey
URL: http://walrus.wr.usgs.gov/infobank/programs/time/events/fullpath.doc.html
Page Contact Information: InfoBank staff
Page Last Modified: Mon Sep 16 03:38:53 PDT 2013  (chd)