Want to compile GCC 4.3.2 / 4.4.0 under cygwin.

2008-12-22 Thread Hongyi Zhao
Hi all, I've tried to compile GCC 4.3.2 / 4.4.0 under my CYGWIN_NT-5.1 1.5.25(0.156/4/2) but failed. Can anyone have the successful experience on doing this? Would anyone kindly give me some hints? Thanks in advance. -- .: Hongyi Zhao [ hongyi.zhao AT gmail.com ] Free as in Freedom

Re: Want to compile GCC 4.3.2 / 4.4.0 under cygwin.

2008-12-22 Thread Hongyi Zhao
On Mon, 22 Dec 2008 07:19:44 -0700, Eric Blake e...@byu.net wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 According to Hongyi Zhao on 12/22/2008 6:54 AM: Hi all, I've tried to compile GCC 4.3.2 / 4.4.0 under my CYGWIN_NT-5.1 1.5.25(0.156/4/2) but failed. Can anyone have

About the spec of cygwin's setup.ini file.

2008-12-23 Thread Hongyi Zhao
I use the field value of _install:_ or the field value of _source:_ to construct the local directory tree for my cygwin's repository? Regards, -- .: Hongyi Zhao [ hongyi.zhao AT gmail.com ] Free as in Freedom :. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem

Re: Want to compile GCC 4.3.2 / 4.4.0 under cygwin.

2008-12-23 Thread Hongyi Zhao
decide the dependence among packages for me automatically. -- .: Hongyi Zhao [ hongyi.zhao AT gmail.com ] Free as in Freedom :. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html

Re: Want to compile GCC 4.3.2 / 4.4.0 under cygwin.

2008-12-23 Thread Hongyi Zhao
at the same time on your behalf by setup.exe. If you truly have a case where it didn't, then we need more details in order to fix the bug. I see. Thanks again. -- .: Hongyi Zhao [ hongyi.zhao AT gmail.com ] Free as in Freedom :. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple

Re: About the spec of cygwin's setup.ini file.

2008-12-23 Thread Hongyi Zhao
$DOWNLOAD_DIR/`basename $thefile` cp -f $DOWNLOAD_DIR/`basename $thefile` $PACKAGE_DIR done -- These are the case of mine. -- .: Hongyi Zhao [ hongyi.zhao AT gmail.com ] Free as in Freedom :. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports

Trick cmd.exe of Windows XP to run cygwin Batch Script.

2009-01-04 Thread Hongyi Zhao
Hi all, I've some cygwin/bash scripts and I want to invoke them without log into the Cygwin's bash terminal. Is this possible? Regards, -- .: Hongyi Zhao [ hongyi.zhao AT gmail.com ] Free as in Freedom :. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports

Re: Trick cmd.exe of Windows XP to run cygwin Batch Script.

2009-01-05 Thread Hongyi Zhao
, -- .: Hongyi Zhao [ hongyi.zhao AT gmail.com ] Free as in Freedom :. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/

Re: Trick cmd.exe of Windows XP to run cygwin Batch Script.

2009-01-05 Thread Hongyi Zhao
archives if you interested. Very good, would you kindly give me a copy of this utility if you've found it? Regards, -- .: Hongyi Zhao [ hongyi.zhao AT gmail.com ] Free as in Freedom :. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com

Re: Trick cmd.exe of Windows XP to run cygwin Batch Script.

2009-01-05 Thread Hongyi Zhao
On Sun, 4 Jan 2009 12:07:31 +0100, Spiro Trikaliotis an-cyg...@spiro.trikaliotis.net wrote: Hello, * On Sun, Jan 04, 2009 at 06:20:20PM +0800 Hongyi Zhao wrote: I've some cygwin/bash scripts and I want to invoke them without log into the Cygwin's bash terminal. Is this possible? d:\ bash

Re: Trick cmd.exe of Windows XP to run cygwin Batch Script.

2009-01-06 Thread Hongyi Zhao
. http://cygwin.com/acronyms/#RTFM Thanks for your detailed explanations. -- .: Hongyi Zhao [ hongyi.zhao AT gmail.com ] Free as in Freedom :. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http

Re: Trick cmd.exe of Windows XP to run cygwin Batch Script.

2009-01-08 Thread Hongyi Zhao
just fine. There is one known problems: it does not work properly on a UNC styled path. At the moment I have no plans to continue developing it. Maybe if people are interested... Thanks a lot, I'll try to use it on my box. Regards, -- .: Hongyi Zhao [ hongyi.zhao AT gmail.com ] Free as in Freedom

cd to the path including space.

2009-01-08 Thread Hongyi Zhao
, if the space are included in the path, it will be troublesome. 4- Furthermore, the cygwin use the following path as the initial part of its path: /cygdrive/c/... So, how can I can get my path and then cd to that path within cygwin/bash? I've tried a bit but failed. Regards, -- .: Hongyi

Re: cd to the path including space.

2009-01-08 Thread Hongyi Zhao
On Thu, 8 Jan 2009 16:46:26 + (UTC), Eric Blake e...@byu.net wrote: Hongyi Zhao hongyi.zhao at gmail.com writes: Hi all, 1- I only know that use the following command to obtain the the above path's stem: findtexmf psfonts_t1.map cd $(cygpath -u $(findtexmf psfonts_t1.map)) See

Re: cd to the path including space.

2009-01-08 Thread Hongyi Zhao
On Thu, 8 Jan 2009 16:46:26 + (UTC), Eric Blake e...@byu.net wrote: Hongyi Zhao hongyi.zhao at gmail.com writes: Hi all, 1- I only know that use the following command to obtain the the above path's stem: findtexmf psfonts_t1.map cd $(cygpath -u $(findtexmf psfonts_t1.map)) Finally

Delete a specific type of files when they exist.

2009-01-08 Thread Hongyi Zhao
on this issue? -- .: Hongyi Zhao [ hongyi.zhao AT gmail.com ] Free as in Freedom :. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com

Re: Delete a specific type of files when they exist.

2009-01-08 Thread Hongyi Zhao
On Thu, 08 Jan 2009 22:01:26 -0600, Yaakov (Cygwin/X) yselkow...@users.sourceforge.net wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Hongyi Zhao wrote: I want to delete the all of the cache-2 files under a directory, so I use the following line to do this: if [ -f *.cache-2 ] rm

Re: Delete a specific type of files when they exist.

2009-01-08 Thread Hongyi Zhao
On Fri, 9 Jan 2009 00:42:21 -0500, Christopher Faylor cgf-use-the-mailinglist-ple...@cygwin.com wrote: On Fri, Jan 09, 2009 at 11:55:46AM +0800, Hongyi Zhao wrote: Hi all, I want to delete the all of the cache-2 files under a directory, so I use the following line to do this: if [ -f *.cache-2

Re: Delete a specific type of files when they exist.

2009-01-09 Thread Hongyi Zhao
On Fri, 09 Jan 2009 06:12:27 -0700, Eric Blake e...@byu.net wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 According to Hongyi Zhao on 1/8/2009 8:55 PM: if [ -f *.cache-2 ] rm *.cache-2 But it seems that this -f parameter in the _if_ command will not work with wildcard, i.e

Re: Delete a specific type of files when they exist.

2009-01-10 Thread Hongyi Zhao
On Fri, 09 Jan 2009 07:36:26 -0700, Eric Blake e...@byu.net wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 According to Hongyi Zhao on 1/9/2009 6:38 AM: But I cann't figure this out, see the following results on my box: $ echo [ -f *.cache-2 ] [ -f *.cache-2 ] That means there aren't

Is it possible to incremental update of the existing installed cygwin.

2009-01-10 Thread Hongyi Zhao
are there some rsync servers of cygwin so that I use them to synchronize my local repository to the latest version Regards, -- .: Hongyi Zhao [ hongyi.zhao AT gmail.com ] Free as in Freedom :. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com

Became root within cygwin.

2009-01-12 Thread Hongyi Zhao
Hi all, The cygwin doesn't has the root user by default. How can I add it and then login as root only when I require root privilege to do something? -- .: Hongyi Zhao [ hongyi.zhao AT gmail.com ] Free as in Freedom :. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem

The error of *import socket* within python.

2009-01-30 Thread Hongyi Zhao
, copyright, credits or license for more information. import socket File stdin, line 1 import socket ^ SyntaxError: invalid syntax Could you please give me some hints? -- .: Hongyi Zhao [ hongyi.zhao AT gmail.com ] Free as in Freedom :. -- Unsubscribe info: http://cygwin.com/ml

Re: The error of *import socket* within python.

2009-01-30 Thread Hongyi Zhao
)] on cygwin Type help, copyright, credits or license for more information. import socket Traceback (most recent call last): File stdin, line 1, in module ImportError: No module named socket -- .: Hongyi Zhao [ hongyi.zhao AT gmail.com ] Free as in Freedom :. -- Unsubscribe info: http

How can I assign a hotkey to run a cygwin/bash script?

2009-03-05 Thread Hongyi Zhao
Hi all, I've written a cygwin/bash script and want to run it by a customized hotkey laterly, it this possible? -- .: Hongyi Zhao [ hongyi.zhao AT gmail.com ] Free as in Freedom :. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com

Are there some tools from cygwin to manipulate the windows's clipboad?

2009-03-05 Thread Hongyi Zhao
Hi all Are there some tools from cygwin to manipulate the windows's clipboad? -- .: Hongyi Zhao [ hongyi.zhao AT gmail.com ] Free as in Freedom :. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation

Open a url by cygwin/bash script.

2009-03-07 Thread Hongyi Zhao
Hi all, I want to opena url, say http://http://www.google.cn by the system's default explorer, such as IE, from within a cygwin/bash script. What should I write this code? -- .: Hongyi Zhao [ hongyi.zhao AT gmail.com ] Free as in Freedom :. -- Unsubscribe info: http://cygwin.com/ml

Want to let variable pass to cygstart.

2009-03-10 Thread Hongyi Zhao
The above codes will fail, while the following ones will does the trick: MyWileyID = 108568046 cygstart http://www3.interscience.wiley.com/cgi-bin/fulltext?ID=$MyWileyID\PLACEBO=IE.pdf\mode=pdf Any hints on this issue? -- .: Hongyi Zhao [ hongyi.zhao AT gmail.com ] Free as in Freedom

Re: Want to let variable pass to cygstart.

2009-03-11 Thread Hongyi Zhao
. -- .: Hongyi Zhao [ hongyi.zhao AT gmail.com ] Free as in Freedom :. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/

Want to convert html to rss feeds.

2009-03-19 Thread Hongyi Zhao
Hi all, Are there some tools within cygwin to do the following task: convert html to rss feeds. -- .: Hongyi Zhao [ hongyi.zhao AT gmail.com ] Free as in Freedom :. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html

Is/are there some IP messager tool(s) within cygwin?

2009-03-26 Thread Hongyi Zhao
Hi all, I want to send some message to a specific or a group of IP(s). Is/are there some IP messager tool(s) within cygwin? -- .: Hongyi Zhao [ hongyi.zhao AT gmail.com ] Free as in Freedom :. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http

Want to use tor with wget.

2009-10-12 Thread Hongyi Zhao
Hi all, Tor (http://www.torproject.org/) is a great free software. When I installed Tor on my winxp system, then I have a local socks proxy server: 127.0.0.1:9050 Now, I want to use wget through this SOCKS proxy provided by Tor under cygwin. Any hints on this issue? Thanks in advance.

Re: Want to use tor with wget.

2009-10-13 Thread hongyi . zhao
On Tuesday, October 13, 2009 at 13:44, dave.korn.cyg...@googlemail.com wrote: Hongyi Zhao wrote: Hi all, Tor (http://www.torproject.org/) is a great free software. When I installed Tor on my winxp system, then I have a local socks proxy server: 127.0.0.1:9050 Now, I want to use wget

Re: [OT] Re: Want to use tor with wget.

2009-10-13 Thread Hongyi Zhao
, 2009 at 13:44, dave.korn.cygwin wrote: Hongyi Zhao wrote: I want to use wget to grab the following web page: http://www.cybersyndrome.net/pla5.html Then, you can tell wget to use your local privoxy as an http proxy, which is exactly how your browser relates to it. export http_proxy

Re: [OT] Re: Want to use tor with wget.

2009-10-14 Thread Hongyi Zhao
manually by hand or automatically by your mail transport agent (MTA) / news reader? What's the MTA / news reader used by you? Best regards. -- .: Hongyi Zhao [ hongyi.zhao AT gmail.com ] Free as in Freedom :. -- Problem reports: http://cygwin.com/problems.html FAQ: http

Re: [OT] Re: Want to use tor with wget.

2009-10-14 Thread Hongyi Zhao
strange, the above result is just the sasem as that returned by the switch --socks5. Why does this happen? Any hints will be highly appreciated. Best regards. -- .: Hongyi Zhao [ hongyi.zhao AT gmail.com ] Free as in Freedom :. -- Problem reports: http://cygwin.com/problems.html FAQ

Run a shell script from within dos batch.

2009-12-02 Thread Hongyi Zhao
only: C:\cygwin\bin\bash --login %~dp0test.sh In this case, the above code will doesn't take effect. But the following one will run successfully: awk 'NR==FNR{a[$0]++} NRFNR!a[$0]' file1 file2 I cann't figured out the reason. Best regards. -- .: Hongyi Zhao [ hongyi.zhao AT gmail.com ] Free

Change to current directory to %appdata% folder.

2009-12-12 Thread Hongyi Zhao
Hi all, I want to change to current directory to %appdata% folder by using some command within cygwin. Is this possible? -- .: Hongyi Zhao [ hongyi.zhao AT gmail.com ] Free as in Freedom :. -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq

Re: Change to current directory to %appdata% folder.

2009-12-12 Thread Hongyi Zhao
On Sat, 12 Dec 2009 20:14:56 -0800, Steven Monai steve+cyg...@monai.ca wrote: This command: cd $APPDATA works for me. Good, thanks. -- .: Hongyi Zhao [ hongyi.zhao AT gmail.com ] Free as in Freedom :. -- Problem reports: http://cygwin.com/problems.html FAQ: http

Re: Change to current directory to %appdata% folder.

2009-12-12 Thread Hongyi Zhao
On Sat, 12 Dec 2009 23:28:08 -0500, Chris Sutcliffe ir0nh...@gmail.com wrote: cd `cygpath -u $APPDATA` Good, thanks. -- .: Hongyi Zhao [ hongyi.zhao AT gmail.com ] Free as in Freedom :. -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq

Want to find the rsync server which has the fastest transfer speed for me.

2010-02-07 Thread Hongyi Zhao
code should I use for this purpose? Best regards. -- .: Hongyi Zhao [ hongyi.zhao AT gmail.com ] Free as in Freedom :. -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info

Is it possible to run a bash script using cygwin without login to the cygwin's terminal?

2010-02-07 Thread Hongyi Zhao
Hi all, Is it possible to run a bash script using cygwin without login to the cygwin's terminal? For example, in order to run the script, just double click on it. Best regards. -- .: Hongyi Zhao [ hongyi.zhao AT gmail.com ] Free as in Freedom :. -- Problem reports: http://cygwin.com

Re: Is it possible to run a bash script using cygwin without login to the cygwin's terminal?

2010-02-08 Thread Hongyi Zhao
On Mon, 8 Feb 2010 02:31:34 -0500, Christopher Faylor cgf-use-the-mailinglist-ple...@cygwin.com wrote: c:\cygwin\bin\bash script What's the differences between the following two invoking methods: c:\cygwin\bin\bash script and c:\cygwin\bin\bash --login script Regards. -- .: Hongyi Zhao

1.7.1: unable to run the a bash script resides in chinese path using: c:\cygwin\bin\bash --login script.

2010-02-18 Thread Hongyi Zhao
? -- .: Hongyi Zhao [ hongyi.zhao AT gmail.com ] Free as in Freedom :. -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple

Re: 1.7.1: unable to run the a bash script resides in chinese path using: c:\cygwin\bin\bash --login script.

2010-02-18 Thread Hongyi Zhao
On Fri, 19 Feb 2010 12:40:15 +0800, Hongyi Zhao hongyi.z...@gmail.com wrote: [snip] What should I do to solve this problem? ps. I use windows xp sp3. -- .: Hongyi Zhao [ hongyi.zhao AT gmail.com ] Free as in Freedom :. -- Problem reports: http://cygwin.com/problems.html FAQ

Re: 1.7.1: unable to run the a bash script resides in chinese path using: c:\cygwin\bin\bash --login script.

2010-02-18 Thread Hongyi Zhao
should I do to solve this problem? If you must run from a batch file, convert the path to POSIX using 'cygpath' before bash sees it. Then, what contents should the batch file included in? Thanks in advance. -- .: Hongyi Zhao [ hongyi.zhao AT gmail.com ] Free as in Freedom :. -- Problem reports

Re: 1.7.1: unable to run the a bash script resides in chinese path using: c:\cygwin\bin\bash --login script.

2010-02-18 Thread Hongyi Zhao
On Fri, 19 Feb 2010 12:40:15 +0800, Hongyi Zhao hongyi.z...@gmail.com wrote: @echo off C:\cygwin\bin\bash --login %~dp0myscript I've found a more strange thing: If I change the batch file into the following form, then it will be run smoothly: @echo off C:\cygwin\bin\bash --login %~dp0myscript

Re: 1.7.1: unable to run the a bash script resides in chinese path using: c:\cygwin\bin\bash --login script.

2010-02-19 Thread Hongyi Zhao
(without BOM, CR/LF line endings) format, I'll meet the following error: /usr/bin/bash: F:/zhaohs/Desktop/鏂版煡鏂囩尞/RestoreName4Elsevier.sh: No such file or directory -- .: Hongyi Zhao [ hongyi.zhao AT gmail.com ] Free as in Freedom :. -- Problem reports: http://cygwin.com/problems.html FAQ

The -O option of curl under cygwin.

2012-01-02 Thread Hongyi Zhao
/ In this case, the setup-2.9.4321.exe should be put into the ./miktex/ setup/ with the original filename, but I always find that the setup-2.9.4321.exe is put into the current working directory. Any hints on this issue? Best regards. -- .: Hongyi Zhao [ hongyi.zhao AT gmail.com ] Free as in Freedom

Re: The -O option of curl under cygwin.

2012-01-02 Thread Hongyi Zhao
to put the setup-2.9.4321.exe in the destination folder without giving the destination filename, i.e, let curl use the filename appeared in the remote site/webpage to name the downloaded file automatically. Any hints for my purpose? Regards -- .: Hongyi Zhao [ hongyi.zhao AT gmail.com ] Free

Re: The -O option of curl under cygwin.

2012-01-02 Thread Hongyi Zhao
-- .: Hongyi Zhao [ hongyi.zhao AT gmail.com ] Free as in Freedom :. -- .: Hongyi Zhao [ hongyi.zhao AT gmail.com ] Free as in Freedom :. -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html