Contents

standardInput

The standard input for the receiver.

Declaration

var standardInput: Any? { get set }

Parameters

  • file:

    The standard input for the receiver, which can be either an Filehandle or an Pipe object.

Discussion

If file is an NSPipe object, launching the receiver automatically closes the read end of the pipe in the current task. Don’t create a handle for the pipe and pass that as the argument, or the read end of the pipe won’t be closed automatically.

If this method isn’t used, the standard input is inherited from the process that created the receiver. This method raises an NSInvalidArgumentException if the system has lauched the receiver.

See Also

Configuring