Vte.Terminal.ForkCommand Method
Starts the specified command under a newly-allocated control pseudo-terminal.

Syntax

public int ForkCommand (string command, string[] argv, string[] envv, string directory, bool lastlog, bool utmp, bool wtmp)

Parameters

command
the name of a binary to run
argv
the argument list to be passed to command
envv
a list of environment variables to be added to the environment before starting command
directory
the name of a directory the command should start in, or null
lastlog
true if the session should be logged to the lastlog
utmp
true if the session should be logged to the utmp/utmpx log
wtmp
true if the session should be logged to the wtmp/wtmpx log

Returns

the ID of the new process

Remarks

TERM is automatically set to reflect the terminal widget's emulation setting. If lastlog, utmp, or wtmp are true, logs the session to the specified system log files.

Requirements

Namespace: Vte
Assembly: vte-sharp (in vte-sharp.dll)