
linux编程
ccjjyy
这个作者很懒,什么都没留下…
展开
-
RPM安装包制作
使用%configure宏默认传递的参数如下(也可以自己用./configure --prefix=/usr/local命令) ./configure --build=x86_64-redhat-linux-gnu --host=x86_64-redhat-linux-gnu --target=x86_64-redhat-linux-gnu --program-prefix= --prefix转载 2014-12-04 16:46:51 · 600 阅读 · 0 评论 -
Linux C编程的IDE设置
(1)csupport插件3 Steps to Install the C.Vim PluginStep 1: Download C Vim PluginDownload the plugin from vim.org website.$ cd /usr/src$ wget http://www.vim.org/scripts/download_script.转载 2014-12-24 15:05:05 · 699 阅读 · 0 评论 -
如何让服务只运行单个实例
转载自: http://blog.chinaunix.net/uid-20196318-id-96453.html对于很多服务来说,在同一个服务器上只能运行一个实例,那么通过什么方法来保证程序同一时刻只有一个实例运行呢?通过编写shell脚本来管理程序的启动、停止是个不错的方法。在启动时,shell脚本会创建进程标识文件(存储正在运行实例的pid)以表明已经有实例在运行,如果文件已转载 2015-02-03 14:09:37 · 592 阅读 · 0 评论 -
linux C++通过ntp协议获取网络时间
#include #include #include #include #include #include #include #include #include void ntpdate();int main() { ntpdate(); return 0;}void ntpdate() {//char转载 2015-01-19 13:13:25 · 7164 阅读 · 0 评论 -
从域名获取IP地址
Get ip address from hostname in C using Linux socketsSocket applications often need to convert hostnames like google.com to their corresponding ip address. This is done through dns requests. The s转载 2015-01-19 15:26:31 · 624 阅读 · 0 评论 -
linux shell中的单引号与双引号的区别(看完就不会有引号的疑问了)
转字:http://lspgyy.blog.51cto.com/5264172/1282107linux shell中的单引号与双引号的区别(看完就不会有引号的疑问了)" "(双引号)与 ' '(单引号)的区别 你在shell prompt(shell 提示)后面敲打键盘、直到按下enter的时候,你输入的文字就是command转载 2015-05-06 20:10:25 · 5770 阅读 · 1 评论 -
shell的扩展(解释了shell单引号,双引号,变量中包含空行,echo时换行符变成空格等)
ExpansionEach time you type a command line and press the enter key, bash performs several processes upon the text before it carries out your command. We have seen a couple of cases of how a simple转载 2015-05-06 22:54:31 · 5117 阅读 · 0 评论