Differences

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

Link to this comparison view

sdk:scripts:syslog [2015/05/05 15:04]
sdk:scripts:syslog [2015/05/05 15:04] (current)
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>​