Execute external programs. More...
#include "config.h"#include <signal.h>#include <stdbool.h>#include <stdlib.h>#include <sys/types.h>#include <sys/wait.h>#include <unistd.h>#include "mutt/lib.h"#include "core/lib.h"#include "imap/lib.h"#include "protos.h"
Include dependency graph for system.c:Go to the source code of this file.
Functions | |
| int | mutt_system (const char *cmd) |
| Run an external command. | |
Execute external programs.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.
Definition in file system.c.
| int mutt_system | ( | const char * | cmd | ) |
Run an external command.
| cmd | Command and arguments |
| -1 | Error |
| >=0 | Success (command's return code) |
Fork and run an external command with arguments.
Definition at line 52 of file system.c.
Here is the call graph for this function:
Here is the caller graph for this function: