ChinaUnix.net
相关文章推荐:

read leveling

rs gold leveling Guide Reviews Those of you new to the runescape gold community have a load of questions, one of runescape money the most common being what is a World of rs gold Warcraft leveling guide? The short wow gold answer is that it wow gold is one of the ways for you to learn how to ascend through the game by becoming more powerful within wow gold the Alliance faction. The long a...

by sanren02 - HP文档中心 - 2008-08-26 23:22:49 阅读(1285) 回复(1)

相关讨论

int n = read(fd, buf, len), 当fd为一socket descriptor时,read在哪几种情况下会返回?

by TomTang - C/C++ - 2006-08-21 23:09:11 阅读(573) 回复(2)

#!/bin/sh sleep 3 echo "input a:" read a if [ "$a" == y ]; then echo $a else echo no fi 问题: 如果在shell sleep 的过程敲很多次回车 例如3次 现象为 [root@localhost]#./filename input a: no [root@localhost]# [root@localhost]# [root@localhost]# _ 也就是说shell记住了你敲的这3次回车 怎么能达到这种效果: 不管敲几次回车 只捕捉input a: 出现后的那一次输入 [root@localhost]#./filename i...

by lovec - Shell - 2006-05-17 17:24:49 阅读(1494) 回复(12)

请问“read"在shell scripts上是不是表示从标准输入上读出字符?

by x518889 - Linux论坛 - 2004-04-16 13:48:15 阅读(292) 回复(1)

read 的两种情况,为什么第一中不阻塞,第二种阻塞? /********************** 情况1 *************************/ #include #include #include #include #define MAXLINE 5000 int main(void) { int n; char line[MAXLINE]; int fd = open("dump", O_RDONLY); while (1){ n = read(fd, line, MAXLINE); if (0 > n){ printf("read error\n")...

by vivian2086 - C/C++ - 2009-10-15 19:52:32 阅读(841) 回复(3)

嵌入式Linux平台下的GPS数据采集涉及到Linux串口编程技术,从串口读取GPS信息需要用到read函数, read函数的定义如下: ssize_t read(int filedes, void *buf, size_t nbytes); 我想问两个问题: 1、这里的参数buf是什么类型的?是char型的吗? 2、当从串口接收到信息并保存到buf中时,我想看buf中保存的信息的第一个字符是不是%,请问 可不可以用if(buf[0]=='%')进行判断?

by 望秦淮 - C/C++ - 2009-05-05 17:55:46 阅读(913) 回复(4)

echo 1 2 3 |while read a b c do i=5 done echo $i $i的值为啥不能被引用了

by Tim-Wang - Shell - 2009-05-05 17:17:33 阅读(3316) 回复(19)

TMLIMIT=4 read -t $TMLIMIT variable echo if [ -z "$variable" ]; then echo "Timed out, variable still unset." else echo "variable=$variable" fi exit 0 红色部分的一行是什么意思,请高手赐教。

by xyx219 - Shell - 2009-02-17 17:24:29 阅读(835) 回复(5)

我要将一些输出的结果赋给变量,这样操作为什么不能实现呢? vmstat 3 2|sed 1,3d|awk '{printf("%s %s %s\n",$1,$7,$8)}'|while read A B C ...... 如何才能实现将结果赋给ABC呢? 谢谢~!

by leo_pro - Shell - 2007-06-25 14:45:20 阅读(1038) 回复(9)

环境:SUN-U250 + Solaris8 硬盘:c0t0d0(root),c8t0d0,c9t0d0,c10t0d0,c11t0d0,c12t0d0 目的:练习用disksuite做RAID0,RAID1,RAID5,hotspare... 熟悉常用命令 过程: 1,分区 format-选盘-partition-print-modify 分20MB于7分区,用于放状态数据库副本,其余给分区6 #prtvtoc /dev/rdsk/c0t8d0s2 | fmthard s - dev/rdsk/c9t0d0s2 c10t0d0s2 c11t0d0s2 c12t0d0s2 2,建database #metadb -a -c 2 -f c8t0d0s7 c9t...

by hbjxzl - Solaris文档中心 - 2006-04-01 15:03:20 阅读(462) 回复(0)

read这个函数默认的区分好像是空格,如果不是空格,该怎么设定呀!

by 轩静天 - Shell - 2005-06-07 22:17:57 阅读(733) 回复(4)