11 2022 档案

摘要:#include<filesystem> namespace fs = std::filesystem; 解决方法: https://stackoverflow.com/questions/53201991/how-to-use-stdfilesystem-on-gcc-8 实际是需要在编译的时候加 阅读全文
posted @ 2022-11-25 16:52 simp00 阅读(285) 评论(0) 推荐(0)
摘要:install sudo apt install doxygen sudo apt install graphviz use cd src# src is the code dir doxygen -g Doxygen.config #gengerate the default config fil 阅读全文
posted @ 2022-11-24 16:42 simp00 阅读(79) 评论(0) 推荐(0)
摘要:不断运行与调试代码的时候 需要查询pid 并kill这个程序 就做了这个shell脚本 #!/bin/bash target=$1 ps -ef|grep -v grep|grep ${target} |awk '{print $2}'|while read pid do kill -9 $pid 阅读全文
posted @ 2022-11-24 09:28 simp00 阅读(42) 评论(0) 推荐(0)
摘要:修改/etc/profile.d/xxx.sh export HOME=/home/xxx export PATH=$PATH:$HOME:$HOME export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$HOME 阅读全文
posted @ 2022-11-18 11:19 simp00 阅读(596) 评论(0) 推荐(0)
摘要:文件放在*/etc/init.d/*路径下 #!/bin/sh - # # ubuntu-fan Start/Stop Ubuntu FAN Networking # # chkconfig: 345 98 01 # description: Starts/Stops Ubuntu FAN Netw 阅读全文
posted @ 2022-11-15 19:43 simp00 阅读(118) 评论(0) 推荐(0)
摘要:#include <sys/types.h> #include <sys/stat.h> #include <time.h> #include <stdio.h> #include <stdlib.h> #include <sys/sysmacros.h> int main(int argc, ch 阅读全文
posted @ 2022-11-01 09:58 simp00 阅读(43) 评论(0) 推荐(0)