Processing A Script Too Slow under Cygwin
I tried running a script using both SFU & Cygwin. I noticed that processing a script in Cygwin is a lot slower as compared to using SFU. Is there a way to make the processing faster? -- View this message in context: http://www.nabble.com/Processing-A-Script-Too-Slow-under-Cygwin-tf3826478.html#a10832118 Sent from the Cygwin Users mailing list archive at Nabble.com. -- 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/
bug found with c_rehash and workaround
c_rehash is a program needed for making openssl certificates and is part of the openssl program: an example of use is here:http://www.stunnel.org/examples/client_cert.html c_rehash is a perl script it contain the following lines if(! -x $openssl) { if(-x "$_/$openssl.exe") { this check for openssl beeing executable and if it's not it produce a warning and exit: print STDERR "c_rehash: rehashing skipped ('openssl' program not available)\n"; here's the bug: by default openssl has the following permissions: -rwx--+ 1 the_user_of_the_computer Users 354304 Mar 29 12:17 /usr/bin/openssl and Administrator is in the following groups: $groups Nessuno root Administrators Users PasswordPropDeny but c_rehash produce the following error: c_rehash: rehashing skipped ('openssl' program not available) the solution is to make c_rehash wordly executable... -- 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/
c_rehash(not a bug)
oops i didn't pay attention at the fact that the group wasn't made executable... but the Administrator should be able to run c_rehash no? -- 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: Processing A Script Too Slow under Cygwin
* ilak1008 (Mon, 28 May 2007 00:17:25 -0700 (PDT)) > I tried running a script using both SFU & Cygwin. I noticed that processing a > script in Cygwin is a lot slower as compared to using SFU. Yes, about two times slower is reasonable. > Is there a way to make the processing faster? Yes, profile and optimise you script. -- 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: 1.5.21: inetd telnet connections: fork error
Nick Telepneff wrote: I have installed and run the cygwin inetd telnet server and find that when more than around 16 users connect via telnet the shells start to fail with the following message: 16622413 [main] -bash 3868 fork: child -1 - died waiting for longjmp before initialization, retry 0, exit code 0x80, errno 11 -bash: fork: Resource temporarily unavailable Are these connections starting simultaneously? No, these are user telnet sessions. Each session starts a sh.exe, an in.telnetd.exe and one or more application processes (though so far weâve only loaded 2). Each or these processes takes between 4Mb and 10Mb memory according to Windows task Manager. We need to be able to run at least 24 telnet connections using an average of 3 application processes. The machine weâre using is a Xeon processor with 4Gb Ram running Windows 2000. Normal Xeon or one of the new 2-core Xeons? 2 core - 4 processors Can anyone help? Not at this time, if the answer to my first question is yes then perhaps you are running into a Windows limitation which AFAIK exists only in XP-SP2; if the answer to the second question is yes there has been another thread that reports problems with 2-core processors and possible workarounds. I checked the workarounds and these refer to random fork errors which looked promising, although the errors aren't really random. Using Process Explorer to limit the CPU's used, as suggested, didn't do the trick. Does anyone have a 'plan B'? Thanks Nick _ Play your part in making history - Email Britain! http://www.emailbritain.co.uk/ -- 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/
Problem running C server with Cygwin
Hi to All, sorry for some variable in italian language. I have written a C Server program and I have compiled this with Cygwin without errors. Running the exe file with Cygwin, if the client (telnet) send to Server a word (in italian language "parola"), in the Cygwin window this message is displayed: 5 [main] myserver 2736 _cygtls:: handle_exception: Error while dumping state (probably corrupted stack) This is the source code http://www.nabble.com/file/p10835433/myServer.c myServer.c Can You help me in order to found the reason of this error ? Thank You and Best Regards. Gaetano -- View this message in context: http://www.nabble.com/Problem-running-C-server-with-Cygwin-tf3827749.html#a10835433 Sent from the Cygwin Users mailing list archive at Nabble.com. -- 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: Processing A Script Too Slow under Cygwin
Thorsten Kampe wrote: > > * ilak1008 (Mon, 28 May 2007 00:17:25 -0700 (PDT)) >> I tried running a script using both SFU & Cygwin. I noticed that >> processing a >> script in Cygwin is a lot slower as compared to using SFU. > > Yes, about two times slower is reasonable. > >> Is there a way to make the processing faster? > > Yes, profile and optimise you script. > > > -- > 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/ > > > In fact, my script process a file about 5 sec under SFU while under Cygwin, it takes about 30 sec or longer. I wish to continue using Cygwin. Therefore, is there a better way to make the processing faster without the need of optimizing my script? -- View this message in context: http://www.nabble.com/Processing-A-Script-Too-Slow-under-Cygwin-tf3826478.html#a10836107 Sent from the Cygwin Users mailing list archive at Nabble.com. -- 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: Processing A Script Too Slow under Cygwin
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 According to ilak1008 on 5/28/2007 7:16 AM: > In fact, my script process a file about 5 sec under SFU while under Cygwin, > it takes about 30 sec or longer. I wish to continue using Cygwin. Cygwin is an emulation layer. By its very nature, it is inherently slower than running things natively, because it is an emulation layer. A 6x slowdown is probably extreme, but without knowing why you are getting such a slowdown, we have to assume that it is because your script is doing some fork-heavy manipulation. > Therefore, is there a better way to make the processing faster without the > need of optimizing my script? Without knowing what your script does, and without profiling it to know where the hotspots are, there is nothing we can do. You own your script; you should profile it. One thing that will improve any script's speed is using shell builtins instead of forking external processes. If you are willing to use non-portable bash-isms, there is much speed to be gained this way. And if you really want our help, then post code samples so that we can offer advice on constructs that can be replaced by shell builtins. - -- Don't work too hard, make some time for fun as well! Eric Blake [EMAIL PROTECTED] -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.5 (Cygwin) Comment: Public key at home.comcast.net/~ericblake/eblake.gpg Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGWtf384KuGfSFAYARAs3NAJ9Fj6pHjp6b3SqgAI0wp6WkFFwaNACePB9u HftqtuEAhaQgwtoFtqrgVUc= =pi/K -END PGP SIGNATURE- -- 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: Problem running C server with Cygwin
On 28/05/07, Nick048 wrote: I have written a C Server program and I have compiled this with Cygwin without errors. Running the exe file with Cygwin, if the client (telnet) send to Server a word (in italian language "parola"), in the Cygwin window this message is displayed: 5 [main] myserver 2736 _cygtls:: handle_exception: Error while dumping state (probably corrupted stack) i don't get this error running the code you linked. i'm running "gcc (GCC) 3.4.4 (cygming special, gdc 0.12, using dmd 0.125)" i did notice a simple bug in your program though, line 141 should be: if (NodoTrovato == NULL){ otherwise you never create words in your list. after that, it ran fine. (if by fine you wanted each connection to only add one word to your server) mark -- 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/
Problem of compiling and linking the C/C++ program using WIN32API with GCC
Hi, I am a new CYGWIN user. I actually tried to compile and link a C/C++ program using the 'w32api', more exactly, the '/lib/w32api/libws2_32.a' library, with the following command: $gcc -o myprogram -lws2_32-c myprogram.c But, I always got the error messages from the 'ld' linker dynamic, such as: - "Undefined reference to '[EMAIL PROTECTED]'" - "Undefined reference to '[EMAIL PROTECTED]'" - "Undefined reference to '[EMAIL PROTECTED]'" - "Undefined reference to '[EMAIL PROTECTED]'" - "Undefined reference to '[EMAIL PROTECTED]'" - etc... "collect2: ld returned 1 exit status" This means that the linker dynamic 'ld' is unable to find and open the corresponding 'libws2_32.a' library file. I've also tried several other solutions, such as: $ gcc -o myprogram -L /usr/lib -lws2_32 -c myprogram.c or $ gcc -o myprogram-l /usr/lib/w32api/libws2_32.a -c myprogram.c With these solutions, I've got the error message from 'ld' like this: "Cannot find the -l/usr/lib/w32api/libws2_32.a" "collect2: ld returned 1 exit status" Someone can help me to resolve this problem Thanks, -- 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: Problem of compiling and linking the C/C++ program using WIN32API with GCC
On 28 May 2007 14:42, Alain Nguyen wrote: > Hi, > > I am a new CYGWIN user. > > I actually tried to compile and link a C/C++ program using the 'w32api', > more exactly, the '/lib/w32api/libws2_32.a' library, with the following > command: > > $gcc -o myprogram -lws2_32-c myprogram.c > > But, I always got the error messages from the 'ld' linker dynamic, such as: No you don't, not with that command, because the -c tells gcc not to invoke the linker. You would in fact get the error message "gcc: -lws2_32: linker input file unused because linking not done". > > - "Undefined reference to '[EMAIL PROTECTED]'" > - "Undefined reference to '[EMAIL PROTECTED]'" > - "Undefined reference to '[EMAIL PROTECTED]'" > - "Undefined reference to '[EMAIL PROTECTED]'" > - "Undefined reference to '[EMAIL PROTECTED]'" > - etc... > > "collect2: ld returned 1 exit status" > > This means that the linker dynamic 'ld' is unable to find and open the > corresponding 'libws2_32.a' library file. Nope, it means it opens it, reads any functions out of it that are already required by earlier inputs, closes it, then opens your program file and fails to link. Ordering of linker inputs is significant, dependencies must come after the things that depend on them and generally this means that libs should always come last. Try gcc -o myprogram myprogram.c -lws2_32 cheers, DaveK -- Can't think of a witty .sigline today -- 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: Problem running C server with Cygwin
Thank You for reply. I use the same version and as Client telnet from command line. But the error is the same. Thank for the notice over bug. Gaetano Mark Fisher wrote: > > i don't get this error running the code you linked. > i'm running "gcc (GCC) 3.4.4 (cygming special, gdc 0.12, using dmd 0.125)" > > i did notice a simple bug in your program though, line 141 should be: > > if (NodoTrovato == NULL){ > > otherwise you never create words in your list. > > after that, it ran fine. > (if by fine you wanted each connection to only add one word to your > server) > -- View this message in context: http://www.nabble.com/Problem-running-C-server-with-Cygwin-tf3827749.html#a10836998 Sent from the Cygwin Users mailing list archive at Nabble.com. -- 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: Processing A Script Too Slow under Cygwin
* ilak1008 (Mon, 28 May 2007 06:16:33 -0700 (PDT)) > Thorsten Kampe wrote: > > * ilak1008 (Mon, 28 May 2007 00:17:25 -0700 (PDT)) > >> I tried running a script using both SFU & Cygwin. I noticed that > >> processing a > >> script in Cygwin is a lot slower as compared to using SFU. > > > > Yes, about two times slower is reasonable. > > > >> Is there a way to make the processing faster? > > > > Yes, profile and optimise you script. > > > In fact, my script process a file about 5 sec under SFU while under Cygwin, > it takes about 30 sec or longer. I wish to continue using Cygwin. > Therefore, is there a better way to make the processing faster without the > need of optimizing my script? Not that I'm aware of... T. -- 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/
file permissions on vista
Hi, I have the latest version of cygwin installed CYGWIN_NT-6.0 cecile 1.5.24(0.156/4/2) 2007-01-31 10:57 i686 Cygwin When create a file or a folder in vista (using the explorer or a windows application), the file or folder is created without any right (like when a chmod 000 is applied). This is a problem when you do a rsync. I can apply a chmod -R u+rwx * on the root folder, but this is not really clean. Is it a known but of cygwin on vista, or is it a consequence of the new security model introduced in vista (that I am not sure I understand). In the later case, is there something to configure in order to solve this issue? In case there is a patch for this problem, I can help testing it. Regards, Arnaud. -- 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: file permissions on vista
Arnaud Legout wrote: > I have the latest version of cygwin installed > CYGWIN_NT-6.0 cecile 1.5.24(0.156/4/2) 2007-01-31 10:57 i686 Cygwin > > When create a file or a folder in vista (using the explorer or a windows > application), > the file or folder is created without any right (like when a chmod 000 > is applied). > > This is a problem when you do a rsync. > > I can apply a > chmod -R u+rwx * > on the root folder, but this is not really clean. > > Is it a known but of cygwin on vista, or is it a consequence > of the new security model introduced in vista (that I am not sure I > understand). > In the later case, is there something to configure in order to solve > this issue? I can't reproduce this. I right click and create a new Notepad file foo.txt, it has the permissions: $ ls -l foo.txt -rwx--+ 1 Administrators None 0 May 28 14:40 foo.txt [EMAIL PROTECTED] /c/users/brian $ getfacl foo.txt # file: foo.txt # owner: Administrators # group: None user::rwx user:brian:rwx group::--- group:SYSTEM:rwx mask:rwx other:--- This looks normal, I see the exact same behavior in Windows XP, except the owner is my user instead of the Administrators group, but I think there's a policy setting that controls this. The permissions on a file created with native Windows methods should inherit from the parent folder, following standard NTFS rules, so maybe you need to look at what the containing folder's permissions are set to. Brian -- 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: Processing A Script Too Slow under Cygwin
ilak1008 wrote: In fact, my script process a file about 5 sec under SFU while under Cygwin, it takes about 30 sec or longer. I wish to continue using Cygwin. Therefore, is there a better way to make the processing faster without the need of optimizing my script? Strange. While cygwin may be no speed demon next to native win32 apps, when I last did timing tests between SFU and Cygwin, Cygwin was faster by a few noses (which meant Cygwin was pretty good at what it does given the MS's own unix emulation layer was slower). Must be something in your workload that's putting the brakes on Cygwin. Can you post an example of what you are talking about? In my case, I was timing file-system-wide "find" commands that were looking for files to cleanup (like old core files, tmp files...etc). What are you doing in your script? Perhaps you're hitting some network timeout somewhere? Linda W. -- 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: dd image onto a usb key
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mohammed Iqbal.H wrote: > Hi > > Thanks ,it worked. > > Thanks again > iqbal > > > --- Marco Atzeri <[EMAIL PROTECTED]> wrote: > >> --- "Mohammed Iqbal.H" ha scritto: >>> dd if={.dd image} of=/cygdrive/e >>> >>> As 'e' is the USB key. >>> >>> error message: >>> >>> dd :opening '/cygdrive/e':Is a directory >> /cygdrive/e is a mount point >> >> To have a hint about the device name >> >> $ cat /proc/partitions >> major minor #blocks name >> >> 8 0 39070080 sda >> 8 1 39062488 sda1 >> 816 1006592 sdb >> 817 1006576 sdb1 >> >> my USB key is /dev/sdb >> and the 1st partition is /dev/sdb1 >> >> dd if=/dev/sdb1 of=/tmp/usbkey_partition_image >> 2013152+0 records in >> 2013152+0 records out >> 1030733824 bytes (1.0 GB) copied, 165.357 s, 6.2 >> MB/s >> >> $ dd if=/dev/sdb of=/tmp/usbkey_image >> 2013184+0 records in >> 2013184+0 records out >> 1030750208 bytes (1.0 GB) copied, 196.923 s, 5.2 >> MB/s >> >> >> I am not responsable if you destroy you USB key >> playing with dd. >> >>> Thanks >>> iqbal >> >> Regards >> Marco >> >> >> >> ___ >> L'email della prossima generazione? Puoi averla con >> la nuova Yahoo! Mail: >> http://it.docs.yahoo.com/nowyoucan.html >> >> -- >> 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/ >> >> > > > > > Ready > for the edge of your seat? > Check out tonight's top picks on Yahoo! TV. > http://tv.yahoo.com/ > > -- > 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/ > > well, you could MOUNT the image and COPY the files over, but thats a really tricky thing to do in cygwin (none of my attempts have worked) You'd be mounting the image on, say, /mnt/usbImage/, as a Loopback mount. or change its extention to .iso and open it with 7zip File Manager Just a thought, morgan Gangwere -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGW2JECF9T/dUsmAgRAu9ZAKCH4uEY5OzJSyPQ4TpR1NYDuDn7sgCgu+7E p6dKpATySE2iym2wmQFGY44= =arj6 -END PGP SIGNATURE- -- 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: registry's role, or "must I install on client madhines"
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Joseph Michaud wrote: > Christopher Faylor wrote: >> On Wed, May 23, 2007 at 10:00:49AM -0400, Joseph Michaud wrote: >>> I have cygwin installed on a Windows share. I'm trying to use it >>> from another Windows client machine (on which it was never installed) >>> by simply running the bash executable using the UNC path >>> (//share/cygwin/bin/bash.exe -l -i). This isn't working. >>> ... >>> The only other thing I can think of is that the registry is >>> being set up when you do an install and that these registry entries >>> are required when bash is invoked. >>> >>> Are registry entries referenced when running bash? >> >> Cygwin, (somewhat) like linux, sets up a mount table which creates a >> root directory, bin directory and other directories. You can see what's >> created by typing "mount". >> >> The fact that this information is stored in the registry is irrelevant >> (and WILL change eventually). You should use the mount command to >> see how things are set up. >> >>> Is it possible to setup cygwin so that it may be used from a share >>> without having been installed on the client machine? >> >> Possibly. You don't absolutely need the mount table (with the possible >> exception of /tmp) but, if you want to have bash set things up >> automatically, you will need to investigate how bash works, set the >> appropriate environment variables, and use the appropriate command line >> switches. >> >> info bash >> >> may help. Also check out "man mount" paying particular attention to >> "mount -m". >> > > Bingo! That's the trick. As soon as I ran the appropriate mount > commands on my client machines (specifying //share/cygwin...) > everything worked. > > Thanks. > > Joe > > -- > 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/ > > blxt? windows has a way to make //server/share/ mounts look like g:\ filesystems just open up Windows Explorer and check out "Tools/Mount Network Drive" an easy hack to make the system coherent is to use some tool like partitionMagic to make the boot drive something like "U:\" and have cygwin installed in "U:\Cygwin\Cygwin" - on the client machines, mount the network drive onto "U" and it'll run like a charm. convoluted but failsafe just a thought, Morgan Gangwere -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGW2RbCF9T/dUsmAgRAmnXAJ9eMWiI/i5B7htbKA9Q8qyhHL4Z5wCffpJM mc9iam95VCfxZzf4BlQGTt8= =FNr3 -END PGP SIGNATURE- -- 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: OCaml package hasn't updated for a while [new acronym for OLOCA?]
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Matthew Woehlke wrote: > Wei-Hao Lin wrote: >> OCaml 3.10 is just released. The Cygwin ocaml package generously >> contributed by Igor Pechtchanski in 2004, however, is still 3.08.1. >> Although OCaml can be compiled under Cygwin without any change, surely >> it will save some time if OCaml package is updated and made available >> via Cygwin distribution. > > Maintainers Thoughtfully Considered? :-) > another acronym for the list? Just a thought, Morgan gangwere -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGW2T+CF9T/dUsmAgRAq7mAKCPJhtbJpm1ez9RpL7dzCccGjgQLwCg3cdb PH/RaGp3TR6LrRXm37jtA8I= =M57A -END PGP SIGNATURE- -- 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: registry's role, or "must I install on client madhines"
On Mon, May 28, 2007 at 05:23:07PM -0600, morgan gangwere wrote: >-BEGIN PGP SIGNED MESSAGE- >Hash: SHA1 > >Joseph Michaud wrote: >> Christopher Faylor wrote: >>> On Wed, May 23, 2007 at 10:00:49AM -0400, Joseph Michaud wrote: I have cygwin installed on a Windows share. I'm trying to use it from another Windows client machine (on which it was never installed) by simply running the bash executable using the UNC path (//share/cygwin/bin/bash.exe -l -i). This isn't working. ... The only other thing I can think of is that the registry is being set up when you do an install and that these registry entries are required when bash is invoked. Are registry entries referenced when running bash? >>> >>> Cygwin, (somewhat) like linux, sets up a mount table which creates a >>> root directory, bin directory and other directories. You can see what's >>> created by typing "mount". >>> >>> The fact that this information is stored in the registry is irrelevant >>> (and WILL change eventually). You should use the mount command to >>> see how things are set up. >>> Is it possible to setup cygwin so that it may be used from a share without having been installed on the client machine? >>> >>> Possibly. You don't absolutely need the mount table (with the possible >>> exception of /tmp) but, if you want to have bash set things up >>> automatically, you will need to investigate how bash works, set the >>> appropriate environment variables, and use the appropriate command line >>> switches. >>> >>> info bash >>> >>> may help. Also check out "man mount" paying particular attention to >>> "mount -m". >>> >> >> Bingo! That's the trick. As soon as I ran the appropriate mount >> commands on my client machines (specifying //share/cygwin...) >> everything worked. >> >> Thanks. >> >> Joe >> >> -- >> 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/ >> >> > >blxt? >windows has a way to make //server/share/ mounts look like g:\ filesystems >just open up Windows Explorer and check out "Tools/Mount Network Drive" >an easy hack to make the system coherent is to use some tool like >partitionMagic to make the boot drive something like "U:\" and have >cygwin installed in "U:\Cygwin\Cygwin" - on the client machines, mount >the network drive onto "U" and it'll run like a charm. > >convoluted but failsafe Going to the extra step of mounting a remote drive when you can jus reference it in cygwin's mount command does not qualify as failsafe to me. In addition to needing to mount the drive letter, doing that means that every system that you use has to have the same drive letter free. -- 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: file permissions on vista
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Brian Dessent wrote: > Arnaud Legout wrote: > >> I have the latest version of cygwin installed >> CYGWIN_NT-6.0 cecile 1.5.24(0.156/4/2) 2007-01-31 10:57 i686 Cygwin >> >> When create a file or a folder in vista (using the explorer or a windows >> application), >> the file or folder is created without any right (like when a chmod 000 >> is applied). >> >> This is a problem when you do a rsync. >> >> I can apply a >> chmod -R u+rwx * >> on the root folder, but this is not really clean. >> >> Is it a known but of cygwin on vista, or is it a consequence >> of the new security model introduced in vista (that I am not sure I >> understand). >> In the later case, is there something to configure in order to solve >> this issue? > > I can't reproduce this. I right click and create a new Notepad file > foo.txt, it has the permissions: > > $ ls -l foo.txt > -rwx--+ 1 Administrators None 0 May 28 14:40 foo.txt > > [EMAIL PROTECTED] /c/users/brian > $ getfacl foo.txt > # file: foo.txt > # owner: Administrators > # group: None > user::rwx > user:brian:rwx > group::--- > group:SYSTEM:rwx > mask:rwx > other:--- > > This looks normal, I see the exact same behavior in Windows XP, except > the owner is my user instead of the Administrators group, but I think > there's a policy setting that controls this. > > The permissions on a file created with native Windows methods should > inherit from the parent folder, following standard NTFS rules, so maybe > you need to look at what the containing folder's permissions are set to. > > Brian > > -- > 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/ > > UAC (User Ass Control) is playing hell with me - i turned it off and no problems since I rebooted. also, TURN OFF WINDOWS LIVE ONECARE, it is an axe to Cygwin. Also, Cygwin will vewry often NOT run on Vista Home because certain things seem to be missing. 1 - Turn Off UAC 2 - Turn Off Live One Care 3 - reboot thats what I did and it worked. Just a thought, Morgan Gangwewre -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGW2a9CF9T/dUsmAgRAvWGAJ49lsAhamYNC2x+3eRdeKDAzFCCnACg3NO2 qt6Malrf/HDHW9PjH/zDQqA= =r5Gf -END PGP SIGNATURE- -- 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: dd image onto a usb key
morgan gangwere wrote: > well, you could MOUNT the image and COPY the files over, but thats a > really tricky thing to do in cygwin (none of my attempts have worked) It's "really tricky" because it's impossible. The mount command in Cygwin simply manipulates a table of path translation entries, e.g. "c:/cygwin/bin = /bin". It is not a mount command like you'd find in Linux, it cannot do a loopback mount or anything like that. Cygwin is not a kernel, it does not implement any filesystem drivers. If you want to mount an ISO image, you need to use a native Windows tool, like Daemon Tools, Alcohol 120%, and I'm sure countless others. Once the image is mounted as a drive letter you can of course add Cygwin mount entries to locate it where you want it in the POSIX filespace, but again that's just doing a glorified search/replace on the pathname, which is all the Cygwin mount table amounts to. Brian -- 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/
SWIG: Python 2.5
SWIG maintainer, Support for Python 2.5 was added to SWIG in >= 1.3.30, but the distro has curr: 1.3.29-2. As Python 2.5 is now in the distro, a SWIG update is imperative to those of us building Python extensions. Yaakov Cygwin Ports -- 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: dd image onto a usb key
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Brian Dessent wrote: > morgan gangwere wrote: > >> well, you could MOUNT the image and COPY the files over, but thats a >> really tricky thing to do in cygwin (none of my attempts have worked) > > It's "really tricky" because it's impossible. The mount command in > Cygwin simply manipulates a table of path translation entries, e.g. > "c:/cygwin/bin = /bin". It is not a mount command like you'd find in > Linux, it cannot do a loopback mount or anything like that. Cygwin is > not a kernel, it does not implement any filesystem drivers. If you want > to mount an ISO image, you need to use a native Windows tool, like > Daemon Tools, Alcohol 120%, and I'm sure countless others. Once the > image is mounted as a drive letter you can of course add Cygwin mount > entries to locate it where you want it in the POSIX filespace, but again > that's just doing a glorified search/replace on the pathname, which is > all the Cygwin mount table amounts to. > > Brian > > -- > 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/ > > thanks. I assumed Cygwin could handle mounting loopbacks, though I guess I was wrong. just a thought, Morgan Gangwewre -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGW2uuCF9T/dUsmAgRAlUtAJ9jb/Fazqk/a/SJoDaABq1RoqoRjQCdGKGE pVvHx+mL+9SDxTCXa6ZA3K8= =r8m5 -END PGP SIGNATURE- -- 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/
Build problems - unistd.h
I'm building dbus-glib from source and I get this error when I make: In file included from /usr/include/unistd.h:4, from dbus-binding-tool-glib.c:39: /usr/include/sys/unistd.h:108: error: parse error before numeric constant Ideas? -- Scott. -- 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: Build problems - unistd.h
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 According to Scott Peterson on 5/28/2007 8:07 PM: > I'm building dbus-glib from source and I get this error when I make: > > In file included from /usr/include/unistd.h:4, > from dbus-binding-tool-glib.c:39: > /usr/include/sys/unistd.h:108: error: parse error before numeric constant > > Ideas? Use gcc -E to look at the preprocessed source, and see what namespace collision was caused somewhere in lines 1-38 of dbus-binding-tool-glib.c that caused the syntax error? - -- Don't work too hard, make some time for fun as well! Eric Blake [EMAIL PROTECTED] -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.5 (Cygwin) Comment: Public key at home.comcast.net/~ericblake/eblake.gpg Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGW4+G84KuGfSFAYARAnKDAJ4vvkohSpWEHPcAOSV+IT/HpVRT0wCg0Urq Y+BZ4YDLqlw5Dt52BpGbdto= =vuiV -END PGP SIGNATURE- -- 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: Build problems - unistd.h
Scott Peterson wrote: > I'm building dbus-glib from source and I get this error when I make: > > In file included from /usr/include/unistd.h:4, > from dbus-binding-tool-glib.c:39: > /usr/include/sys/unistd.h:108: error: parse error before numeric constant > > Ideas? There's not enough information here to really be able say much, but if I had to guess I'd say that something included prior to that header has polluted the macro namespace. This is easy enough to check by just looking at the preprocessed source. Brian -- 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/