Re: Files disappearing from /bin
Thank you very much. That's exactly what happened. Apparently, AVG now thinks that Cygwin is a virus. I've added it to the exceptions list. From: Sharuzzaman Ahmat Raslan Sent: Friday, July 1, 2022 7:44 AM To: Robert Perlberg Cc: The Cygwin Mailing List Subject: Re: Files disappearing from /bin Hi Robert, The symptoms might be caused by antivirus software running in your PC/laptop. Check in your antivirus logs to see if there are any removal/quarantine action taken by it Thanks On Fri, Jul 1, 2022, 6:30 PM Robert Perlberg wrote: > I'm having a weird problem with Cygwin. I've been running the same > version of Cygwin for 9 years without updating the package or the operating > system (Windows 8). Everything has been working great for 9 years, but now > whenever I use the package, files disappear from the /bin directory. > Specifically, whatever executables are running at the time will disappear. > Does anyone have any idea what might be causing this? > > -- > Problem reports: https://cygwin.com/problems.html > FAQ: https://cygwin.com/faq/ > Documentation:https://cygwin.com/docs.html > Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple > -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation:https://cygwin.com/docs.html Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple
Files disappearing from /bin
I'm having a weird problem with Cygwin. I've been running the same version of Cygwin for 9 years without updating the package or the operating system (Windows 8). Everything has been working great for 9 years, but now whenever I use the package, files disappear from the /bin directory. Specifically, whatever executables are running at the time will disappear. Does anyone have any idea what might be causing this? -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation:https://cygwin.com/docs.html Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple
Re: Mapping underline to colour - how is the colour determined?
On Oct 15, 2011, at 4:19 AM, Andy Koppe wrote: On 14 October 2011 14:18, Ronald Fischer wrote: When I (to give an example) execute a man command within a mintty window, and do the same within a normal Windows console window, I see that those words represented as underlined words in the mintty window, are represented by a different colour in the Windows console windows. I guess this different has nothing to do with the man command, but by the way the terminal definition says how render emphasized words. Since the Windows console (likely) can't underline, colouring is used. It's kind of a terminal property. Do I understand this correctly? Yep. I would like to understand, where this mapping to a certain colour is done. Reason is that the colour used for my Windows console window, is a bit hard to read and I would like to change it. It's hardcoded in the Cygwin DLL (in winsup/cygwin/fhandler_console.cc), so you'd have to build that yourself to change it. Getting man/groff to use something other than the underline attribute might be the better approach, but I don't know how to do that. Andy The Graphic Rendition of the text is controlled by a facility called Terminfo. Here's how you can change it. First, do: printenv TERM This should display cygwin as the terminal type. If not, replace cygwin in the following instructions with whatever terminal type you are using. The terminfo files are stored under /usr/share/terminfo. If you look there you will see several subdirectories with one and two-character names. Each terminfo entry is stored in a subdirectory which corresponds to the ASCII value of its first character in hex, so the cygwin file is in the 63 directory. You will also find a copy under the c directory, but that's not the one the system uses. I presume that the one-character directories are for backwards compatibility. Make a backup copy of the cygwin file so you can restore the original functionality in case you mess things up. Now go create a new working directory somewhere, perhaps under your home directory. In there, type: infocmp cygwin cygwin.txt This will convert the binary terminfo file from /usr/share/terminfo/63 into a text file you can examine and edit. Edit the file with the text editor of your choice and locate the capabilities smul and rmul. smul specifies the escape sequence that will be used to introduce underlined characters, and rmul is the sequence that turns this mode off. Set these values to whatever produces the effect you desire. (More on this below.) After editing the source file, type: tic cygwin.txt This compiles the source file back into the binary format and overwrites the original binary file in /usr/share/terminfo/63. There are ways to redirect it to another directory, but I'll leave you to figure that out for yourself. (man tic) Now run the man command and see if it produces the effect you want. As for how to figure out what escape sequence to use, unpack the attached file sgr_options,txt and cat it in the desired terminal window. Use cat rather than less or any other program that will filter the file contents. This will show you the effects of the different options to the SGR (Set Graphic Rendition) escape sequence. For rmul just use \E[0m which turns off all modes. \E[1m [1mThe quick brown fox...[0m \E[2m [2mThe quick brown fox...[0m \E[3m [3mThe quick brown fox...[0m \E[4m [4mThe quick brown fox...[0m \E[5m [5mThe quick brown fox...[0m \E[6m [6mThe quick brown fox...[0m \E[7m [7mThe quick brown fox...[0m \E[8m [8mThe quick brown fox...[0m \E[9m [9mThe quick brown fox...[0m \E[10m [10mThe quick brown fox...[0m \E[11m [11mThe quick brown fox...[0m \E[12m [12mThe quick brown fox...[0m \E[13m [13mThe quick brown fox...[0m \E[14m [14mThe quick brown fox...[0m \E[15m [15mThe quick brown fox...[0m \E[16m [16mThe quick brown fox...[0m \E[17m [17mThe quick brown fox...[0m \E[18m [18mThe quick brown fox...[0m \E[19m [19mThe quick brown fox...[0m \E[20m [20mThe quick brown fox...[0m \E[21m [21mThe quick brown fox...[0m \E[22m [22mThe quick brown fox...[0m \E[23m [23mThe quick brown fox...[0m \E[24m [24mThe quick brown fox...[0m \E[25m [25mThe quick brown fox...[0m \E[26m [26mThe quick brown fox...[0m \E[27m [27mThe quick brown fox...[0m \E[28m [28mThe quick brown fox...[0m \E[29m [29mThe quick brown fox...[0m \E[30m [30mThe quick brown fox...[0m \E[31m [31mThe quick brown fox...[0m \E[32m [32mThe quick brown fox...[0m \E[33m [33mThe quick brown fox...[0m \E[34m [34mThe quick brown fox...[0m \E[35m [35mThe quick brown fox...[0m \E[36m [36mThe quick brown fox...[0m \E[37m [37mThe quick brown fox...[0m \E[38m [38mThe quick brown fox...[0m \E[39m [39mThe quick brown fox...[0m \E[40m [40mThe quick brown fox...[0m \E[41m [41mThe quick brown
Re: how to run a .bat or .cmd file from bash prompt
cmd /c batch_file [arguments ...] This is such an original idea. I wish the Unix shell had something like that. -c -c -c -c -c -c -c -c -c -c -c -c -c -c -c -c -c -c -c -c -c -c -c - c -c -c -c -c -c -c -c -c On Sep 16, 2011, at 3:03 PM, J.V. wrote: To run a .bat or .cmd file, I can do this: $cmd C:mybat.bat or C:\mycmd.cmd In other words, I have to type two commands (one to get to the shell, and another to run the .bat or .cmd file). What I want is to write a shell script (bash), that will cd to a directory, enter the dos cmd prompt and execute a .bat file and then return to my bash shell. I do not know if this is possible, have tried many things, but nothing works. thanks J.V. -- 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 -- 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.9(0.237/5/3): not seeing some Windows files
Very interesting. Thank you for that information. My goal here is to run ntbackup via ssh. Based on this information I copied ntbackup.exe to another folder that does not get redirected and I can invoke it from there via ssh. It seems to run fine, so I question why Microsoft chose to make it inaccessible to 32 bit apps. My concern is that now I have to keep track of when ntbackup.exe gets updated and update the copy. On Sep 14, 2011, at 5:48 PM, Greg Chicares wrote: On 2011-09-14 21:35Z, Robert Perlberg wrote: Microsoft Windows XP Professional x64 Edition Version 2003 Service Pack 2 [and some files in C:\WINDOWS\system32 aren't seen by 'ls'] Perhaps some files are hidden as described here: http://cygwin.com/ml/cygwin/2006-01/msg00444.html -- 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 -- 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
1.7.9(0.237/5/3): not seeing some Windows files
Cygwin does not seem to be seeing certain Windows files, specifically ntbackup.exe. Ex: cd /cygdrive/c/WINDOWS/system32 ls -ld nt* yields: -rwxrwx---+ 1 Administrators SYSTEM 778240 Nov 8 2010 ntdll.dll -rwxrwx---+ 1 Administrators SYSTEM 71680 Feb 18 2007 ntdsapi.dll -rwxrwx---+ 1 Administrators SYSTEM 29696 Feb 18 2007 ntdsbcli.dll -rwxrwx---+ 1 Administrators SYSTEM 44032 Feb 18 2007 ntlanman.dll -rwxrwx---+ 1 Administrators SYSTEM 58368 Mar 25 2005 ntlanui.dll -rwxrwx---+ 1 Administrators SYSTEM 15360 Mar 25 2005 ntlanui2.dll -rwxrwx---+ 1 Administrators SYSTEM 8192 Mar 25 2005 ntlsapi.dll -rwxrwx---+ 1 Administrators SYSTEM 121856 Feb 18 2007 ntmarta.dll -rwxrwx---+ 1 Administrators SYSTEM 45056 Feb 18 2007 ntmsapi.dll -rwxrwx---+ 1 Administrators SYSTEM 99840 Feb 18 2007 ntprint.dll -rwxrwx--- 1 Administrators SYSTEM 40960 Feb 18 2007 ntsd.exe -rwxrwx---+ 1 Administrators SYSTEM 142848 Feb 18 2007 ntshrui.dll -rwxrwx---+ 1 Administrators SYSTEM 12800 Mar 25 2005 ntvdm64.dll Note that ntbackup.exe is not in the list, although Windows Explorer shows that it's there. -- 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.9(0.237/5/3): not seeing some Windows files
Microsoft Windows XP Professional x64 Edition Version 2003 Service Pack 2 On Sep 14, 2011, at 5:27 PM, Marco atzeri wrote: On 9/14/2011 11:15 PM, Robert Perlberg wrote: Cygwin does not seem to be seeing certain Windows files, specifically ntbackup.exe. Ex: cd /cygdrive/c/WINDOWS/system32 ls -ld nt* yields: -rwxrwx---+ 1 Administrators SYSTEM 778240 Nov 8 2010 ntdll.dll -rwxrwx---+ 1 Administrators SYSTEM 71680 Feb 18 2007 ntdsapi.dll -rwxrwx---+ 1 Administrators SYSTEM 29696 Feb 18 2007 ntdsbcli.dll -rwxrwx---+ 1 Administrators SYSTEM 44032 Feb 18 2007 ntlanman.dll -rwxrwx---+ 1 Administrators SYSTEM 58368 Mar 25 2005 ntlanui.dll -rwxrwx---+ 1 Administrators SYSTEM 15360 Mar 25 2005 ntlanui2.dll -rwxrwx---+ 1 Administrators SYSTEM 8192 Mar 25 2005 ntlsapi.dll -rwxrwx---+ 1 Administrators SYSTEM 121856 Feb 18 2007 ntmarta.dll -rwxrwx---+ 1 Administrators SYSTEM 45056 Feb 18 2007 ntmsapi.dll -rwxrwx---+ 1 Administrators SYSTEM 99840 Feb 18 2007 ntprint.dll -rwxrwx--- 1 Administrators SYSTEM 40960 Feb 18 2007 ntsd.exe -rwxrwx---+ 1 Administrators SYSTEM 142848 Feb 18 2007 ntshrui.dll -rwxrwx---+ 1 Administrators SYSTEM 12800 Mar 25 2005 ntvdm64.dll Note that ntbackup.exe is not in the list, although Windows Explorer shows that it's there. Which MS operating system ? What about following http://www.cygwin.com/problems.html guidelines ? Regards Marco -- 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 -- 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