execcomman.3

来自「speech signal process tools」· 3 代码 · 共 67 行

3
67
字号
.\" Copyright (c) 1991 Entropic Research Laboratory, Inc.; All rights reserved.\" @(#)execcomman.3	1.2 06 May 1997 ERL.ds ]W (c) 1991 Entropic Research Laboratory, Inc..TH  EXEC_COMMAND 3\-Eu 06 May 1997.SH NAME.nfexec_command \- fork a shell to run a unix command.fi.SH SYNOPSIS.nf.ft B#include <stdio.h>voidexec_command(cmd)char *cmd;.ft.fi.SH DESCRIPTION.PP\fIexec_command\fP executes a command \fIcmd\fP by handing it to /bin/sh.  The shell is forked using \fIexecvp\fP(3). The string \fIcmd\fP should be a valid unix command given user's environment.  .SH EXAMPLES.PP.nf	char *command[200];	char *file;	 . . .	/* simple command */	sprintf(command, "plot3d %s", file);		exec_command(command);	 . . .	/* a command with a pipe */	sprintf(command "fft %s - | plotspec -");	exec_command(command);.SH ERRORS AND DIAGNOSTICS.PP.SH FUTURE CHANGES.PP.SH BUGS.PPNone known..SH REFERENCES.PP.SH "SEE ALSO".SH AUTHOR.PPprogram and man page by John Shore; this was based on the \fIolwm\fP function \fIexecCommand\fP.  

⌨️ 快捷键说明

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