RE: Help on bash script?

2005-08-11 Thread Xu Qiang
++var", the result is still 0, it isn't incremented. With $[++var], the result is "0: command not found". "$((++var))" is to the same effect as "let ++var". $((var+1)) works. But the value of var can't be incremented. thanks, Xu Qiang

RE: Help on bash script?

2005-08-11 Thread Xu Qiang
This is my test script: - #!/bin/bash var=0 var=$[3] vari=0 ++vari echo $var echo $vari - The result is: ./test.sh: ++vari: command not found 3 0 So the manual of bash is incorrect? Regards, Xu Qiang

RE: Help on bash script?

2005-08-11 Thread Xu Qiang
dpk wrote: > On Fri, 12 Aug 2005, Xu Qiang wrote: >> 1. The way of incrementing the variable NCOREFILES. Why does it use >> the formula of "NCOREFILES=$[ $NCOREFILES + 1 ]", and not the direct >> way of "NCOREFILES=$NCOREFILES+1"? > > If that

RE: Help on bash script?

2005-08-11 Thread Xu Qiang
Giorgos Keramidas wrote: > On 2005-08-12 10:16, Xu Qiang <[EMAIL PROTECTED]> wrote: >> Btw, can we "export" a value in the sub-shell back to the parent? > > Only through `backquote subtitution', as the child process cannot > affect the environment of the

RE: Help on bash script?

2005-08-11 Thread Xu Qiang
dpk wrote: > On Fri, 12 Aug 2005, Xu Qiang wrote: > As soon as you used the pipe, to the while, you entered a sub-shell. > There's no way (that I'm aware of anyways) to get the sub-shell's > variables sent back up to the parent. Thanks for your detailed analysis an

Help on bash script?

2005-08-11 Thread Xu Qiang
s a local variable, so any modification to it should be valid as long as we are still in the scope of the function, right? I am really lossed at this phenomenon. Looking forward to any possible help, thanks, Xu Qiang ___ freebsd-questions@freebsd.

Gnome install in FreeBSD?

2005-08-08 Thread Xu Qiang
its components and dependencies. At this point, I am willing to install it from ports. However, there is a problem: all my previous softwares were installed manually, could ports check it out to avoid install some dependencies (like GTK+) twice? Regards, Xu Qiang

RE: groupadd/useradd in FreeBSD?

2005-07-28 Thread Xu Qiang
ile README in the sql-bench directory before asking the question. Now I run the test with "perl run-all_tests --user=mysql", and it can run now. Thanks for pointing our that. :) Regards, Xu Qiang ___ freebsd-questions@freebsd.org mailing

RE: groupadd/useradd in FreeBSD?

2005-07-28 Thread Xu Qiang
oot password 'new-password' /usr/local/mysql/bin/mysqladmin -u root -h gso_dev_2.workgroup password 'new-password' Is this the cause? Dan, I remember you said that mysqld will automatically setuid() itself to the "mysql" user when it starts up. How to let the bench test r

RE: groupadd/useradd in FreeBSD?

2005-07-28 Thread Xu Qiang
ssword after creating his/her uid/username? thanks, Regards, Xu Qiang ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"

RE: groupadd/useradd in FreeBSD?

2005-07-28 Thread Xu Qiang
Btw, Just think of this problem: Although I have added the user "mysql" to my machine, I didn't set its password. When does this newly added user get his/her password and change it? thanks, Regards, Xu Qiang ___ freebsd-questi

RE: groupadd/useradd in FreeBSD?

2005-07-28 Thread Xu Qiang
u uid] [-c comment] [-d dir] [-e date] [-p date] [-g group] [-G grouplist] [-m] [-k dir] [-w method] [-s shell] [-o] [-L class] [-h fd | -H fd] [-N] [-P] [-Y] In FreeBSD, it should be "pw useradd username -g groupname", and not "pw useradd -g groupname username&qu

groupadd/useradd in FreeBSD?

2005-07-28 Thread Xu Qiang
SD 5.3 system. Any help on this issue? thanks, Regards, Xu Qiang ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"

RE: DNS settings in FreeBSD?

2005-07-27 Thread Xu Qiang
Glenn Dawson wrote: > At 01:46 AM 7/27/2005, Xu Qiang wrote: >> Hi, all: >> >> Last time I asked you that why the machine can map the hostname to ip >> address without setting DNS Server in "/etc/rc.conf". >> >> Now I remember that I have pro

DNS settings in FreeBSD?

2005-07-27 Thread Xu Qiang
is the DNS setting? If not in this file, which file does this setting reside in? P.S.: In solaris, I can use dos2unix to transfer txt file from DOS/Windows format to Unix format, what is the corresponding command in FreeBSD? Thanks, Xu Qiang ___

RE: undelete in FreeBSD?

2005-07-26 Thread Xu Qiang
deleting files, he should use KDE > or Gnome. They both have a trash can/wastebasket/recycle bin. Now I just have X Window in my machine. Not as good-looking as Gnome desktop. Can I install gnome without using ports? I want to install eve

RE: undelete in FreeBSD?

2005-07-25 Thread Xu Qiang
f Unix clone, such as FreeBSD, in contrast to M$ Windows, is the lack of a cyclin bin, from which you can restore anything you have mis-deleted before. Or, am I mis-informed on this issue? Regards, Xu Qiang ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"

RE: undelete in FreeBSD?

2005-07-21 Thread Xu Qiang
Hornet wrote: > On 7/21/05, Xu Qiang <[EMAIL PROTECTED]> wrote: >> Hi, all: >> >> I mis-deleted /usr/local/bin directory in my FreeBSD. How can I >> restore it? >> >> Looking for your help urgently, >> >> thanks, >> Xu Qiang

undelete in FreeBSD?

2005-07-21 Thread Xu Qiang
Hi, all: I mis-deleted /usr/local/bin directory in my FreeBSD. How can I restore it? Looking for your help urgently, thanks, Xu Qiang ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To

RE: 1 byte more?

2005-07-19 Thread Xu Qiang
xemacs to hex edit that file, to find a newline character (0x0a) is added to the txt file, even though I didn't touch the "Enter" key in my keyboard. Maybe vi is too aggressively helpful. :) Your "echo -n" is a solution. And xemacs is also a better choice without th

1 byte more?

2005-07-19 Thread Xu Qiang
ble character to the txt file? Looking forward to any possible help, Regards, Xu Qiang ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"

RE: Apache 1.3.33 auto start in FreeBSD 5.3?

2005-06-28 Thread Xu Qiang
Xu Qiang wrote: > I compiled Apache 1.3.33 from src in my FreeBSD 5.3 machine. It works > well. However, I want to let it run at the start-up time of the > system. > > I added the line apache_enable="YES" into /etc/rc.conf as > /usr/ports/www/apache13/pkg-message s

Apache 1.3.33 auto start in FreeBSD 5.3?

2005-06-28 Thread Xu Qiang
Hi, all: I compiled Apache 1.3.33 from src in my FreeBSD 5.3 machine. It works well. However, I want to let it run at the start-up time of the system. I added the line apache_enable="YES" into /etc/rc.conf, and copied /usr/ports/www/apache13/files/apache.sh into /usr/local/etc/rc.d, and modif

RE: DNS and Gateway in FreeBSD?

2005-06-08 Thread Xu Qiang
) and netmask (255.255.252.0), so I wonder how the gateway was added into this file. And I didn't have any DNS setting here. Yet it can "ping www.yahoo.com" successfully. Quite strange. :( Regards, Xu Qiang ___ freebsd-questions@fr

RE: DNS and Gateway in FreeBSD?

2005-06-07 Thread Xu Qiang
Lowell wrote: > We don't either. We do not have enough information. > Showing us your configuration files might help. What configuration file do you need? thanks, Regards, Xu Qiang ___ freebsd-questions@freebsd.org mailin

RE: DNS and Gateway in FreeBSD?

2005-06-06 Thread Xu Qiang
Lowell wrote: > Yes, you do. A dhcp client is part of the base system. But I assigned my machine a static ip address and netmask, and they never changed. I don't know how the machine detect the gateway ip address and DNS server ip address which i never assigned to it. :( Regards,

RE: DNS and Gateway in FreeBSD?

2005-06-06 Thread Xu Qiang
? ? wrote: > Xu Qiang wrote: > >> Hi, all: >> >> In setting up my FreeBSD machine in my LAN, I only assigned it an ip >> address and a netmask, just as the handbook said >> (http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/config-n

DNS and Gateway in FreeBSD?

2005-05-31 Thread Xu Qiang
;t give it an explicit DNS server ip address. (It can ping proxy.abc.com) And I found the gateway is also found automatically by the machine. (It is automatically added into the line beginnin with "defaultrouter=") Is it designed behavior? I can't understand th

RE: jdk 1.3.1 in FreeBSD

2005-05-30 Thread Xu Qiang
a": not in executable format: File format not recognized Core was generated by `java'. Program terminated with signal 11, Segmentation fault. #0 0x280ee35a in ?? () (gdb) - Any help? Regards, Xu Qiang __

RE: jdk 1.3.1 in FreeBSD

2005-05-30 Thread Xu Qiang
Vizion wrote: > I have the sources - I could email them to you Hi, David: I will be grateful if you can send them to me through email. thanks, Regards, Xu Qiang ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mail

RE: jdk 1.3.1 in FreeBSD

2005-05-29 Thread Xu Qiang
tside. In this case, is there a compiled libc.so.4 file in any FreeBSD repository that can be visited by web browser? thanks, Regards, Xu Qiang ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-question

RE: jdk 1.3.1 in FreeBSD

2005-05-29 Thread Xu Qiang
rg/downloads/java.shtml thanks, Regards, Xu Qiang ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"

RE: jdk 1.3.1 in FreeBSD

2005-05-29 Thread Xu Qiang
Vizion wrote: > I think you need > /usr/ports/gnutls I found gnutls is a tool for Transport Layer Security, which can hardly relate to the java sdk issue, right? Regards, Xu Qiang ___ freebsd-questions@freebsd.org mailing lis

jdk 1.3.1 in FreeBSD

2005-05-27 Thread Xu Qiang
"libc.so.4" not found, required by "java" ------- Any help? Regards, Xu Qiang ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ques

RE: The availability of socketbits.h?

2005-05-22 Thread Xu Qiang
elp, but that's very long winded. > > Typing ? shows key bindings in a split window. Finish with this > window > by typing ^X0 (control-X then a 0 (zero)). > > There's also an emacs mode. I don't know if there is a proper X > interface of any kind. Regards,

RE: The availability of socketbits.h?

2005-05-19 Thread Xu Qiang
Alex Zbyslaw wrote: > Xu Qiang wrote: > >> Giorgos Keramidas wrote: >> >> >>> The manpage of gcc is severely out of date. The GNU folks prefer >>> Texinfo for their documentation since a long time ago. Just ignore >>> the manpage

RE: The availability of socketbits.h?

2005-05-18 Thread Xu Qiang
to connect to the server. The experiment shows that the server-client interaction works fine. Strongly recommend this go client software by Rene Grothmann, which is also an open-source software (But not GNU). Regards, Xu Qiang ___ freebsd-questions@f

RE: The availability of socketbits.h?

2005-05-18 Thread Xu Qiang
rated into "ports" system of FreeBSD. Thank you, all. Regards, Xu Qiang command.c.patch.DanNelson Description: Binary data command.c.patch.GiorgosKeramidas Description: Binary data command_list.h.patch.GiorgosKeramidas Description: Binary data configure.patch Description: Bina

RE: The availability of socketbits.h?

2005-05-18 Thread Xu Qiang
the direction. I will try to do a summary of changes needed into a number of .patch files. Regards, Xu Qiang ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"

RE: The availability of socketbits.h?

2005-05-18 Thread Xu Qiang
ix". Even it is not a "fix", your analysis helped me a lot in solving this problem. Thank you! > Obviously, no. They should be hit hard on the head with a copy of > "Extreme Programming Explained" :P Haha, good idea! Regards, Xu Qiang

RE: The availability of socketbits.h?

2005-05-17 Thread Xu Qiang
t; -Wcast-qual -Wcast-align -Wwrite-strings -Wstrict-prototypes > -Wmissing-prototypes -Wmissing-declarations -Wp,-std=c89' It is quite unreadable. Actually, all I have done to this file is: sed -i -e "s/-lang-c89/-std=c89/g" configure If you can tell me how t

RE: The availability of socketbits.h?

2005-05-17 Thread Xu Qiang
mpile > errors). I am very lucky to have you and Giorgos around to help me in compiling this software. Thank you two so much for your help and patience! with my best wishes, Xu Qiang ___ freebsd-questions@freebsd.org mailing list http://li

RE: The availability of socketbits.h?

2005-05-17 Thread Xu Qiang
nstalled quite a number of GNU softwares, never saw such a buggy one. Yet, I am a go game lover, and want to set up a local NNGS server. And this is the only available open source go server software in the world. Alas!) Regards, Xu Qiang ___ free

RE: The availability of socketbits.h?

2005-05-17 Thread Xu Qiang
from /lib/libm.so.3...done. Loaded symbols for /lib/libm.so.3 Reading symbols from /lib/libc.so.5...done. Loaded symbols for /lib/libc.so.5 Reading symbols from /libexec/ld-elf.so.1...done. Loaded symbols for /libexec/ld-elf.so.1 #0 0x281803d2 in strcmp () f

RE: The availability of socketbits.h?

2005-05-17 Thread Xu Qiang
() from /lib/libc.so.5 #2 0x28177352 in fprintf () from /lib/libc.so.5 #3 0x0805f98c in commands_init () at command.c:1149 #4 0x0805aeab in main (argc=1116382465, argv=0x807e702) at nngsmain.c:162 --- What is a "Bus error&qu

RE: The availability of socketbits.h?

2005-05-17 Thread Xu Qiang
Xu Qiang wrote: > Thanks for your suggestions. Yes, this error is overcome after > running "autoheader". But now another error of the same type appears: > - > mink.c:22: error: conflicting types for 'random' &g

RE: The availability of socketbits.h?

2005-05-17 Thread Xu Qiang
required --------- What shall I do now? Thanks a lot, Regards, Xu Qiang ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"

RE: The availability of socketbits.h?

2005-05-16 Thread Xu Qiang
Xu Qiang wrote: > > cc1: error: unrecognized command line option > "-lang-c89" > gmake[2]: *** [command.o] Error 1 > gmake[2]: Leaving directory > `/usr/games/nngs_

RE: The availability of socketbits.h?

2005-05-16 Thread Xu Qiang
; || echo './'`command.c cc1: error: unrecognized command line option "-lang-c89" gmake[2]: *** [command.o] Error 1 gmake[2]: Leaving directory `/usr/games/nngs_sourceforge/nngs-1.1.16/nrat' gmake[1]: *** [all-recursive] Error 1 gmake[1]: Leaving directory `/usr/games/nngs_s

RE: The availability of socketbits.h?

2005-05-16 Thread Xu Qiang
>20 #ifdef HAVE_CONFIG_H >21 #include >22 #endif >23 >24 #include >25 #include >26 #include By the way, is there a similar sourceforge page for mlrate? I understand that it is necesary for nngs to compile. Regards, Xu Qiang ___

RE: The availability of socketbits.h?

2005-05-16 Thread Xu Qiang
ourceforge page related to NNGS. Let me try this out. thank you and be prepared for my foolish questions, :P Regards, Xu Qiang ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"

The availability of socketbits.h?

2005-05-16 Thread Xu Qiang
: *** [network.o] Error 1 - I have searched for this file in my system, but can't find it. To have it present, which software must I install? Regards, Xu Qiang ___ freebsd-questions@freebs

RE: Ports proxy configuration?

2005-05-10 Thread Xu Qiang
=http://proxy.example.com:8080 HTTP_PROXY_AUTH=basic:*:: - Particularly, I am interested in two environmental variables: FTP_PROXY and HTTP_PROXY. I may use it as: #env FTP_PROXY="hostnme:port" make install clean Thank you very much, Re

RE: Ports proxy configuration?

2005-05-10 Thread Xu Qiang
Kris Kennaway wrote: > The ports collection just uses fetch(1), so that's where the relevant > documentation is. I "man fetch", but didn't find any info related to proxy setting. thanks anyway for your suggestion, Regards, Xu Qiang _

Ports proxy configuration?

2005-05-10 Thread Xu Qiang
uggestions? thanks, Regards, Xu Qiang ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"