
#include "V.h"
/*
*   status = System(cmd,msg);
*
* Debug version of the system(cmd) library routine.
*/
d_system(cmd,msg)
	char* cmd;
	char* msg;
{	int   r;

	if (!msg) msg = "Command";
	V4 "%s\t%s\tCommand: \"%s\"",Vtime(),msg,cmd D;
	r = system(cmd);
	if (r || Vlvl>3)
		V2 "%s\t%s\tStatus=%d: \"%s\"",Vtime(),msg,r,cmd D;
	return r;
}
