[code][Embedded System] How to print log into file Posted by Computer Newbie on 清晨5:12 in Embedded System, Linux / No comments [code][Embedded System] How to print log into file This is a example code : snprintf(buf, sizeof(buf), "rm -rf %s/files.db %s/art_cache", db_path, db_path);if( system(buf) != 0DPRINTF(E_WARN, L_GENERAL, "Failed to clean old file cache.\n"); Share This: Facebook Twitter Google+ Stumble Digg 以電子郵件傳送這篇文章BlogThis!分享至 X分享至 Facebook Related Posts:[URL] How to shorten url ppt.cc google shortener … Read More[neofetch][archlinux] How to install neofetch and use it install package yaourt neofetch Edit config file of environment settings vim /etc/bash.bashrc add following command # neofetch neofetch Refe… Read More[VirtualBox][Vagrant] How to install and use vagrant Install : 1. Go to Vagrant and download suitable package and execute it. 2. Go to VirtualBox and download following package. VirtualBox platform pack… Read More[Archlinux] Using MBR method to boot archlinux osUsing parted to divide first bootable partition Using cfdisk to divide rest of patition Replace ‘sdX’ with your block device name, in my case it wa… Read More[Cinnamon][APP][Application] Add a shortcut command to the Cinnamon menu 1. sudo vim /opt/lxterminal.sh #! /bin/bash lxterminal sudo chmod +x /opt/lxterminal.sh 2. sudo vim /usr/share/applications/lxterminal.desktop [D… Read More
0 意見:
張貼留言