This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
sdk:scripts:techsupport [2021/03/25 22:59] – juraschek | sdk:scripts:techsupport [2022/09/05 12:26] (current) – schmitt | ||
---|---|---|---|
Line 8: | Line 8: | ||
FTP_SERVER = " | FTP_SERVER = " | ||
- | FTP_USER | + | FTP_USER |
- | FTP_PASS | + | FTP_PASS |
now = localtime(time()); | now = localtime(time()); | ||
Line 27: | Line 27: | ||
</ | </ | ||
- | |||
- | 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< | ||
- | <code? | ||