#define MAX_FILESIZE (1024 * 1024)
#define MAX_TOKENS 100
+static struct vtclog *vl;
+
/**********************************************************************
* Read a file into memory
*/
AZ(av[2]);
}
+/**********************************************************************
+ * Shell command execution
+ */
+
+static void
+cmd_shell(CMD_ARGS)
+{
+
+ (void)priv;
+ (void)cmd;
+
+ AN(av[1]);
+ AZ(av[2]);
+ vtc_dump(vl, 4, "shell", av[1]);
+ system(av[1]);
+}
/**********************************************************************
* Dump command arguments
{ "varnish", cmd_varnish },
{ "delay", cmd_delay },
{ "test", cmd_test },
+ { "shell", cmd_shell },
{ NULL, NULL }
};
setbuf(stdout, NULL);
setbuf(stderr, NULL);
+ vl = vtc_logopen("");
+ AN(vl);
while ((ch = getopt(argc, argv, "qv")) != -1) {
switch (ch) {
case 'q':