Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- CA-Clipper Tools . Book 4-Appendices - <b>nnetsndlog()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 NNETSNDLOG()
 Sends a message to the log file of a file server
------------------------------------------------------------------------------
 Syntax

     NNETSNDLOG(<cMessage>,[<lNoSender>],
        [<cServer>|<nConId>]) --> lSuccess

     Netware: 2.2 and 3.11

 Arguments

     <cMessage>  Designates the message that is written to the log file.
     The message can be up to 80 characters long (including information about
     the sender) and can contain only characters that have an ASCII value
     between 32 and 127.

     <lNoSender>  Designates an optional parameter that allows you to
     suppress the sender information (from ...) when designated as .T..  When
     this parameter is designated .F., the sender information is generated
     automatically.  The default value is . F..

     <cServer>  Designates the name of the file server for which the log
     file is  used.  Your workstation must be attached to <cServer>.

     <nConId>  Designates the connection ID of your workstation on
     <cServer>.

 Returns

     NNETSNDLOG() returns .T. if the message has been sent successfully.  If
     an error occurs, the function returns .F..

 Description

     NOVELL NET SEND LOG
     Under Netware 2.1x, each file server maintains a log file.  This file is
     in the directory SYS:SYSTEM under the name NET$LOG.MSG.  NNETSNDLOG()
     allows you to send a message of up to 80 characters to the log file.
     The message is saved in the form:

     month/day/year hours:minutes STN <lAttach>: <cMessage>

     If the parameter <lNoSender> is set to .F. or if no parameter is set,
     the message contains the sender information.  This information consist
     of the word "from", the name of the sender, and the connection ID.  By
     passing <lNoSender> with .T., the sender information can be suppressed.
     With the parameters <cServer> or <nConId>, the message can be sent to
     the log file of any attached file server.  The connection ID of a server
     is returned by NNETATTACH() or NNETLOGIN().

 Note

     .  Under Netware 3.x, NNETSNDLOG() returns .F. because file
        servers do not maintain a log file.

 Example

     Write an application start in the log file of the default server:

     IF NNETSNDLOG('Start of the accounting system')
     ? 'Message has been sent successfully!'
     ELSE
     ? 'Message could not be sent!'
     ENDIF

See Also: NNETSNDALL() NNETSNDCON() NNETSNDGRP() NNETSNDUSR()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson