no way to compare when less than two revisions

Differences

This shows you the differences between two versions of the page.


sdk:scripts:syslog [2015/05/05 15:04] (current) – created - external edit 127.0.0.1
Line 1: Line 1:
 +====== SDK Script syslog.are ======
 +<code c syslog.are>
 +/* DESC: Throw a simple syslog message.
 + * Copyright (C) 2012 NetModule AG, Switzerland
 + */
 +
 +void usage() {
 +    printf("usage: syslog.are <msg>\n");
 +    exit(1);
 +}
 +
 +if (argc < 1) {
 +    usage();
 +}
 +
 +ret = nb_syslog(argv[1]);
 +if (ret != 0) {
 +    printf("Unable to send syslog message\n");
 +}
 +
 +exit(0);
 +
 +</code>