Re: The -O option of curl under cygwin.

2012-01-02 Thread Hongyi Zhao
curl ;-) Regards -- .: 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://cyg

Re: The -O option of curl under cygwin.

2012-01-02 Thread Hongyi Zhao
-create-dirs option. I only want 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 [ h

The -O option of curl under cygwin.

2012-01-02 Thread Hongyi Zhao
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: 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
myscript's pathname, the batch will fail to run. > >Hmm, perhaps the argument mangling at program startup is using the >ANSI codepage (i.e. GBK in this case) when it should be using UTF-8? But, if I convert my batch file into UTF-8 (without BOM, CR/LF line endings) format, I&#x

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 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 %~dp0my

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
[snipped] > >> What 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

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 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: h

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
irectly, it will no problem. What should I do to solve this problem? -- .: 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: 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 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 [ hongyi.zhao AT gmail.com ] Fr

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://cygwi

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

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 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

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 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:

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

Run a shell script from within dos batch.

2009-12-02 Thread Hongyi Zhao
udes the following line 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]++} NR>FNR&&!a[$0]' file1 file2 I cann't figured out the reason.

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

2009-10-14 Thread Hongyi Zhao
eturned 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: http://cygwin.com/faq/ Documenta

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

2009-10-14 Thread Hongyi Zhao
Do you trim the part after the @ sign 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:

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

2009-10-13 Thread Hongyi Zhao
n Tuesday, October 13, 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 i

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 >> pro

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. Hongy

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 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

Re: Want to let variable pass to cygstart.

2009-03-11 Thread Hongyi Zhao
On Wed, 11 Mar 2009 04:37:46 +, Dave Korn wrote: > It's bash shell metacharacters. The '&' character terminates a command and >puts it into the background. The simplest way is to use single quotes ' ' >around the URL you want to cygstart. Thanks a

Want to let variable pass to cygstart.

2009-03-10 Thread Hongyi Zhao
pdf&mode=pdf 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.

Re: Open a url by cygwin/bash script.

2009-03-07 Thread Hongyi Zhao
On Sat, 07 Mar 2009 16:31:07 +, Dave Korn wrote: > cygstart "http://www.google.cn"; > > The "cygstart" utility can launch anything that you can type in the "Start >Menu" -> "Run" box. Thanks a lot. -- .: Hongyi Zhao [ hongyi.zha

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.c

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 Document

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://cygwi

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

2009-01-30 Thread Hongyi Zhao
in Type "help", "copyright", "credits" or "license" for more information. >>> import socket Traceback (most recent call last): File "", line 1, in ImportError: No module named socket >>> -- .: Hongyi Zhao [ hongyi.zhao AT g

The error of *import socket* within python.

2009-01-30 Thread Hongyi Zhao
gwin Type "help", "copyright", "credits" or "license" for more information. >>> import socket File "", line 1 import socket ^ SyntaxError: invalid syntax >>> Could you please give me some hints? -- .: Hongyi Zhao

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 Pr

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

2009-01-10 Thread Hongyi Zhao
w 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://cygwi

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 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 ] >

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 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 wo

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 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 [

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)" 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: >> >&g

Delete a specific type of files when they exist.

2009-01-08 Thread Hongyi Zhao
ts 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://cygwi

Re: cd to the path including space.

2009-01-08 Thread Hongyi Zhao
On Thu, 8 Jan 2009 16:46:26 + (UTC), Eric Blake wrote: >Hongyi Zhao 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 &

Re: cd to the path including space.

2009-01-08 Thread Hongyi Zhao
On Thu, 8 Jan 2009 16:46:26 + (UTC), Eric Blake wrote: >Hongyi Zhao 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 > >c

cd to the path including space.

2009-01-08 Thread Hongyi Zhao
the cygwin/bash, 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. Reg

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

2009-01-08 Thread Hongyi Zhao
rks for me 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 [

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

2009-01-06 Thread Hongyi Zhao
positional parameters, starting with $0. > >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/

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

2009-01-05 Thread Hongyi Zhao
e., _\_, should be used instead of the bash convention, i.e., _/_, as the delimitor of path. 5- In your case, >d:\> bash -c ./myscript actully, in the usage, the file myscript must ba put into the bash's directory, i.e., C:\cygwin\bin. This is not a convenient solution. Regards, -- .

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 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

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

2009-01-05 Thread Hongyi Zhao
dig >that up in my 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 repo

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 Probl

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

2008-12-23 Thread Hongyi Zhao
in $FILELIST; do PACKAGE_DIR="release/"`dirname $thefile` mkdir -p $PACKAGE_DIR chmod +rw $DOWNLOAD_DIR"/"`basename $thefile` cp -f $DOWNLOAD_DIR"/"`basename $thefile` $PACKAGE_DIR done -- These are the case of m

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

2008-12-23 Thread Hongyi Zhao
he 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/#unsubs

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

2008-12-23 Thread Hongyi Zhao
p tool cann't 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: ht

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

2008-12-23 Thread Hongyi Zhao
setup.ini file, where should I put these pakcages? More specifically, should 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 Free

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 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.

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 Fr