This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
sdk:log-to-syslog [2016/09/28 12:43] – [The Script] fachet | sdk:log-to-syslog [2016/09/30 13:47] – [The Script] juraschek | ||
---|---|---|---|
Line 61: | Line 61: | ||
| | ||
| | ||
- | <code c stus-to-syslog.are> | + | <code c status-to-syslog.are> |
/* DESC: A Script that can be used for a longtime logging of a NetModule Wireless Router. | /* DESC: A Script that can be used for a longtime logging of a NetModule Wireless Router. | ||
* The upper part of the script is the logger template. The lower part is the real programm, where you describe the settings and workflow. | * The upper part of the script is the logger template. The lower part is the real programm, where you describe the settings and workflow. | ||
Line 95: | Line 95: | ||
} | } | ||
} | } | ||
- | nb_syslog(" | + | |
+ | for(i=0; i< | ||
+ | subline=substr(line, | ||
+ | | ||
+ | } | ||
return 0; | return 0; | ||
} | } | ||
Line 119: | Line 124: | ||
do { | do { | ||
- | |||
l.logNow(); | l.logNow(); | ||
sleep(mode); | sleep(mode); |