opcprof.c

ds2.1.1/lib/secure/cmds/admins/opcprof.c · 544 B

From the archive ds2.1.1.zip

Download the archive   « Back to the archive contents

#include <lib.h>
#include <dirs.h>


inherit LIB_DAEMON;

int
cmd(string arg)
{
    if(!archp(previous_object())) return 0;
    unguarded( (: opcprof("/log/opcprof.out") :) );
    write("Please review /log/opcprof.out.efun and "+
      "/log/opcprof.out.eoper to see the output of this command.");

    return 1;
}

int help()
{
    write( @EndText
Syntax: opcprof
Effect: Puts a list of efuns and eoperators in /log/opcprof.out.*
See man: opcprof
See also: fdinfo, netstat, mstatus, cache, callouts, dumpallobj,
EndText
    );
    return 1;
}

Site Stats

Snippets: 1791
Codebases: 571