摘要: #include #include #include #include int main(){ if((access("test.c",F_OK))!=-1) { printf("文件 test.c 存在.\n"); } else { pri... 阅读全文
posted @ 2014-10-21 13:36 bit by bit 阅读(1952) 评论(0) 推荐(0) 编辑
摘要: 开机启动安装sysv-rc-conf:sudoapt-get install sysv-rc-conf执行:sudosysv-rc-conf 你的程序名称 on到这里就可以的,但重启之后你在终端会找不到这个程序的信息,但它其实在后台运行。设置开机启动的另一种方法就是直接把启动命令写到/etc/rc.... 阅读全文
posted @ 2014-10-21 13:34 bit by bit 阅读(807) 评论(0) 推荐(0) 编辑