This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
sdk:scripts:techsupport [2018/07/02 15:22] – juraschek | sdk:scripts:techsupport [2021/03/25 23:00] – juraschek | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== SDK Script techsupport.are ====== | ====== SDK Script techsupport.are ====== | ||
+ | To upload a techsupport directy to a ftp server use this file: | ||
+ | |||
<code c techsupport.are> | <code c techsupport.are> | ||
/* DESC: This transfers a techsupport to a remote FTP server | /* DESC: This transfers a techsupport to a remote FTP server | ||
Line 23: | Line 25: | ||
nb_syslog(" | nb_syslog(" | ||
exit(0); | exit(0); | ||
+ | |||
+ | </ | ||
+ | |||
+ | For storing more than one techsupport in the internal flash use following script | ||
+ | : | ||
+ | |||
+ | <code c techsupport_subdir.are> | ||
+ | |||
+ | path=" | ||
+ | dh=opendir(path); | ||
+ | if(dh == -1) { | ||
+ | if ( mkdir(path, | ||
+ | nb_syslog(" | ||
+ | exit(1); | ||
+ | } | ||
+ | } else { | ||
+ | nb_syslog(" | ||
+ | closedir(dh); | ||
+ | } | ||
+ | timestamp = strftime(" | ||
+ | r=file_copy("/ | ||
+ | if(r>0) nb_syslog(sprintf(" | ||
+ | if(r< | ||
</ | </ | ||