Re: bash command not found

2008-06-27 Thread Mark Geisert
Puneet Singh Lamba writes: > When I installed Cygwin, I had used the view "Category" and clicked on > "Default" next to "All" at the root of the tree so that it would > change to "Install". > My understanding is that doing so should install everything available > on the mirror from which you are in

Re: bash command not found

2008-06-27 Thread Puneet Singh Lamba
Mark, Many thanks for the response. When I installed Cygwin, I had used the view "Category" and clicked on "Default" next to "All" at the root of the tree so that it would change to "Install". My understanding is that doing so should install everything available on the mirror from which you are

Re: bash command not found

2008-06-27 Thread Mark Geisert
Puneet Singh Lamba writes: > Could someone please help me understand why bash returns a "command > not found" when I do either of the following? > > ls | more > > perl > > Note that I have the complete set of libraries/tools installed for > Cygwin version 1.5.25-14 (Setup.exe version 2.573.2.2).

bash command not found

2008-06-27 Thread Puneet Singh Lamba
Hi, Could someone please help me understand why bash returns a "command not found" when I do either of the following? ls | more perl Note that I have the complete set of libraries/tools installed for Cygwin version 1.5.25-14 (Setup.exe version 2.573.2.2). I can understand that I might have to

Re: Get the cygwin PID of a Win PID

2008-06-27 Thread Borislav Ivanov
>>> bash-3.2$ ps -W | grep mysql >>> 9924572 992 5900 con 500 14:35:13 >>> /drives/d/mysql/bin/mysqld-nt >>> 5900 0 0 5900?0 14:35:14 >>> d:\mysql\bin\mysqld-nt.exe > >ps -W does not have a perfect algorithm for knowing when to mask the >windows

Re: Fwd: md5sum using Cygwin in Windows

2008-06-27 Thread Zheng Li
Ben wrote: "The project is geared towards people who understand a UNIX(tm) environment. If that isn't you, then it's hard to see why you're dabbling with Ubuntu." If I don't understand UNIX, then it's hard to see why I'm dabbling with Ubuntu? Is that a mistype? Did you mean to say that it's eas

Re: Get the cygwin PID of a Win PID

2008-06-27 Thread Christopher Faylor
On Fri, Jun 27, 2008 at 01:30:19PM +0200, Corinna Vinschen wrote: >On Jun 27 13:58, Borislav Ivanov wrote: >> Thank you again, >> >> I looked further and found out that this happens when I start the >> mysql-nt application from bash. >> >> Here's the result when I start it from cmd - only one pro

Re: sourcing a perl script on cygwin

2008-06-27 Thread Brian Dessent
Florin Barbalau wrote: > I understand that I can call a shell script from a perl script by > using the command: > > exec("shell_script_name"); > > but when proceeding this way I don't have the environment variables > that were set in the perl script. Is there anther way to call the > shell scri

Re: sourcing a perl script on cygwin

2008-06-27 Thread Florin Barbalau
I understand that I can call a shell script from a perl script by using the command: exec("shell_script_name"); but when proceeding this way I don't have the environment variables that were set in the perl script. Is there anther way to call the shell script so that the shell child receives them

Re: Fwd: md5sum using Cygwin in Windows

2008-06-27 Thread Christopher Faylor
On Thu, Jun 26, 2008 at 11:17:25PM -0600, Brian Mathis wrote: >I _also_ think people should spend a modicum of time familiarizing >themselves with something before using it, especially when it allows >them to communicate with others of the human race. One should, before >attempting to communicate

Re: md5sum using Cygwin in Windows

2008-06-27 Thread Phil Bull
Hi Ben, There's a full user guide available on the Cygwin site that you may find useful: http://cygwin.com/docs.html This should offer much more detail than "help cd". There's also a quick-start guide: http://cygwin.com/cygwin-ug-net/ov-ex-win.html Thanks, Phil -- Phil Bull http://www.launc

Re: md5sum using Cygwin in Windows

2008-06-27 Thread pierluca . masala
Try to put a backslash before every space: Documents\ and\ Settings and take care to respect lower and upper cases. Bye On 6/23/08, Ben <[EMAIL PROTECTED]> wrote: > Here , the Ubuntu help says > that if you download Cygwin, you can follow the Linux

Re: sourcing a perl script on cygwin

2008-06-27 Thread Brian Dessent
Florin Barbalau wrote: > thanks for the explication. so I should understand that I can never > run a perl script like this in order to set environment variables for > the calling one ? > > I am very surprised about this problem because this is in the > installation of an Oracle patch. I don't se

Re: sourcing a perl script on cygwin

2008-06-27 Thread Florin Barbalau
Hello Brian, thanks for the explication. so I should understand that I can never run a perl script like this in order to set environment variables for the calling one ? I am very surprised about this problem because this is in the installation of an Oracle patch. many thanks, Florin On 6/27/08,

Re: Get the cygwin PID of a Win PID

2008-06-27 Thread Corinna Vinschen
On Jun 27 12:20, Markus Hoenicka wrote: > Quoting Corinna Vinschen >> On Jun 27 10:31, Borislav Ivanov wrote: >>> ps output is: >>> >>> D:\>ps -W | grep mysql >>> 2744 11384 1980? 18 15:07:22 >>> /drives/c/mysql/bin/mysqld-nt >>> 1980 0 0 1980?

Re: sourcing a perl script on cygwin

2008-06-27 Thread Brian Dessent
Florin Barbalau wrote: > then If i run: > $ /cygdrive/d/cdb_10_2/content/bin/system/ifssetenv.pl > it works ok. > > but if I try to source as in the calling script (install_cdaa.sh) I > get error messages. : > $ . /cygdrive/d/cdb_10_2/content/bin/system/ifssetenv.pl > bash: use: command not foun

Re: Get the cygwin PID of a Win PID

2008-06-27 Thread Markus Hoenicka
Quoting Corinna Vinschen <[EMAIL PROTECTED]>: On Jun 27 10:31, Borislav Ivanov wrote: ps output is: D:\>ps -W | grep mysql 2744 11384 1980? 18 15:07:22 /drives/c/mysql/bin/mysqld-nt 1980 0 0 1980?0 15:07:23 c:\mysql\bin\mysqld-nt.exe

Re: Get the cygwin PID of a Win PID

2008-06-27 Thread Corinna Vinschen
On Jun 27 13:58, Borislav Ivanov wrote: > Thank you again, > > I looked further and found out that this happens when I start the > mysql-nt application from bash. > > Here's the result when I start it from cmd - only one process listed > with equal cywgin and win PIDs: > > D:>mysql\bin\mysqld-nt

Re: Get the cygwin PID of a Win PID

2008-06-27 Thread Borislav Ivanov
Thank you again, I looked further and found out that this happens when I start the mysql-nt application from bash. Here's the result when I start it from cmd - only one process listed with equal cywgin and win PIDs: D:>mysql\bin\mysqld-nt.exe --defaults-file=conf\mysql.conf bash-3.2$ ps -W | gr

Re: Get the cygwin PID of a Win PID

2008-06-27 Thread Corinna Vinschen
On Jun 27 10:31, Borislav Ivanov wrote: > ps output is: > > D:\>ps -W | grep mysql > 2744 11384 1980? 18 15:07:22 > /drives/c/mysql/bin/mysqld-nt > 1980 0 0 1980?0 15:07:23 > c:\mysql\bin\mysqld-nt.exe What sort of bastard process is that,

Re: cygwin Config{libperl} going dynamic?

2008-06-27 Thread H.Merijn Brand
On Fri, 27 Jun 2008 09:59:12 +0200, Reini Urban <[EMAIL PROTECTED]> wrote: > [sent to both lists, I'll watch both and summarize then] > > I'm quite unhappy with my recent PERL_SUBVERSION stripping from the dll. > > It's a long time since the gnu linker can directly link to a .dll. > On cygwin I

cygwin Config{libperl} going dynamic?

2008-06-27 Thread Reini Urban
[sent to both lists, I'll watch both and summarize then] I'm quite unhappy with my recent PERL_SUBVERSION stripping from the dll. It's a long time since the gnu linker can directly link to a .dll. On cygwin I have more and more problems in the toolchain with the dll naming. installperl has wei

sourcing a perl script on cygwin

2008-06-27 Thread Florin Barbalau
Hello, I have a windows server 2003 installation and I try to sun a script for an Oracle patch installation. I installed cygwin. The files in question are two and they have more or less the following content: install_cdaa.sh #!/bin/sh # Check if ORACLE_HOME has been set

Re: Get the cygwin PID of a Win PID

2008-06-27 Thread Borislav Ivanov
Thank you Reini. However when I use this function it returns -1. Here's my program, sample output and strace snip: #include #include #include #include #include pid_t pid; pid_t cygwin_pid; int res; extern pid_t cygwin_winpid_to_pid(int); int main( int argc, char **argv) {