- 博客(5)
- 收藏
- 关注
原创 获取指定网络接口的IP地址
netstat -ie | awk -F'[: ]' 'begin{ found=0; } { if (match($0,"eth1")) found=1; if ((1==found) && match($0,"inet addr:") && match($0,"Bcast:")) print $13 }'echo "a[b]c d : e" | awk -F'[][ :]' '{print $7}'
2011-05-03 18:19:00
648
转载 【转载】errno的启示
原文:http://blog.youkuaiyun.com/romandion/archive/2008/01/11/2036975.aspx 一、errno的由来 在C编程中,errno是个不可缺少的变量,特别是在网络编程中。如果你没有用过errno,那只能说明你的程序不够健壮。当然,如果你是WIN32平台的GetLastError(),效果也是一样的。 为什么会使用errno呢?个人认
2009-10-07 18:26:00
397
转载 【转载】linux open 系统调用过程
原文地址:http://blog.chinaunix.net/u2/71164/showart_1408897.html linux open 系统调用过程
2009-10-06 18:44:00
1883
转载 【转载】Linux下的管道编程技术-dup函数和dup2函数
时间:2007-12-14 11:43:26 来源:Linux联盟收集整理 作者:未知 原文地址:http://www.xxlinux.com/linux/article/development/soft/20071214/13347.html dup和dup2也是两个非常有用的调用,它们的作用都是用来复制一个文件的描述符。它们经常用来重定向进程的stdin、stdout和st
2009-10-06 17:47:00
559
原创 Linux输入输出重定向
参考文章:Linux下的管道编程技术-dup函数和dup2函数http://www.xxlinux.com/linux/article/development/soft/20071214/13347.html Linux下的管道编程技术http://tech.it168.com/o/2006-11-07/200611061433947.shtmlhttp://publish
2009-10-06 16:45:00
1467
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人