ls_stdinmode
Allows an application program to query and specify how stdin is assigned to remote tasks on a local application.ls_stdinmode gives an application program the ability to query and specify how stdin is assigned to remote tasks. It allows you to assign stdin to the local program only. You can change this setting at any time.
ls_stdinmode specifies whether standard input is read by the calling (local) application or its remote children.
This routine returns 0 on success; otherwise, it returns -1 and sets lserrno to indicate the error
Any program using this routine must call ls_initrex first.
Any program using this API must be setuid to root if LSF_AUTH is not defined in the lsf.conf file.
#include <lsf/lsf.h>
int ls_stdinmode(int remote)
Data Structures:
- Parameters:
remote If remote is non-zero, then the application will not read subsequent standard input, and the remote children will read standard input. This mode of operation is called the remote stdin mode. Remote stdin mode is the default. In remote stdin mode, standard input is read by the Network I/O Server (NIOS) and forwarded to the appropriate remote tasks. If remote is zero, then the application reads the subsequent standard input, and it is not forwarded to remote children. This mode of operation is called the local stdin mode. Define Statements:
- none
- none
Errors:
- Returns:
- int:0
Function was successful.int:-1
Function failed.Equivalent line commands:
- If the function fails, lserrno is set to indicate the error.
Files:
- none
- ${LSF_ENVDIR:-/etc}/lsf.conf
- See also:
- ls_setstdin
Date Modified: 16 Jul 2014
Terms of Use
Copyright © 1994-2014 International Business Machines Corp.
US Government Users Restricted Rights - Use, duplication or disclosure
restricted by GSA ADP Schedule Contract with IBM Corp.