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 "imap/lib.h"
#include "globals.h"
#include "protos.h"
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.