[an error occurred while processing this directive]

HP OpenVMS Systems

ask the wizard
Content starts here

LOGIN.COM and UCX$FTPSERVER.LOG?

» close window

The Question is:

 
When I look at the UCX$FTPSERVER.LOG file created when I connect to the
ALPHA I see what appears to be the output from my normal login script.  Why
would this be happening?
 
Also, can the creation of the FTPSERVER.LOG file be suppressed?
 
Thanks.
 


The Answer is :

    If you "login", your LOGIN.COM gets executed. This applies to
    interactive, batch, network or any other login. You should write your
    LOGIN.COM so that it detects the type of process and only executes
    appropriate commands. For example, the command "SET TERMINAL/INQUIRE"
    or any command which reads input from a terminal should not be executed
    for batch or network jobs. Use the lexical function F$MODE() to determine
    the job type. It returns the string "INTERACTIVE", "BATCH", "NETWORK" or
    "OTHER" depending on the mode of the job. See recent examples of
    LOGIN.COM procedures posted by the wizard.
 
    Creation of the log file can be suppressed by your system manager on a
    system wide basis, but this would not normally be recommended as it
    is very useful in diagnosing problems (most often caused by
    inappropriate commands being executed in LOGIN.COM). If you wish to
    prevent the creation of log files in your own directory, you can do so
    by creating a file called UCX$FTPSERVER.LOG;32767. Since the highest
    possible version number is 32767, the FTPSERVER process cannot create a
    file with a higher version, and the attempt fails silently without
    affecting the FTP session. The same technique can be used to prevent
    the creation of any log file for any network server process.
 
 

answer written or last revised on ( 24-APR-1999 )

» close window