Visara Master Console Center Scripting Guide Manuale Utente Pagina 106

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 262
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 105
Chapter 5 Script Commands
Scripting Guide 106
FILENO
Syntax
FILENO(%FileHandle) ==> %FileDescriptor
Description:
Obtains the system integer file descriptor from a file handle.
Action:
Obtains the system integer descriptor from the given file handle. Some
external system calls require the descriptor instead of a handle so this
is most useful in interfacing with shell scripts.
Parameters:
%FileHandle: Numeric expression. The file handle obtained from
FOPEN.
Returns:
Numeric value, as follows:
-1 = Error occurred (not a valid file handle)
Any other value = The system file descriptor.
Example:
%fd := FILENO(%handle)
IF ( %tmpfile == -1 )
LOG( LOG_FLT, STR(%handle) + " is not a valid file
handle!", 6)
ELSE
LOG( LOG_FLT, "Descriptor is " + STR(%fd), 6)
ENDIF
See Also:
FOPEN, FREAD, FWRITE, FCLOSE, MKSTEMP
Vedere la pagina 105
1 2 ... 101 102 103 104 105 106 107 108 109 110 111 ... 261 262

Commenti su questo manuale

Nessun commento