NAME | SYNOPSIS | API RESTRICTIONS | DESCRIPTION | ERROR MESSAGES | OK MESSAGES | ATTRIBUTES
#include <arpa/ftpd/systemFilesys.h>void systemCommand(FtpConn *conn, char *cmd, FILE *outstr);
The function or functions documented here may not be used safely in all application contexts with all APIs provided in the ChorusOS 5.0 product.
See API(5FEA) for details.
This function executes the command specified by cmd, and writes the output of that command to outstr. Error messages are directed to outstr, using printf(3STDC).
The message perror_reply(conn, 421, "control connection") indicates problems with outstr.
The message reply(226, "Transfer complete.") indicates the end of the command output.
See attributes(5) for descriptions of the following attributes:
ATTRIBUTE TYPE | ATTRIBUTE VALUE |
---|---|
Interface Stability | Evolving |
NAME | SYNOPSIS | API RESTRICTIONS | DESCRIPTION | ERROR MESSAGES | OK MESSAGES | ATTRIBUTES