ChinaUnix.net
相关文章推荐:

fortran77 赋值

#!/usr/bin/perl use strict; use Net::SSH::Expect; my @hostnames=("abc"); my $ssh = Net::SSH::Expect->new ( host => "", user => 'abc', raw_pty => 1 ); foreach (@hostnames) { $ssh->host=@_; 这里应该如何给host赋值? $ssh->run_ssh() or die "SSH process couldn't start: $!"; my $result = $ssh->exec($ARGV[0]); print($result...

by adminsinx - Perl - 2008-12-29 16:20:01 阅读(1605) 回复(4)

相关讨论

指针没赋初始值 char *strs = NULL;

by liangfu - C/C++ - 2006-11-01 13:56:51 阅读(818) 回复(2)

例如:如何把这个“a|b|c”以|为间隔赋给x,y,z

by xubizhen - Python - 2008-11-11 21:43:35 阅读(1599) 回复(2)

a=0 a=$($(a+1)) 这个怎么解释 a=$(a+1) 这样不可以吗?为什么多要一个$?? [ 本帖最后由 henk 于 2008-10-29 13:50 编辑 ]

by henk - Shell - 2008-10-30 11:22:39 阅读(1290) 回复(5)

各位大哥, c++问题 1个txt 文件, 有没有办法 让r(i) 变成 读到第i 行的东西啊? 例如 Tom 100 》》line 1 Jenny 150 》》line 2 John 160 》》line 3 string s; for (int i=0; i<5; i++) getline(fin, s); string r (i )=s; >>>> (不知道怎么写) 当读第一行,然后赋值给 string r(1)=”Tom 100“ 谢谢了

by chinasg - C/C++ - 2008-04-13 14:34:38 阅读(1626) 回复(5)

我想写一个检查系统服务的脚 本, 这是其中的一段, www=`netstat -an|grep LISTEN |grep :80 ` if [ "$www" != ""]; then echo "www is runnning " else echo "www is not running" fi 可是执行的时候总是报错 :command netstat -an|grep LISTEN |grep :80 not find , 这倒底是怎么回事儿呢?

by a.a - Shell - 2007-06-19 18:50:31 阅读(1415) 回复(4)

#include char str[] = "hello"; char (*p)[6]; p = &str; int main() { //p = &str; return 0; }   上面的程序在VC6.0中运行会出错,出错信息如下: --------------------Configuration: test - Win32 Debug-------------------- Compiling... test.cpp D:\MyProjects\test\test.cpp(10) : error C2501: 'p' : missing storage-class or type specifiers D:\MyProjects\test\test.cpp(10) : error C2040:...

by 剑击长空 - C/C++ - 2007-04-28 18:06:42 阅读(1091) 回复(3)

请问各位高手,想请教一个简单的问题,我想统计一个目录下的文件数,.然后和一个固定数进行对比(如:100),我先用ls -l * |grep "^-"|wc -l 这样把当前目录下的文件数统计出来了,但统计值怎么赋给一个变量与100进行对比呢?

by navyliu - Shell - 2006-10-08 17:08:18 阅读(1249) 回复(2)

%echo `date +'%Y/%m/%d %H:%M:%S'` %2006/04/27 12:53:02 请问如何将 echo `date +'%Y/%m/%d %H:%M:%S'` 的值赋给recordtime? 用recordtime=`echo `date +'%Y/%m/%d %H:%M:%S'`` 出错 recordtime: not found

by 93237984 - Solaris - 2006-04-27 12:53:54 阅读(597) 回复(0)

PCON |=0x01; 这表示什么呢?

by linuxcici - C/C++ - 2005-10-24 20:50:23 阅读(1214) 回复(5)

把sed -n '$=' file的值给aa aa=`sed -n '$=' file` 好像不行? 怎么做才可以?

by tlwht - Shell - 2005-03-14 13:13:07 阅读(796) 回复(4)