Re: Command expansion inside for loop

2020-07-07 Thread Mike Brown
On Tue, Jul 07, 2020 at 04:45:28PM -0500, Mike Brown wrote: > On Tue, Jul 07, 2020 at 04:17:43PM -0500, Mike Brown wrote: > > Several years ago I was provided with info on how to get command expansion > > to work inside for loops. I run under Zsh. It was done for the install >

Re: Command expansion inside for loop

2020-07-07 Thread Mike Brown
On Tue, Jul 07, 2020 at 04:17:43PM -0500, Mike Brown wrote: > Several years ago I was provided with info on how to get command expansion > to work inside for loops. I run under Zsh. It was done for the install that > I have under XP. I've since installed cygwin under Win7-64 a

Command expansion inside for loop

2020-07-07 Thread Mike Brown
Several years ago I was provided with info on how to get command expansion to work inside for loops. I run under Zsh. It was done for the install that I have under XP. I've since installed cygwin under Win7-64 and want to get the expansion working again, but do not remember what was done to get

Zsh and wildcards

2019-02-19 Thread Mike Brown
Zsh 5.3 under Win7-64 I'm trying to do the following: mv TSMUXER/*.ac3 TSMUXER/txmuxer.ac3 The problem is the the * is not being expanded. I have no idea why not. Any tips will be appreciated. MB -- e-mail: vid...@vidiot.com | vid...@vidiot.net/~\ The ASCII 6082066...

Re: rxvt won't stay running

2017-06-23 Thread Mike Brown
On Fri, Jun 23, 2017 at 03:31:05PM +0100, Jon Turney wrote: > See https://cygwin.com/ml/cygwin-announce/2016-03/msg00100.html Thanks. > To be clear: rxvt still works as an X terminal (although if you have need > of such a thing, I'd strongly suggest you stop using rxvt and instead use > somethin

Re: rxvt won't stay running

2017-06-22 Thread Mike Brown
On Thu, Jun 22, 2017 at 09:12:45AM -0500, Ren?? Berber wrote: > On 6/22/2017 4:45 AM, Mike Brown wrote: > > > I've installed the latest (as of this writing) Cygwin base and a few other > > packages. > [snip] > > Any ideas why it is failing? Something y

Re: rxvt won't stay running

2017-06-22 Thread Mike Brown
On Thu, Jun 22, 2017 at 09:48:43AM -0400, cyg Simple wrote: > On 6/22/2017 5:45 AM, Mike Brown wrote: > > I've installed the latest (as of this writing) Cygwin base and a few other > > packages. > > > > You don't say if it was 32 or 64 bit. But ... Sorry, 64

rxvt won't stay running

2017-06-22 Thread Mike Brown
I've installed the latest (as of this writing) Cygwin base and a few other packages. I have a startup batch file on my XP box that I copied over to the new Win7 box (modifying the HOME variable to match the new box). I also copied over the home directory from the XP box, so that I can get the .z*

Re: Windows XP Support

2016-01-10 Thread Mike Brown
I've been using cygwin on XP (SP2 and then SP3), both 32 bit and 64 bit, for ages now. I actually tried upgrading once, but had to go back to what I am currently running because cron was broken. It refused to start, no matter what. After returning to the previous install, it started right up. T

Re: Mounting a network share

2015-11-02 Thread Mike Brown
On Mon, Nov 02, 2015 at 05:26:51PM +0100, Corinna Vinschen wrote: > On Nov 2 10:03, Mike Brown wrote: > > On Mon, Nov 02, 2015 at 04:40:33AM +0300, Andrey Repin wrote: > > > If you want to do it from Cygwin side, use fstab and don't use /cygdrive > > > prefix.

Re: Mounting a network share

2015-11-02 Thread Mike Brown
On Mon, Nov 02, 2015 at 04:40:33AM +0300, Andrey Repin wrote: > If you want to do it from Cygwin side, use fstab and don't use /cygdrive > prefix. It is for automatic mounts ONLY. I went and found the Cygwin web page that describes fstab. What it doesn't say is how to use it. I have the followin

Re: Mounting a network share

2015-11-01 Thread Mike Brown
On Mon, Nov 02, 2015 at 04:40:33AM +0300, Andrey Repin wrote: > net use //host/resource[/path] P: * /PERSISTENT /SAVECRED I got the following to be accepted: net use \\192.168.1.40\Public password /user:brown /persistant:yes The syntax doesn't have a place to where it should be mounted. But, if

Mounting a network share

2015-11-01 Thread Mike Brown
I'm remotely loggin in to my P box and would lke to mount one of the NAS Samba shares. M$ likes to unmount the share after a period of time, but because it was mounted, the pasword is needed (I hope). When I try the following: mount \\192.168.1.40\Public /cygdrive/p I get an invalid option.

Re: how to embed shell script within a .BAT file

2014-11-09 Thread Mike Brown
On Mon, Nov 10, 2014 at 05:10:00AM +0300, Andrey Repin wrote: > Greetings, Mike Brown! > > >> > I'm tired of creating pairs of script files: a clickable .BAT file > >> > to invoke my shell script and then my shell script to do the actual > >> >

Re: how to embed shell script within a .BAT file

2014-11-09 Thread Mike Brown
On Mon, Nov 10, 2014 at 12:58:07AM +0300, Andrey Repin wrote: > Greetings, Nellis, Kenneth! > > > I'm tired of creating pairs of script files: a clickable .BAT file > > to invoke my shell script and then my shell script to do the actual > > work. > > google: cygwin shell wrapper script > I post

Re: Cygwin for Fedora?

2012-03-08 Thread Mike Brown
On Thu, Mar 08, 2012 at 01:50:37PM +0530, Harry Simons wrote: > My intent is not to emulate the low-level operating system API, it is > rather to emulate the *environment* consisting of packages and programs, > their versions, etc. The problem I see with trying to emulate is that you don't have

Re: Cygwin for Fedora?

2012-03-07 Thread Mike Brown
On Thu, Mar 08, 2012 at 01:15:20PM +0530, Harry Simons wrote: > Instead of asking for access to a Cygwin/Windows PC just for the above, I > thought it would be terrific if Cygwin could somehow be installed / > emulated on a Fedora. Linux on top of Linux? I don't understand the need for that. M

Re: Apparently solved! (Re: Sorry "people" (NOT MY taxonomy!!), but igncr IS flawed)

2011-12-17 Thread Mike Brown
On Sat, Dec 17, 2011 at 10:27:23AM -0800, manu0507 wrote: > That being said, it's still sort of beyond me why all [CR][LF]s would be > converted ok... except the ones I reported. It isn't a smart comversion, it is a blind substitute all conversion. MB -- e-mail: vid...@vidiot.com | vid...@vidiot

Re: cron log file empty

2011-12-17 Thread Mike Brown
On Sat, Dec 17, 2011 at 12:16:02PM -0500, Pierre A. Humblet wrote: > That's weird also because there is no uid 0 in the /etc/passwd you sent > earlier. You're right. I never even noticed that. Also explains why there wasn't a user name associated with the UID. D'Oh! > Could there be some confu

Re: cron still not working - even after rerunning cron config

2011-12-17 Thread Mike Brown
On Sat, Dec 17, 2011 at 06:52:16PM +0400, Andrey Repin wrote: > nnCron, then? > http://nncron.ru/ > nnCron supports that, if memory not deceiving me. As pointed out in a followup posting, I reverted back to version 1.5 and all is working again. MB -- e-mail: vid...@vidiot.com | vid...@vidiot.net

Re: cron log file empty

2011-12-17 Thread Mike Brown
On Sat, Dec 17, 2011 at 09:04:38AM -0500, Pierre A. Humblet wrote: > cron logs to syslog, which by default uses the Windows log and which you > can read directly in Windows or filter with cronevents. Good to know for the future. > It's the first time I can recall where this is a problem, except

I gave up and reverted to 1.5

2011-12-16 Thread Mike Brown
Long standing programs like cron just install and run. Using cygwin 1.5, it does. Using 1.7, it does not. I have no idea what was done to 1.7 to cause cron to not work, no matter what the Hell I try to do. So I said f**k it and removed all of the 1.7 files and reinstalled 1.5 from the local fil

cron log file empty

2011-12-16 Thread Mike Brown
I'd look into the cron log file to see if it held any clues as to why it won't run anything in my crontab, except that it is empty. What good is a log file if nothing is logged? Oh crap, now it is back to wrong file owner. MB -- e-mail: vid...@vidiot.com | vid...@vidiot.net/~\ The A

Re: cron still not working - even after rerunning cron config

2011-12-16 Thread Mike Brown
On Fri, Dec 16, 2011 at 03:27:16PM -0600, Jesse Ziser wrote: > You could always use remote desktop if you're having problems with ssh > (again, given the urgency of your situation). I might put the third-party sshd back in. While RD is an option, because of the heavy load on the DSL, it tends to

Re: cron still not working - even after rerunning cron config

2011-12-16 Thread Mike Brown
On Fri, Dec 16, 2011 at 04:21:45PM -0500, Pierre A. Humblet wrote: > Yes, it is in /var/cron/tabs/ Found it. I went looking for "tabs" and found it. > Problems like this have been reported when a user is both a local user > and a domain user (2 entries in /etc/passwd). > Cron with suid

Re: cron still not working - even after rerunning cron config

2011-12-16 Thread Mike Brown
On Fri, Dec 16, 2011 at 02:38:27PM -0600, Jeremy Bopp wrote: > Sorry that I can't help you with your cron problem, but have you > considered using the Windows Task Scheduler instead given the urgency of > your situation? It can be used to kick off Cygwin processes just like > any other. You'll ne

cron still not working - even after rerunning cron config

2011-12-16 Thread Mike Brown
I desperately need to get this fixed as I will be leaving for a trip on the 20th and have some cron stuff to run while I am gone. I ran cron-diagnose.sh, which now runs the cron-config, and changed from just-me to local system and that still didn't fix the problem. A ps -eaf shows that cron is no

Cron doesn't work after 1.7 upgrade

2011-12-15 Thread Mike Brown
The crontab entry that I had should have fired, but it didn't. At 20:58 on day 4 (Thu), the entry should have fired. Doing a ps -eaf shows that the UID of cron is 0, not SYSTEM. Is that an issue with 1.7? If so, how do I fix it? If not, what can I do to find out why cron failed to run my cront

Re: Services aren't running

2011-12-15 Thread Mike Brown
On Thu, Dec 15, 2011 at 09:07:24PM -0600, Rance Hall wrote: > Just a hunch but did you remember to stop the old services before > doing the upgrade? Windows can't mess with files that are locked and > in use. The install stopped at that point and I had to kill it, before continuing. It seems tha

Services aren't running

2011-12-15 Thread Mike Brown
The upgrade from 1.5 to 1.7 broke the starting of the services. I just noticed that there are no services running when I do a "ps." That means cron isn't working either. What did the 1.7 install do to break the services that I had running and why didn't it set them up do start at boot time? MB

Re: Latest cygwin.bat - need one

2011-12-12 Thread Mike Brown
On Mon, Dec 12, 2011 at 10:07:23PM -0500, Ken Brown wrote: > [Sorry, I again accidentally replied to the OP instead of to the list.] Easy to do the way this mail list is set up. > Are you sure you didn't forget the `-' at the end of the target? That's > what tells mintty to start your shell as

Re: mintty

2011-12-12 Thread Mike Brown
On Mon, Dec 12, 2011 at 07:37:46PM -0600, Mike Brown wrote: > Is there a reason why Cygwin is not building a PATH with the needed info? Not only that, it doesn't start out in the user's home directory. MB -- e-mail: vid...@vidiot.com | vid...@vidiot.net/~\ The ASCII

Re: Latest cygwin.bat - need one

2011-12-12 Thread Mike Brown
On Mon, Dec 12, 2011 at 04:11:48PM -0800, Gary Johnson wrote: > General > [Name:] Cygwin Terminal > Shortcut > Target: C:\cygwin\bin\mintty.exe -i /Cygwin-Terminal.ico - > Start in: [empty] > Shortcut key: None > Run: Normal window > [Icon:] C

Re: Latest cygwin.bat - need one

2011-12-12 Thread Mike Brown
On Mon, Dec 12, 2011 at 03:28:39PM -0500, Ken Brown wrote: > There's nothing to set up. You just click on the start menu shortcut. You > can then right click in the mintty window and select "Options" if you want > to change some of the defaults. In my case that is a no go. That is because, as

Re: Latest cygwin.bat - need one

2011-12-12 Thread Mike Brown
On Mon, Dec 12, 2011 at 10:45:12AM -0500, Ken Brown wrote: > There is no longer a default BAT file, and the Windows console is no longer > the default terminal. The default terminal is now mintty. The current > setup.exe creates desktop and start menu shortcuts to start it. This was > announce

Re: Latest cygwin.bat - need one

2011-12-12 Thread Mike Brown
On Mon, Dec 12, 2011 at 01:13:02AM -0600, Tim McDaniel wrote: > On Mon, 12 Dec 2011, Mike Brown wrote: >> Doing some more digging I found >> the following posting (via google): >> >>> Does changing 'bash' to '/bin/bash' make a difference? >&

ssh login not working

2011-12-11 Thread Mike Brown
When I try to ssh into the latest cygqin on the XP-pro box, I get the following: BRN <1> ssh -v -v -l vidiot PVRpeecee Sun_SSH_1.1, SSH protocols 1.5/2.0, OpenSSL 0x0090704f debug1: Reading configuration data /etc/ssh/ssh_config debug1: Rhosts Authentication disabled, originating port will not be

Re: Latest cygwin.bat - need one

2011-12-11 Thread Mike Brown
On Sun, Dec 11, 2011 at 11:48:01PM -0600, Mike Brown wrote: > As a result of there not being a sample, my current bat file will not > correctly start my Z-shell. Most of the time double-clicking on the shortcut > results in the program (CMD) flashing on the screen and going away. When

Latest cygwin.bat - need one

2011-12-11 Thread Mike Brown
Because I already had a cygwin.bat file, the upgrade from 1.5.x to 1.7.x did not provide a new one, not even a cygwin.bat.sample (which would have been nice), so that one could see if there are differences between releases. As a result of there not being a sample, my current bat file will not corr

Re: cygwin limping after update (subject chage)

2011-12-09 Thread Mike Brown
On Fri, Dec 09, 2011 at 12:28:36PM -0600, Mike Brown wrote: > Now I need to know why the rxvt program is not working correctly. Still do not know why that doesn't work. As for ssh, I've run the ssh-user-config and ssh-host-config and started the daemon. When I try and log in from m

Out for the count - install broke my cygwin

2011-12-09 Thread Mike Brown
The two service processes started, but cron did not and I cannot get the Z-shell to start correctly. The commands in the cygwin.bat file are: @echo off c: chdir c:\cygwin\bin rxvt -e zsh --login -i Sometimes it will flash on the screen and go away, other times the terminal will s

Re: setup not robust ...

2011-12-09 Thread Mike Brown
On Fri, Dec 09, 2011 at 11:11:04AM -0600, Mike Brown wrote: > Not so the setup program. Now I have to kill it and start over. Damnit, it is even worse. The new selection list is gone. Now I have to remember what the Hell I selected and do it yet again. IF it hangs yet again, I am done un

setup not robust ...

2011-12-09 Thread Mike Brown
So, here I am downloading the updated files and a few news things. I'm assuming that it will be an update, as it didn't ask, since it saw that I had an insallation in place. It too said that I should read the user guide because of the 1.5 to 1.7 upgrade. The User Guide needs a 1.5 to 1.7 upgrade

Re: Starting Z-shell via telnet connection to XP box

2011-12-09 Thread Mike Brown
On Fri, Dec 09, 2011 at 08:09:18AM -0800, Andrew DeFaria wrote: > Because ssh will allow you to forward X11 (WinSSHD?) Yes. > Because ssh allows you to tunnel things if you want (WinSSHD?) Yes. > Because with OpenSSH properly configured you get scp and sftp pretty much > for free. I don't use

Re: Starting Z-shell via telnet connection to XP box

2011-12-09 Thread Mike Brown
On Fri, Dec 09, 2011 at 05:02:58PM +0100, Thorsten Kampe wrote: > It's Windows XP (NT 5.1). uname -a should give you the full information. D'Oh! I know better, considering I've used that command for years. Long night. 1.5.19(0.150/4/2) 2006-01-20 13:28 i686 Cygwin > I upgraded when it came

Re: Starting Z-shell via telnet connection to XP box

2011-12-09 Thread Mike Brown
On Fri, Dec 09, 2011 at 03:42:42PM +0100, Thorsten Kampe wrote: > Okay, better is not correct. Let's call it equally good. It's free, > constantly updated, easy to setup and is integrated in your existing > Cygwin installation. When I did an initial search in the packages for ssh, I didn't notic

Re: Starting Z-shell via telnet connection to XP box

2011-12-09 Thread Mike Brown
On Fri, Dec 09, 2011 at 03:10:34PM +0100, Thorsten Kampe wrote: > Better use OpenSSH And why would that be? MB -- e-mail: vid...@vidiot.com | vid...@vidiot.net/~\ The ASCII [I've been to Earth. I know where it is. ] \ / Ribbon Campaign [And I'm gonna take us there.S

Re: Starting Z-shell via telnet connection to XP box

2011-12-09 Thread Mike Brown
On Fri, Dec 09, 2011 at 12:31:44PM +0100, Thorsten Kampe wrote: > Use SSH I installed the bitvise WinSSHD server and can connect with it. I had to build a different start BAT file in order to get zsh started and to use my home zsh config files. The only issue I have left is to find out how to ch

Starting Z-shell via telnet connection to XP box

2011-12-08 Thread Mike Brown
While I can use remote desktop to get from my Solaris server to the XP box, doing so while at some place other than the LAN, the DSL connection speed tends to cause the RD to fail and close. And since I don't really need a graphical connection, I figured that I would just start the XP Pro telnet s

Re: Copying HDD to another HDD

2011-11-07 Thread Mike Brown
On Sun, Nov 06, 2011 at 11:44:06PM +0800, KHMan wrote: > Some random notes. fsarchiver also allows for flexibility on size. But I > have mostly used partimage from systemrescuecd in practice for the bootable > partition, for: (a) moving from IDE to SATA, (b) moving from SATA to a > larger SATA,

Re: Copying HDD to another HDD

2011-11-06 Thread Mike Brown
On Sun, Nov 06, 2011 at 11:44:06PM +0800, KHMan wrote: > Some random notes. fsarchiver also allows for flexibility on size. I'm downloading the iso for SystemRescueCD, which contains fsarchiver. I just might be able to use fsarchiver to do the trick. Thanks for the tip. MB -- e-mail: vid...@vi

Re: Copying HDD to another HDD

2011-11-06 Thread Mike Brown
On Sun, Nov 06, 2011 at 09:19:52AM -0500, LMH wrote: > I think you want to use a disk clone to do this, something like the > clonezilla live CD. As long as the drives are the same size, or the target > drive is larger, clonezilla will just copy one drive to the other. It does > a bit by bit clon

Copying HDD to another HDD

2011-11-06 Thread Mike Brown
I'm in a situation where a new mobo refuses to boot the SATA boot HDD, but it will boot an IDE drive. So, I'm trying to copy all of the files from the SATA drive to the IDE drive, but I'm hitting a roadblock where there are files with 10-digit user/group IDs and file persmissions of 700, which mea

Re: vim wraps lines

2011-01-26 Thread Mike Brown
On Wed, Jan 26, 2011 at 10:12:01PM -0500, Larry Hall (Cygwin) wrote: > On 1/26/2011 12:00 PM, Daniel Ajoy wrote: >> I'm using the latest cygwin, min-tty and vim >> >> But when I open vim, lines seem to wrap. Here is the image: >> >> http://i.imgur.com/oC8lo.png >> >> Is that a configuration issue?

Re: mediainfo

2010-01-06 Thread Mike Brown
On Wed, Jan 06, 2010 at 09:44:47PM -0500, Larry Hall (Cygwin) wrote: > On 01/06/2010 07:24 PM, Terry Bailey wrote: >> Where can I get a binary of mediainfo for i386? > > This is not part of the Cygwin distribution so you'll have to look elsewhere. Go to the Doom9 forums and search for it. You can

Best way to install openssh

2009-03-02 Thread Mike Brown
It has been quite a while since I've updated any of the packages on my XP system. I want to start sshd on the XP box so that I can access it from my Solaris 10 box in order to modify my crontab file. What is the best way to get and install oppenssh? Thanks. MB -- e-mail: vid...@vidiot.com

Re: grep -P segfault

2007-01-26 Thread Mike Brown
Alexander Sotirov wrote: > Reproduced on cygwin 1.5.22 with grep 2.5.1 Frodak wrote: > I get the same problem. If you redirect the output to > a file, the "hello" is printed and then about 128k of > NULL characters are printed before it crashes. Great! Thanks guys. Do I need to do anything els

grep -P segfault

2007-01-26 Thread Mike Brown
Can anyone reproduce this? This is on a fairly small Cygwin installation on WinXP, last updated 4 days ago. $ echo hello | grep -P '\n' hello ? hello ? hello 4 [main] grep 3280 _cygtls::handle_exceptions: Error while dumping state (probably corrupted stack) Segmentation fault (core d

Re: 64-bit file operations (lseek64() etc) misbehaving

2004-03-31 Thread Mike Brown
-- > > If I replace "/dev/sda" by ".\\PhysicalDrive0" everywhere, however, I > get the same result you do. Food for thought. > HTH, > Igor > > On Wed, 31 Mar 2004, Mike Brown

Re: 64-bit file operations (lseek64() etc) misbehaving

2004-03-31 Thread Mike Brown
seek() not being able to seek past the 4Gb boundary. Thanks. On Wed, Mar 31, 2004 at 02:14:18PM -0500, Igor Pechtchanski wrote: > On Wed, 31 Mar 2004, Mike Brown wrote: > > > Hi, > > > > cygwin 1.5.9-1 on Windows XP Service Pack 1. > > > > I need 64-bit version

64-bit file operations (lseek64() etc) misbehaving

2004-03-31 Thread Mike Brown
Hi, cygwin 1.5.9-1 on Windows XP Service Pack 1. I need 64-bit versions of lseek() and friends. No prototype exists for lseek64(). I've searched the archives on the list and many claim that 64-bit support is "automatic" and lseek() resolves at compile time to lseek64(). This isn't happening fo