system.3

来自「<B>Digital的Unix操作系统VAX 4.2源码</B>」· 3 代码 · 共 41 行

3
41
字号
.\" SCCSID: @(#)system.3	6.3	8/30/89.TH system 3.SH Namesystem \- issue a shell command .SH Syntax.nf.B system(\fIstring\fP).B char *\fIstring\fP;.fi.SH Description.NXR "system subroutine (standard C)".NXR "shell command" "issuing"If the.I stringargument is the NULL pointer (0) the.PN systemfunction tests the accessibility ofthe command interpreter.MS sh 1 .The function will return zero for failure to find the commandinterpreter, and positive if successful..PPIf the.I stringargument is non-NULL the.PN systemroutine causes the.I stringto be given to .MS sh 1as input as if the string had been typed as a commandat a terminal.The current process waits until the shell hascompleted, then returns the exit status in the form that.MS wait 2returns..SH DiagnosticsExit status 127 indicates the shell couldn't be executed..SH See Alsoexecve(2), wait(2), popen(3)

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?