HP OpenVMS Systems

ask the wizard
Content starts here

Monitoring for process inactivity? (FTP)

» close window

The Question is:

I have a detached process that runs a command procedure.  This procedure does
 an FTP put to send data to another site.  Sometimes, if the remote system is
 rebooted during an FTP connection, the client never finishes.  The FTP client
 session will continue
Is there a way to set a timeout so that client FTP sessions in a detached
 process will stop after some inactive time.

The Answer is :

  Use current (or at least more recent) software, and the current ECO.
  This includes for OpenVMS, and the particular IP stack in use here.
  As for the specific question, write a monitor.  This could be as
  simple as a trivial loop written in DCL -- check for forward FTP
  progress via f$getjpi, sleep for (say) a minute, and loop back for
  another look.
  The FTSO software package -- available from HP, though not a standard
  product -- would be an alternative, as it provides for restarting FTP
  The OpenVMS Wizard will assume you are using COPY/FTP.

answer written or last revised on ( 7-JUN-2002 )

» close window