ChinaUnix.net
相关文章推荐:

530 Valid hostname is expected

hostname hostname [option] [nameofhost] Set or display name of current host system. A privileged user can set the hostname with the nameofhost argument. Options -a, --alias Display the alias name of the host (if used). -d, --domain Display DNS domain name. -f, --fqdn, --long Display fully qualified domain name. -F file, --file file Consult file for hostname. -h, --help Display a help message and...

by anima - Linux文档专区 - 2006-08-13 00:33:09 阅读(445) 回复(0)

相关讨论

我有三个文件,class.config.jsp class.mysql.jsp test.jsp 访问总是报错,是个新手,没看出错误,那位朋友给看一下。 错误:/./include/class.mysql.jsp:5: '{' expected public class openDB(Config) class.config.jsp 代码如下: <%@page language="java"%> <%! class config_newwapdb { String host="wapdb"; String database="newwapdb"; String user="wap"; String passwd="wap949410";...

by linux68 - Java - 2011-01-14 10:06:19 阅读(1500) 回复(0)

cat $the_run_dir/cfgfile |while read LINE do echo $LINE >tmp.txt ui_function=`awk '{print $1}' tmp.txt` req_num=`awk '{print $2}' tmp.txt` echo $ui_function echo $req_num expr $req_num runing_num=`ps -ef|grep $ui_function|grep -v grep|wc -l` echo $runing_num ...

by 残风√木落 - Solaris - 2010-11-03 12:44:30 阅读(1303) 回复(0)

[code]#!/bin/bash # YUM_DIR="/etc/yum.repos.d" while : do clear cat << YUM =================================================================================== 1:CentOS-4X 2:CentOS-5X Q:Quit =================================================================================== YUM echo -n -e "\t\t\tPlease choose to install >" read ANS case $ANS in 1)X4="1" ;; 2)X5="2" ;; q|Q) break ;; *)...

by skyxue215 - Shell - 2010-04-10 22:13:38 阅读(2118) 回复(3)

我用 if [ $i -eq 100 ] 就出现了这个错误:integer expression expected 从字面上理解就是变量i应该是个integer类型的 但是如何把一个字符型数字转换成整形呢?

by cuer_2 - Shell - 2009-06-01 16:21:21 阅读(14006) 回复(11)

今天写了一个程序,编译时报了一个错误:expected initializer before "***" 报错的语句只是程序开头的一个变量定义语句,怎么会有这样的错误呢,琢磨了半天也没弄明白,最后发现是自己写的头文件最后一句少了 “;”。 本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u2/78601/showart_1722297.html

by sparkzh - Linux文档专区 - 2008-12-15 23:13:43 阅读(1010) 回复(0)

以下是port.sh的内容 #! /bin/bash # program: Using to study the [if... then ...fi] program # Written by :Beyond # date: 2007/06/15 # content: I will be using this program to show your services # 1. print the program's work in your screen echo "Now, the services of your Linux system will be detect!" echo "The www, ftp, ssh, and sendmail + pop3 will be detect!" echo " " # 2. www www='netstat ...

by beyond911 - Shell - 2007-06-17 13:35:31 阅读(14986) 回复(2)

(原标题为:求解:一个菜鸟编程中的问题!) 编写了一个shell命令cp 代码如下: #include #include #include #include #define maxOnce 1024 int main(int argc,char * argv[]) { int fdsrc,fddist; char buf[maxOnce]; char buf1[maxOnce]; int size; if(argc!=3) printf("error for input\n"); if((fdsrc=open(argv[1],O_RDONLY)==-1) perror("error for open\n ");//出错...

by melonmelon - C/C++ - 2006-12-28 20:35:32 阅读(4248) 回复(10)

原代码如下: fsmax="85" maillist1="[email]cold@163.com[/email]" maillist2="[email]hot@163.com[/email]" df -k | grep '/dev/h' | awk '{print $1,$5,$6}'>mailfile mail -s "Filesystem Information" $maillist1 < mailfile mail -s "Filesystem Information" $maillist2 < mailfile df -k | grep '/dev/h' | awk '{print $5}'>outfile while [ read fsvalue ] do fsvalue=$(echo $fsvalue | sed 's/\%//') ...

by wwmshe - Shell - 2006-05-17 14:13:03 阅读(1231) 回复(1)

在 mfsclient 的系统日志中发现大量这样日志:[code]Aug 13 19:17:19 localhost mfsmount[19032]: file: 34338043, index: 0, chunk: 60866477, version: 1 - there are no valid copies Aug 13 19:17:39 localhost mfsmount[19032]: file: 34338063, index: 0, chunk: 60866494, version: 1 - there are no valid copies Aug 13 19:17:41 localhost mfsmount[19032]: file: 34338825, index: 0, chunk: 60867235, version: 1 - th...

by youzhengchuan - 分布式文件系统(FastDFS) - 2014-08-14 13:34:59 阅读(978) 回复(2)

环境: CentOS 5 + BASH 每次用export时总会看到后面一个提示: not a valid identifier ,但export后的PATH可以正常使用. 何故? 如下: [root@lovexia shell]# echo $PATH /usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin:/usr/local/ossec/bin [root@lovexia shell]# PATH=$PATH:/usr/local/mysql/bin [root@lovexia shell]# echo $PATH /usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bi...

by xwmhmily - Shell - 2012-03-19 08:22:42 阅读(37331) 回复(6)