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 
> > 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 it
> > to work.
> 
> Brain fart.  Never an issue with XP, as the Zsh version is 2.4.6.  The Win7
> version is 5.3.
> 
> I thought I had it working.  It might be because I think I reinstalled
> cygwin as I redid the OS.  In any event, it is no longer working.

Nevermind.  I found it.  It was when I went to Fedora 25 and a 5.x version
of Zsh that the issue arose.  I dug thru some e-mail and it was via the
Zsh mail list that I was provided with the answer.  It was Jun 14, 2017,
that I updated the .zshrc file.  Brain got fuzzy over the three years.

I added the changes to the cygwin version of my .zshrc file and it worked.

MB
-- 
e-mail: vid...@vidiot.com | vid...@vidiot.net/~\ The ASCII
6082066...@email.uscc.net (140 char limit)   \ / Ribbon Campaign
Visit - URL: http://vidiot.com/   X  Against
 http://vidiot.net/  / \ HTML Email
"VCR was in the closet.  Still works.  Can't get the clock to stop
blinking, though."  Angela - Animal Kingdom - 7/16/19
--
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: 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 and want to get
> the expansion working again, but do not remember what was done to get it
> to work.

Brain fart.  Never an issue with XP, as the Zsh version is 2.4.6.  The Win7
version is 5.3.

I thought I had it working.  It might be because I think I reinstalled
cygwin as I redid the OS.  In any event, it is no longer working.

MB
-- 
e-mail: vid...@vidiot.com | vid...@vidiot.net/~\ The ASCII
6082066...@email.uscc.net (140 char limit)   \ / Ribbon Campaign
Visit - URL: http://vidiot.com/   X  Against
 http://vidiot.net/  / \ HTML Email
"VCR was in the closet.  Still works.  Can't get the clock to stop
blinking, though."  Angela - Animal Kingdom - 7/16/19
--
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


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 it
to work.

And yes, expansion works outside of the for loop on the command line.

Thanks for pointers.

MB
-- 
e-mail: vid...@vidiot.com | vid...@vidiot.net/~\ The ASCII
6082066...@email.uscc.net (140 char limit)   \ / Ribbon Campaign
Visit - URL: http://vidiot.com/   X  Against
 http://vidiot.net/  / \ HTML Email
"VCR was in the closet.  Still works.  Can't get the clock to stop
blinking, though."  Angela - Animal Kingdom - 7/16/19
--
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


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...@email.uscc.net (140 char limit)   \ / Ribbon Campaign
Visit - URL: http://vidiot.com/   X  Against
 http://vidiot.net/  / \ HTML Email
"What do you say Beckett. Wanna have a baby?" - Castle to Det. Beckett
"How long have I been gone?" Alexis after seeing Castle and Beckett w/ baby
 - Castle - 11/25/13

--
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: 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 
> something which has had release this decade, e.g. urxvt)

Sorry, I meant the way I used to use it.

> If you want a windows terminal, use mintty.

Thanks.  As mentioned in a previous post, I got the shortcut that is placed
on the desktop working to start up with Zshell.  So, all is well in the
universe.

MB
-- 
e-mail: vid...@vidiot.com | vid...@vidiot.net/~\ The ASCII
6082066...@email.uscc.net (140 char limit)   \ / Ribbon Campaign
Visit - URL: http://vidiot.com/   X  Against
 http://vidiot.net/  / \ HTML Email
"You're Sherlock Holmes, wear the damn hat!" - Watson to Sherlock
Sherlock - The Abominable Bride - 1/01/16

--
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: 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 you need me to look at?  It isn't
> > anything in the home files that I copied over from the XP box, because 
> > before
> > I did that, I tried starting and it flashed and died.
> 
> A long time ago rxvt changed from supporting Windows (native) to only
> working under X-Windows (a.k.a. Cygwin/X or equivalent).

Ah, so in a galaxy far, far, away, it just might work. :-)

Thanks for the reason it no longer works.

MB
-- 
e-mail: vid...@vidiot.com | vid...@vidiot.net/~\ The ASCII
6082066...@email.uscc.net (140 char limit)   \ / Ribbon Campaign
Visit - URL: http://vidiot.com/   X  Against
 http://vidiot.net/  / \ HTML Email
"You're Sherlock Holmes, wear the damn hat!" - Watson to Sherlock
Sherlock - The Abominable Bride - 1/01/16

--
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: 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, 64bit.

> > 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* setup files and scripts that I have in my bin directory.
> > 
> > But, when I run it, it just flashes and dies.
> > 
> > Here is the contents:
> > ==
> > @echo off
> > 
> > 
> > C:
> > chdir C:\cygwin\bin
> > set HOME=\cygwin\home\Brown
> > 
> > rxvt -e /bin/zsh --login -i
> > ==
> > 
> > Any ideas why it is failing?  Something you need me to look at?  It isn't
> > anything in the home files that I copied over from the XP box, because 
> > before
> > I did that, I tried starting and it flashed and died.
> > 
> 
> Simply, it isn't supported any longer.  Use mintty instead which should
> have been installed if you actually used setup.exe to install Cygwin.
> If not, start over and use it.

Yep, it put a shortcut on the desktop.  I run zsh, not bash.  Since rxvt
is no longer viable, I went digging into the properties and help for mintty
and added what was needed to start zsh.

All is well now.

MB
-- 
e-mail: vid...@vidiot.com | vid...@vidiot.net/~\ The ASCII
6082066...@email.uscc.net (140 char limit)   \ / Ribbon Campaign
Visit - URL: http://vidiot.com/   X  Against
 http://vidiot.net/  / \ HTML Email
"You're Sherlock Holmes, wear the damn hat!" - Watson to Sherlock
Sherlock - The Abominable Bride - 1/01/16

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



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* setup files and scripts that I have in my bin directory.

But, when I run it, it just flashes and dies.

Here is the contents:
==
@echo off


C:
chdir C:\cygwin\bin
set HOME=\cygwin\home\Brown

rxvt -e /bin/zsh --login -i
==

Any ideas why it is failing?  Something you need me to look at?  It isn't
anything in the home files that I copied over from the XP box, because before
I did that, I tried starting and it flashed and died.

MB
-- 
e-mail: vid...@vidiot.com | vid...@vidiot.net/~\ The ASCII
6082066...@email.uscc.net (140 char limit)   \ / Ribbon Campaign
Visit - URL: http://vidiot.com/   X  Against
 http://vidiot.net/  / \ HTML Email
"You're Sherlock Holmes, wear the damn hat!" - Watson to Sherlock
Sherlock - The Abominable Bride - 1/01/16

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

The main pieces that I use, zsh, cron and the basic commands (like ls and ps),
are all that I need.  I've written several z-shell scripts to do the things
that I need.

So, even if XP support is pulled, I'm good.

Cygwin has been really great for making the two XP boxes worth running.
I've been a Unix/Linux user/admin for decades.

MB

On Sun, Jan 10, 2016 at 05:32:21PM -0500, Terry McCarty - WA5NTI wrote:
> Hello -
>
> I am also new to the LINUX world and would like very much to see XP "live 
> forever".
>
> I still use XP as my main "go to" machine. 
> But ... Microsoft's continuing "march to bigger and better" and my 
> reluctance to be forced to repeatedly buy new bigger and faster machinery 
> to accommodate the new windows systems has nudged me out of my complacency 
> - I am now using Cygwin and learning LINUX.
>
> If Cygwin continues to support XP, it will continue to serve as "that 
> bright city on a hill", giving us old Microsoft Ludditess a comfortable 
> "stepping stone" that encourages us to switch to LINUX.
>
> -- 
> Terry McCarty
>3...@comcast.net
>wa5nti
>
>
>
> Herbert Stocker wrote:
>
>> Hi,
>>
>> i have read that beginning this month Cygwin wants to drop support
>> for Windows XP.  Though the home page and FAQ entry 12 do not talk
>> about this. Are they out of date or is WinXP still supported?
>>
>> Although there are better OSes now, WinXP is still a good OS.
>> Especially for virtual machines, because of its low memory foot print.
>> Only just 220 MiB for the OS!
>>
>> So while i feel it's not fair to beg you to go through all the
>> complexities of still supporting it, i want to ask:
>>
>> - If there is no support anymore for Win XP (SP3), is there a reposi-
>>   tory around, where one can download the last version of Cygwin that
>>   supported WinXP (SP3)?
>>
>> - If not, how can i do it by myself? Will i have to create a mirror
>>   and not update it? Or would i have to download the current version
>>   somehow?
>>
>>
>> Thank you very much for the great work.
>> Cygwin makes Windows complete if you ask me.
>>
>> Herbert
>>
>> -- 
>> 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
>

-- 
e-mail: vid...@vidiot.com | vid...@vidiot.net/~\ The ASCII
6082066...@email.uscc.net (140 char limit)   \ / Ribbon Campaign
Visit - URL: http://vidiot.com/   X  Against
 http://vidiot.net/  / \ HTML Email
"What do you say Beckett. Wanna have a baby?" - Castle to Det. Beckett
"How long have I been gone?" Alexis after seeing Castle and Beckett w/ baby
 - Castle - 11/25/13

--
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: 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. 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.
> 
> It does: https://cygwin.com/cygwin-ug-net/using.html#mount-table

What I mean is that I was able to create an entry, but I have no idea how to
get the mount program to read the contents.

> > I have the following entry:
> > 
> > 192.168.1.40:/Public /Public nfs noacl 0 0
>   
> 
> This syntax isn't known in Windows.  Use the same syntax as with SMB
> shares, just use forward slashes:
> 
>   //192.168.1.40/Public /Public foo binary 0 0
> 
> "noacl" has no meaning on NFS shares, btw. 

No there no explantion on how to enter a user and password.  I tried the nfs
syntax because it doesn't require a password.

MB
-- 
e-mail: vid...@vidiot.com | vid...@vidiot.net/~\ The ASCII
6082066...@email.uscc.net (140 char limit)   \ / Ribbon Campaign
Visit - URL: http://vidiot.com/   X  Against
 http://vidiot.net/  / \ HTML Email
"What do you say Beckett. Wanna have a baby?" - Castle to Det. Beckett
"How long have I been gone?" Alexis after seeing Castle and Beckett w/ baby
 - Castle - 11/25/13

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

192.168.1.40:/Public /Public nfs noacl 0 0

But, when I enter "mount /Public" mount complains about not enough options and
shows me the help for command line usage.  It doesn't appear to look in the
fstab file for the entry.

I did create /Public, so that path is there.

I tried it via the command line and it bitched about /Public.

I have no idea what I am doing wrong.

MB
-- 
e-mail: vid...@vidiot.com | vid...@vidiot.net/~\ The ASCII
6082066...@email.uscc.net (140 char limit)   \ / Ribbon Campaign
Visit - URL: http://vidiot.com/   X  Against
 http://vidiot.net/  / \ HTML Email
"What do you say Beckett. Wanna have a baby?" - Castle to Det. Beckett
"How long have I been gone?" Alexis after seeing Castle and Beckett w/ baby
 - Castle - 11/25/13

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



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.

Can I do this and if so, what do I need to change to get it to work.

Thanks.

MB
-- 
e-mail: vid...@vidiot.com | vid...@vidiot.net/~\ The ASCII
6082066...@email.uscc.net (140 char limit)   \ / Ribbon Campaign
Visit - URL: http://vidiot.com/   X  Against
 http://vidiot.net/  / \ HTML Email
"What do you say Beckett. Wanna have a baby?" - Castle to Det. Beckett
"How long have I been gone?" Alexis after seeing Castle and Beckett w/ baby
 - Castle - 11/25/13

--
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: 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 it mounted, I have no idea where. A "df -k" only shows the local drives.

> This is not a Cygwin question.
> If you want to do it from Cygwin side, use fstab and don't use /cygdrive
> prefix. It is for automatic mounts ONLY.

I can't find a fstab.

MB
-- 
e-mail: vid...@vidiot.com | vid...@vidiot.net/~\ The ASCII
6082066...@email.uscc.net (140 char limit)   \ / Ribbon Campaign
Visit - URL: http://vidiot.com/   X  Against
 http://vidiot.net/  / \ HTML Email
"What do you say Beckett. Wanna have a baby?" - Castle to Det. Beckett
"How long have I been gone?" Alexis after seeing Castle and Beckett w/ baby
 - Castle - 11/25/13

--
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: 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 posted mine in the mailing list not once, and it's not the only available
 solution.

I'm curious.  Why go through all of what you wrote when all you need to do
is execute the shell script?  I'm a Z-shell user and have a bunch of scripts
that I run.

Maybe the secret is not to try and start a script from within a command prompt.
Start cygwin xterms.  I have two that I start up after booting the system.
The scripts are in my home/bin path, so they are found.

It is as simple as that.

It is true that they are not clickable, but entering the script name in
the xterm also allows me to also include parameters/options.

MB
-- 
e-mail: vid...@vidiot.com | vid...@vidiot.net/~\ The ASCII
6082066...@email.uscc.net (140 char limit)   \ / Ribbon Campaign
Visit - URL: http://vidiot.com/   X  Against
 http://vidiot.net/  / \ HTML Email
What do you say Beckett. Wanna have a baby? - Castle to Det. Beckett
How long have I been gone? Alexis after seeing Castle and Beckett w/ baby
 - Castle - 11/25/13

--
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: 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
   work.
  
  google: cygwin shell wrapper script
  I posted mine in the mailing list not once, and it's not the only available
  solution.
 
  I'm curious.  Why go through all of what you wrote when all you need to do
  is execute the shell script?  I'm a Z-shell user and have a bunch of scripts
  that I run.
 
 Scripts aren't executed in vacuum. And the question is not limited to SHELL
 scripts.

True.  I do not compile any programs, so anything that I need to run that
is clickable are Windows programs.

  Maybe the secret is not to try and start a script from within a command 
  prompt.
  Start cygwin xterms.
 
 Why? I don't need no friggin xterm, I need to run a script.
 Is this a hard concept to grasp?

It is not, which I how I run my scripts, from an xterm command prompt.
All of my scripts have have input, be it an option and/or file to work on.
That is not easily done if the script were clickable.  Sure, the script
can ask for input, but that adds time to get it running.  Starting it via
the command line saves me lots of time.

I also have scipts that are started via cron.  Options are passed to the
scripts from within the scron configuration file.

  I have two that I start up after booting the system.
  The scripts are in my home/bin path, so they are found.
 
  It is as simple as that.
 
 Simple as what?
 I don't understand, what two you have and what you are actually doing.

Two xterms that are started by clicking on the shortcut that I created that
points to the BAT file that starts an xterm.

  It is true that they are not clickable, but entering the script name in
  the xterm also allows me to also include parameters/options.
 
 I don't know the name, I have a script that I want to run. Here. Now. Why
 can't I just click it?

You never have to supply your scripts with options and/or files to deal with?

Entering the script name in the xterm is a lot faster than hunting down the
name in explorer (the file manager) or a shortcut on the desktop.  If you
have a lot of scripts, your desktop can get cluttered real fast.  Mine is
cluttered enough with Windows programs that I use.

I'm and old Unix guy that has grown up with the command line.  I find it
fast to use.  There are those that hate the command line and prefer to
onlty click on something to get it started.

I guess that is where we differ.

I've provided you with an option.  Do with it as you will.

MB
-- 
e-mail: vid...@vidiot.com | vid...@vidiot.net/~\ The ASCII
6082066...@email.uscc.net (140 char limit)   \ / Ribbon Campaign
Visit - URL: http://vidiot.com/   X  Against
 http://vidiot.net/  / \ HTML Email
What do you say Beckett. Wanna have a baby? - Castle to Det. Beckett
How long have I been gone? Alexis after seeing Castle and Beckett w/ baby
 - Castle - 11/25/13

--
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: 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 the MS OS
to test against.

For example, if you were trying to test scripts that were started from cron,
the cygwyn cron program wouldn't have what it needs from the MS OS, because it
isn't there.

As far as scripts are concerned, yes there are differences because of the
forward and backslash differences in path names and using cygwin tools to
convert from one to the other.  I too have Z-shell scripts on my XP boxes.
When running MS programs, the MS paths are needed.

But how do you test running MS programs when the MS programs do not exist?
For example, I have a complicated scripts that is used to doing x264
comiling, with other MS programs getting run to set up some other stuff,
like the audio.  Those are all MS programs.  Impossible to test, other than
on a MS system.

Unless I'm missing something and therefore way off base, I just do not see
the need.  Testing should be done under the actual environment.

Bring up Wine on your system, load the MS and cygwin.  Test away.

MB
-- 
e-mail: vid...@vidiot.com | vid...@vidiot.net/~\ The ASCII
6082066...@email.uscc.net (140 char limit)   \ / Ribbon Campaign
Visit - URL: http://vidiot.com/   X  Against
 http://vidiot.net/  / \ HTML Email

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

MB
-- 
e-mail: vid...@vidiot.com | vid...@vidiot.net/~\ The ASCII
6082066...@email.uscc.net (140 char limit)   \ / Ribbon Campaign
Visit - URL: http://vidiot.com/   X  Against
 http://vidiot.net/  / \ HTML Email

--
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: 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 for the 
 double entry in passwd. Do you use the crontab program to edit the crontab? 

Yes.  I've never hand edited the output file created by crontab, always
crontab -e.

 It makes sure all ownerships/permissions are correct.

Then it is doing a lousy job of it, otherwise it wouldn't bitch about
ownership permissions.

After I did a reboot, cron was no longer running as me, but as UID 0, so it
started complainging about ownership again.

As noted in a followup posting, I reverted back to 1.5 and all is well.

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.Starbuck  3/25/07]   X  Against
Visit - URL: http://vidiot.com/ | http://vidiot.net/ / \ HTML Email

--
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: 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/~\ The ASCII
[I've been to Earth.  I know where it is. ]  \ / Ribbon Campaign
[And I'm gonna take us there.Starbuck  3/25/07]   X  Against
Visit - URL: http://vidiot.com/ | http://vidiot.net/ / \ HTML Email

--
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: 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 confusion between 1.5 and 1.7?

If so, then it is a problem with the setup when installing files onto a 1.5
previous install.  There is zero information as to what to do/fix when
installing 1.7 on the top of 1.5, even though one is instructed to read the
docs for said things to look out for.  There is nothing in the docs about
going from 1.5 to 1.7.  It would have been nice if there was a section that
dealt only with this topic.

Maybe I should have done to the 1.5 install what I did to the 1.7 install,
when going back to 1.5, and that is wipe out all of the directories, other
than my home.  I wasn't able to remove the tabs directory, in that it
complained that I didn't have the rights to do that (using windblows explorer
to select and delete files/directories).

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.Starbuck  3/25/07]   X  Against
Visit - URL: http://vidiot.com/ | http://vidiot.net/ / \ HTML Email

--
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: 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.net/~\ The ASCII
6082066...@email.uscc.net\ / Ribbon Campaign
Visit - URL: http://vidiot.com/   X  Against
 http://vidiot.net/  / \ HTML Email

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



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 now UID SYSTEM and not 0.  But that did not make a
difference.  I set up the following entry in my crontab:

12 14 * * * touch /tmp/crontest

The time came and went and no zero length file showed up.

Running cronevents, the list had the following error line:

2011/12/16 14:12:01 [SYSTEM] /usr/sbin/cron: PID 2524: (Vidiot) WRONG FILE 
OWNER (tabs/Vidiot)

Which file is it exactly complaining about?  My crontab file, which worked
under 1.5?  What is needed to fix it?  Where is the crontab file placed?

Please, time is critical.

Thanks

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.Starbuck  3/25/07]   X  Against
Visit - URL: http://vidiot.com/ | http://vidiot.net/ / \ HTML Email

--
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: 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 need to wrap your existing tasks with a script in
 order to ensure that they receive the right environment, but that may be
 easier than debugging cron at this time.

I hate the Windblows task scheduler.  Plus, while I am away I might have to
remotely get in via ssh (which also doesn't work) and change/add entries.
That is best done using text editing.

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.Starbuck  3/25/07]   X  Against
Visit - URL: http://vidiot.com/ | http://vidiot.net/ / \ HTML Email

--
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: 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 to the 1st matching passwd entry 

I'm only in the passwd file once:

SYSTEM:*:18:544:,S-1-5-18::
Administrators:*:544:544:,S-1-5-32-544::
Administrator:unused_by_nt/2000/xp:500:513:U-SATELLITE\Administrator,S-1-5-21-1957994488-1960408961-725345543-500:/home/Administrator:/bin/bash
ASPNET:unused_by_nt/2000/xp:1004:513:ASP.NET Machine 
Account,U-SATELLITE\ASPNET,S-1-5-21-1957994488-1960408961-725345543-1004:/home/ASPNET:/bin/bash
Guest:unused_by_nt/2000/xp:501:513:U-SATELLITE\Guest,S-1-5-21-1957994488-1960408961-725345543-501:/home/Guest:/bin/bash
HelpAssistant:unused_by_nt/2000/xp:1000:513:Remote Desktop Help Assistant 
Account,U-SATELLITE\HelpAssistant,S-1-5-21-1957994488-1960408961-725345543-1000:/home/HelpAssistant:/bin/bash
SUPPORT_388945a0:unused_by_nt/2000/xp:1002:513:CN=Microsoft 
Corporation,L=Redmond,S=Washington,C=US,U-SATELLITE\SUPPORT_388945a0,S-1-5-21-1957994488-1960408961-725345543-1002:/home/SUPPORT_388945a0:/bin/bash
Vidiot:unused_by_nt/2000/xp:1003:513:U-SATELLITE\Vidiot,S-1-5-21-1957994488-1960408961-725345543-1003:/home/Vidiot:/bin/zsh
sshd:unused:1005:513:sshd 
privsep,U-SATELLITE\sshd,S-1-5-21-1343024091-507921405-839522115-1005:/var/empty:/bin/false

So, I saved a copy of my crontab with -l.  I then did a -r.
The .../tabs/Vidiot was then removed,  I then did a -e and read in the contents
of the saved file and reset the entry to touch the file in /tmp.

Same damn error.  It isn't the wrong file owner.  It belongs to Vidiot:None and
is 644.

So, in desperation, I reinstalled again, this time setting it to run as me.
I do not get the wrong file owner error anymore.  This time it says RELOAD
(tabs/Vidiot), yet it STILL refuses to run the entry, any entry.  I set one
of the jobs I normally do and it wouldn't start it.

Why is 1.7 having so much trouble with this when 1.5 didn't?

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.Starbuck  3/25/07]   X  Against
Visit - URL: http://vidiot.com/ | http://vidiot.net/ / \ HTML Email

--
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: 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 crash a lot and take forever to
start.

The cron issue is killing me.  I'm almost ready to regress back to 1.5.
All of those files are on the other XP box, which I haven't upgraded.

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.Starbuck  3/25/07]   X  Against
Visit - URL: http://vidiot.com/ | http://vidiot.net/ / \ HTML Email

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



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 ASCII
[I've been to Earth.  I know where it is. ]  \ / Ribbon Campaign
[And I'm gonna take us there.Starbuck  3/25/07]   X  Against
Visit - URL: http://vidiot.com/ | http://vidiot.net/ / \ HTML Email

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



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 files that I have.

Installed cron and guess what  yep, it is now functional again.  Even
after a reboot, it still works.

I don't know who is responsible for making sure that cron works within 1.7,
but it needs to be fixed so that it works with XP pro SP3, single user.
Before anyone says that it does work, I obviously disagree as I've been trying
for a couple of days to get it to work.  And, as noted, a reinstall back to
1.5 had cron working in minutes.

And before anyone says to move on to Win7, there are programs and hardware
that is in this system that will not work under Win7, and never will.

As for the sshd issue, I'll be reinstalling the third party sshd program that
I had initially installed.

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.Starbuck  3/25/07]   X  Against
Visit - URL: http://vidiot.com/ | http://vidiot.net/ / \ HTML Email

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



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
-- 
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.Starbuck  3/25/07]   X  Against
Visit - URL: http://vidiot.com/ | http://vidiot.net/ / \ HTML Email

--
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: 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 that ps is a little different in what it reports now.  I gather
that the server is no longer belonging to me, so it didn't show up.  I
just did a ps -eaf and there it is.

Now to find out why cron didn't do the job I scheduled.  Cron is also running,
so I have to figure out what went wrong.

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.Starbuck  3/25/07]   X  Against
Visit - URL: http://vidiot.com/ | http://vidiot.net/ / \ HTML Email

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



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 crontab entry?

OS is XP SP3

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.Starbuck  3/25/07]   X  Against
Visit - URL: http://vidiot.com/ | http://vidiot.net/ / \ HTML Email

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

Answering my own question: yes.

There was a change in execvp()'s behaviour to no longer look up
an executable in the current working directory, wasn't there? I
can't find it in the ChangeLog though.

 You've got to be kidding.  Why was the looking into CWD removed?

 PATH specifies the list of directories to search for executables.
 So if execvp() ever used . unconditionally regardless of PATH,
 then it violated one of the most long-standing UNIXy rules.

Yes, I know all about the . security hole and have cleaned many things
that used it.

Even if execvp() was changed to no longer use ., it should still use the
default path for system executables.  Cygwin does have a default, does it not?
It would seem not, otherwise the absolute path to the shell wouldn't be
required.

Funny thing is that the rxvt program was found.  Ya, I know, Windblows found
it, because it does look in the CWD.  But, once rxvt was started, wouldn't
the default cygwin PATH be brought in so that executables can be found?
Therefore execvp() shouldn't have an issue finding system executables.

So, based upon what actually happens and the user doc, it seems that at
startup, cygwin is deaf, dumb and blind regarding the executables in /bin.
You'd think that cygwin would at least know that when it starts.

Any particular reason why cygwin can't build itself a default PATH for
system executables?

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.Starbuck  3/25/07]   X  Against
Visit - URL: http://vidiot.com/ | http://vidiot.net/ / \ HTML Email

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

   http://cygwin.com/ml/cygwin-announce/2011-11/msg00043.html

From the user guide:

Icons

You may choose to install shortcuts on the Desktop and/or Start Menu to
start a bash shell. If you prefer to use a different shell or terminal
emulator such as mintty or xterm, you can use these shortcuts as a guide
to creating your own.


Console Programs

Alternatively, the optional mintty package provides a terminal emulator
similar to such X11 programs as xterm (it is not necessary to set
CYGWIN=tty with mintty nor is it necessary to be running /Cygwin/X).
Using mintty.exe provides the most Unix-like environment, but expect
some compatibility problems with Windows programs.


Overview

You may wish to specify settings of several important environment variables
that affect Cygwin's operation. Some of these settings need to be in effect
prior to launching the initial Cygwin session (before starting your bash
shell, for instance). They should therefore be set in the Windows
environment; all Windows environment variables are imported when Cygwin
starts. Such settings can be placed in a .bat file. An initial file is
named Cygwin.bat and is created in the Cygwin root directory that you
specified during setup. Note that the Cygwin option of the Start Menu
points to Cygwin.bat. Edit Cygwin.bat to your liking or create your own
.bat files to start Cygwin processes.


From the FAQ:

4.38.   
Is there a better alternative to the standard console window?

Yes! Use mintty instead. mintty is an optional packages in Cygwin Setup.
mintty is a Cygwin application providing a native GUI without the need
of X11


In other words, no where in the documentation is it stated that mintty is now
the default startup.  It all leans toward cygwin.bat as being the way things
are started.

So, just what is a user supposed to think when reading the documentation.
When I did the install, I told it not to install the desktop shortcut, as I
already have one.  There was no indication during the install to inform the
user that mintty is now the default startup, instead of cygwin.bat.

At this point in time, I have no clue as to how to set up cygwin to use it,
just to see what it is like.  The rxvt program has been working for me.

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.Starbuck  3/25/07]   X  Against
Visit - URL: http://vidiot.com/ | http://vidiot.net/ / \ HTML Email

--
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: 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 mentioned, I told the
installer not to create the desktop shortcut or the start menu option, as I
already had them.  So, the start menu currently points to the BAT file.

If there is an example of what the desktop shortcut has for the properties,
I can create one to see what mintty looks like.  I've never used mintty
under Solaris or Linux.

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.Starbuck  3/25/07]   X  Against
Visit - URL: http://vidiot.com/ | http://vidiot.net/ / \ HTML Email

--
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: 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:\cygwin\Cygwin-Termina.ico

Thanks, I created a shortcut with the above info and it is close.

It starts and it finds my shell and my config files.  But $SHELL is empty
and the terminal has no clue as to where any of the Cygwin programs are.
The PATH that is created before any of my files are read contains info on
Windblows program locations, but nowhere is /usr/bin or /bin, or any of the
long path names to the Cygwin binaries.

When started from the cygwin.bat file, /usr/local/bin:/usr/bin:/bin: prefice
the Windblows paths.  So, a PATH that includes the needed info to the cygwin
binaries is built when BAT is run, but not when mintty is started.

Is there a reason why Cygwin is not building a PATH with the needed info?

I've modified my environment resource file to look for $TERM == xterm and
added the needed Cygwin paths.

BTW, what is with white text on a black background?  UGGHH!  :-)

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.Starbuck  3/25/07]   X  Against
Visit - URL: http://vidiot.com/ | http://vidiot.net/ / \ HTML Email

--
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: 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
[I've been to Earth.  I know where it is. ]  \ / Ribbon Campaign
[And I'm gonna take us there.Starbuck  3/25/07]   X  Against
Visit - URL: http://vidiot.com/ | http://vidiot.net/ / \ HTML Email

--
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: 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 a login shell, in which case the 
 commands in /etc/profile should get executed.  One of the commands in the 
 default /etc/profile adds /usr/local/bin and /usr/bin to PATH. Have you 
 modified /etc/profile?

Oops, the cut-n-paste missed the '-' at the end.

All is well now.  Got the other stuff set up as well, like getting rid of
the white on black :-)

Thanks.

All that is left is ssh :-(

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.Starbuck  3/25/07]   X  Against
Visit - URL: http://vidiot.com/ | http://vidiot.net/ / \ HTML Email

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



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
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 it
does manage to stick, it seems to fail to start the zsh login process, i.e.,
the reading on my .z* startup files.  That results in any entered characters
being ignored, as there isn't a prompt there to accept input.

If I start cmd.exe manually, I can then start zsh and have something to work
with.  At that point, if I run cygwin.bat, (from the shell, not the shortcut)
it works.  Something in the 1.7 environment is required for rxvt to work
correctly, even though rxvt is the same version in both installations (1.5 and
1.7).  That or something changed to keep zsh from starting via the bat file
using rxvt.

If someone would be so kind as to post the contents of the default installed
cygwin.bat file, I'd appreciate it.  It is the only thing keeping me from
getting back to where I was working, before the upgrade.

Thanks.

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.Starbuck  3/25/07]   X  Against
Visit - URL: http://vidiot.com/ | http://vidiot.net/ / \ HTML Email

--
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: 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 it
 does manage to stick, it seems to fail to start the zsh login process, i.e.,
 the reading on my .z* startup files.  That results in any entered characters
 being ignored, as there isn't a prompt there to accept input.

From what I can discover, the default cygwin.bat file does not use rxvt.  It
has been a while since I first installed cygwin.

I was starting my shell with the following line:

rxvt -e zsh --login -i

That got me the window, but not the shell.  Doing some more digging I found
the following posting (via google):

 Does changing 'bash' to '/bin/bash' make a difference?

Answering my own question: yes.

There was a change in execvp()'s behaviour to no longer look up an
executable in the current working directory, wasn't there? I can't
find it in the ChangeLog though.

You've got to be kidding.  Why was the looking into CWD removed?  Probably
beating a dead horse.

Suggestions for document improvement:

FAQ addition to show how to modify the cygwin.bat file, or a copied file for
modification, in order to be able to run rxvt to start a better terminal.
This would solve the issue of users upgrading and their BAT file being broken.
Be sure to explain that /bin/ is now required.

Same thing with the main documention.  There are pieces about starting the
shell, but absolutely nothing about using a better terminal (rxvt) and how
to start/configure it.

Hell, why not make the use of rxvt standard in the default BAT file.  The
rxvt terminal is many times superior to the Windblows cmd terminal.

The only thing left now is getting ssh configured correctly so that I can
remotely log into the Windblows box using ssh.  The two config scripts failed
to provide a working config.  The remote login fails at the password checking.

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.Starbuck  3/25/07]   X  Against
Visit - URL: http://vidiot.com/ | http://vidiot.net/ / \ HTML Email

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



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 trusted.
debug1: ssh_connect: needpriv 0
debug1: Connecting to PVRpeecee [192.168.1.4] port 22.
debug1: Connection established.
debug1: identity file /home/brown/.ssh/identity type -1
debug1: identity file /home/brown/.ssh/id_rsa type -1
debug1: identity file /home/brown/.ssh/id_dsa type -1
debug1: Remote protocol version 2.0, remote software version OpenSSH_5.9
debug1: match: OpenSSH_5.9 pat OpenSSH*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-Sun_SSH_1.1
debug2: kex_parse_kexinit: 
diffie-hellman-group-exchange-sha1,diffie-hellman-group1-sha1
debug2: kex_parse_kexinit: ssh-rsa,ssh-dss
debug2: kex_parse_kexinit: aes128-ctr,aes128-cbc,arcfour,3des-cbc,blowfish-cbc
debug2: kex_parse_kexinit: aes128-ctr,aes128-cbc,arcfour,3des-cbc,blowfish-cbc
debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,hmac-sha1-96,hmac-md5-96
debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,hmac-sha1-96,hmac-md5-96
debug2: kex_parse_kexinit: none,zlib
debug2: kex_parse_kexinit: none,zlib
debug2: kex_parse_kexinit: i-default
debug2: kex_parse_kexinit: i-default
debug2: kex_parse_kexinit: first_kex_follows 0 
debug2: kex_parse_kexinit: reserved 0 
debug1: Failed to acquire GSS-API credentials for any mechanisms (No 
credentials were supplied, or the credentials were unavailable or inaccessible
Unknown code 0
)
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug2: kex_parse_kexinit: 
diffie-hellman-group-exchange-sha1,diffie-hellman-group1-sha1
debug2: kex_parse_kexinit: ssh-rsa,ssh-dss
debug2: kex_parse_kexinit: aes128-ctr,aes128-cbc,arcfour,3des-cbc,blowfish-cbc
debug2: kex_parse_kexinit: aes128-ctr,aes128-cbc,arcfour,3des-cbc,blowfish-cbc
debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,hmac-sha1-96,hmac-md5-96
debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,hmac-sha1-96,hmac-md5-96
debug2: kex_parse_kexinit: none,zlib
debug2: kex_parse_kexinit: none,zlib
debug2: kex_parse_kexinit: i-default
debug2: kex_parse_kexinit: i-default
debug2: kex_parse_kexinit: first_kex_follows 0 
debug2: kex_parse_kexinit: reserved 0 
debug2: kex_parse_kexinit: 
ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1
debug2: kex_parse_kexinit: ssh-rsa,ssh-dss,ecdsa-sha2-nistp256
debug2: kex_parse_kexinit: 
aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,aes192-cbc,aes256-cbc,arcfour,rijndael-...@lysator.liu.se
debug2: kex_parse_kexinit: 
aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,aes192-cbc,aes256-cbc,arcfour,rijndael-...@lysator.liu.se
debug2: kex_parse_kexinit: 
hmac-md5,hmac-sha1,umac...@openssh.com,hmac-sha2-256,hmac-sha2-256-96,hmac-sha2-512,hmac-sha2-512-96,hmac-ripemd160,hmac-ripemd...@openssh.com,hmac-sha1-96,hmac-md5-96
debug2: kex_parse_kexinit: 
hmac-md5,hmac-sha1,umac...@openssh.com,hmac-sha2-256,hmac-sha2-256-96,hmac-sha2-512,hmac-sha2-512-96,hmac-ripemd160,hmac-ripemd...@openssh.com,hmac-sha1-96,hmac-md5-96
debug2: kex_parse_kexinit: none,z...@openssh.com
debug2: kex_parse_kexinit: none,z...@openssh.com
debug2: kex_parse_kexinit: 
debug2: kex_parse_kexinit: 
debug2: kex_parse_kexinit: first_kex_follows 0 
debug2: kex_parse_kexinit: reserved 0 
debug2: mac_init: found hmac-md5
debug1: kex: server-client aes128-ctr hmac-md5 none
debug2: mac_init: found hmac-md5
debug1: kex: client-server aes128-ctr hmac-md5 none
debug1: Peer sent proposed langtags, ctos: 
debug1: Peer sent proposed langtags, stoc: 
debug1: We proposed langtags, ctos: i-default
debug1: We proposed langtags, stoc: i-default
debug1: SSH2_MSG_KEX_DH_GEX_REQUEST sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP
debug1: dh_gen_key: priv key bits set: 129/256
debug1: bits set: 1032/2048
debug1: SSH2_MSG_KEX_DH_GEX_INIT sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY
debug1: Host 'pvrpeecee' is known and matches the RSA host key.
debug1: Found key in /home/brown/.ssh/known_hosts:4
debug1: bits set: 985/2048
debug1: ssh_rsa_verify: signature correct
debug2: kex_derive_keys
debug1: newkeys: mode 1
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: newkeys: mode 0
debug1: SSH2_MSG_NEWKEYS received
debug1: done: ssh_kex2.
debug1: send SSH2_MSG_SERVICE_REQUEST
debug2: service_accept: ssh-userauth
debug1: got SSH2_MSG_SERVICE_ACCEPT
debug1: Authentications that can continue: 
publickey,password,keyboard-interactive
debug1: Next authentication method: publickey
debug1: Trying private key: /home/brown/.ssh/identity
debug1: Trying private key: /home/brown/.ssh/id_rsa
debug1: Trying private key: 

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 change their white foreground
and black background.  I want that reversed :-)

Thanks for te tip.

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.Starbuck  3/25/07]   X  Against
Visit - URL: http://vidiot.com/ | http://vidiot.net/ / \ HTML Email

--
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: 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.Starbuck  3/25/07]   X  Against
Visit - URL: http://vidiot.com/ | http://vidiot.net/ / \ HTML Email

--
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: 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 notice that the
list was truncated and therefore openssh didn't show up in the list.  The
search should not die after 30 entries, it should split it into pages.

I suppose I better update my installation.  I may be in trouble as uname says
that it is: CYGWIN_NT-5.1 

cygcheck version 1.88
System Checker for Cygwin
Copyright 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005 Red Hat, Inc.
Compiled on Jan 20 2006

So, what is this, 1.5.x or 1.7.x?  I'm guessing 1.5.x as I do not have a fstab
file.

The main web page has the following:

PLEASE read the User's Guide before upgrading your Cygwin installation to 1.7.
You'll be avoiding future trouble if you do this.

I found no section in the user guide regarding converting from 1.5 to 1.7.
The last thing I want to do is make my current install non-functional.

It does seem like a good idea to go to openssh, as it will also probably cure
my inverse color problem.  But, until I know what steps have to be taken to
go from 1.5 to 1.7, I ain't touching it.

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.Starbuck  3/25/07]   X  Against
Visit - URL: http://vidiot.com/ | http://vidiot.net/ / \ HTML Email

--
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: 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 available via Setup.exe and I don't remember 
 having any problems. The longer you wait updating the more potential 
 problems will arise. You should update at least once per month.

Wow, that is way more frequent than normal :-)

I've pulled the latest setup.exe down, so I suppose I'll have to do it.
Going to remove the other sshd firt.

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.Starbuck  3/25/07]   X  Against
Visit - URL: http://vidiot.com/ | http://vidiot.net/ / \ HTML Email

--
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: 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 either feature :-)

 Because you don't need to then get, install, config, update, etc. a bunch 
 of individualized packages all over the place!

Like I mentioned, I did a search of the packages and got fooled and didn't
notice that the website only lists the first 30.  If the website did what
other sites do, and that is have multiple pages, I would have gone thru
the other pages and seen openssh.

 Never understood why people do this. They get Putty (which, AFAICT, doesn't 
 play well with the concept of pre-shared ssh keys (in a Unix sense) and 
 doesn't give you scp, etc.) and then get some paid for X server like 
 Reflections/X or something like that, then get some WinFTP server and 
 WinCVS thingy, etc. Why do you want to mess with all of these non-unix, non 
 integrated and sometimes shell out $$ to piece together something when all 
 of that is available inside Cygwin and they all play well together???

My main server is Solaris x86, soon to be replaced with Linux Fedora 14.
Cygwin is placed on the two XP boxes that deal with satellite feed capture,
editing and rendering.  Con is my friend, as well as the Z-shell scripts that
I have to do various jobs.

I have puTTy on my laptop, which is what I use to get into my Solaris server
when I am away.  Don't do X as the DSL outbound speed is too damn slow. I
do everything via text.  It is all I need.

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.Starbuck  3/25/07]   X  Against
Visit - URL: http://vidiot.com/ | http://vidiot.net/ / \ HTML Email

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



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

But I'm surprised that no one has complained that the setup program will
hang during file downloads if the connection gets hammered so that the
connection is lost.  At least with programs like wget, it will reconnect
and continue from where it left off.

Not so the setup program.  Now I have to kill it and start over.

Not good, not good at all.

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.Starbuck  3/25/07]   X  Against
Visit - URL: http://vidiot.com/ | http://vidiot.net/ / \ HTML Email

--
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: 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 until this gets fixed.

Not having a robust downloader and NOT saving the package list is just plain
bad.  If anything, save the selection list and after an abort restart, tell
the user that there was a selection list from an aborted install and ask
do you want to use it? 

I'm not happy.  It has been a very long night and this I don't friggin' need.

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.Starbuck  3/25/07]   X  Against
Visit - URL: http://vidiot.com/ | http://vidiot.net/ / \ HTML Email

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



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 stay on the screen, but no prompt and whatever characters are entered
are ignored.

I got a Z-shell by starting CMD and entering: zsh --login -i

When it started it bitched about a parse error near \n at the end of the
.zlogin file, but not .zshenv, .zshrc or .zalias.  Is that a bug?

I got cron restarted by rerunning cron-config and doing a reinstall and
starting it as me (I'm the only user).

Now I need to know why the rxvt program is not working correctly.

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.Starbuck  3/25/07]   X  Against
Visit - URL: http://vidiot.com/ | http://vidiot.net/ / \ HTML Email

--
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: 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 my Solaris box, it keeps asking me for the password,
i.e., it can't correctly determine what it is.  I use:

ssh -l vidiot PVRpeecee

The other ssh daemon was able to get my password correct.  Any idea why
openssh can't figure out my password?

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.Starbuck  3/25/07]   X  Against
Visit - URL: http://vidiot.com/ | http://vidiot.net/ / \ HTML Email

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



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 server and connect that way.  Ya, well, not so
good there either.

I want to be able to start zsh from the telnet session so that I have full
access to the cygwin stuff, specifically being able to change crontab.

But, when I enter zsh nothing happens.  I do not get a Z-shell prompt based
upon my Z-shell config files.  Instead the telnet session hangs.  I have to
so a ^] and quit the telnet session.

Can the cygwin tools be accessed via a telnet connection and if so how?

Thanks.

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.Starbuck  3/25/07]   X  Against
Visit - URL: http://vidiot.com/ | http://vidiot.net/ / \ HTML Email

--
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: 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, and (c) restoring older partition image due to flakey 780G 
 support in new ATI drivers.

Bingo, fsarchiver did the trick.  It took a while, but a perfect copy was
made and deposited on the IDE drive and windblows was able to finish doing
its update thing.

All of my settings were left intact and, except for the video driver,
everything came back for the hardware I have installed.

I love Linux tools like this.  Even though the ntfs-3g program is still
supposed to be shaky, it worked perfectly.

Thanks for the suggestion.  It saved my ass.

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.Starbuck  3/25/07]   X  Against
Visit - URL: http://vidiot.com/ | http://vidiot.net/ / \ HTML Email

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



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 means I can't copy the files because
the Windblows IDs are different.  It is XP Pro - 32 bit.

What can I do that will allow me to do this:

cd h:
(cd g:/ ; tar cf -)|tar xvpf-

and get all of the files copied from the SATA drive (g:) to the IDE drive (h:)?

Thanks.

Oh, and yes, the normal Windblows copy fails as well.  Even though I am the
only user on the system and should have 100% administrative permission, there
are file that I can't copy.

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.Starbuck  3/25/07]   X  Against
Visit - URL: http://vidiot.com/ | http://vidiot.net/ / \ HTML Email

--
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: 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 clone, so it doesn't care about files and permissions and 
 such.

Unfortunately the original is larger.

 Even if you could copy with cp, you need the boot sector and such to get 
 the OS up, so that wouldn't work.

Actually it would.  There are two ways to do that.  First, which is what I
did in order to find out if the new mobo would boot anything, is to install
XP on the IDE drive.  That created the MBR.  I just erased everything that
was installed on the disk.  The other way is to copy the files over and run
the XP boot disk repair console and run the fixmbr program, which will drop
a new MBR on the drive.

So, I'm stuck with two drives of different sizes, which adds to the problem.

An interesting thought just came to mind.  If I can get all of the XP stuff
copied over and get it to boot and finish the XP upgrade, I can then copy
over the remainder of the files for all of the other stuff, as I'll now have
the permissions I need.

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.Starbuck  3/25/07]   X  Against
Visit - URL: http://vidiot.com/ | http://vidiot.net/ / \ HTML Email

--
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: 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...@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.Starbuck  3/25/07]   X  Against
Visit - URL: http://vidiot.com/ | http://vidiot.net/ / \ HTML Email

--
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: 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? how do I fix it?

IMHO it isn't broken.  That is the expected behavior.  That is how I use it
and I want to see all of the line, even if it wraps.

Why don't you want to see all of the line?

MB
-- 
e-mail: vid...@vidiot.com/~\ The ASCII
[I've been to Earth.  I know where it is. ]  \ / Ribbon Campaign
[And I'm gonna take us there.Starbuck  3/25/07]   X  Against
Visit - URL: http://vidiot.com/  / \ HTML Email

--
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: 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 even google it.

MB
-- 
e-mail: vid...@vidiot.com/~\ The ASCII
[I've been to Earth.  I know where it is. ]  \ / Ribbon Campaign
[And I'm gonna take us there.Starbuck  3/25/07]   X  Against
Visit - URL: http://vidiot.com/  / \ HTML Email

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



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/~\ The ASCII
[I've been to Earth.  I know where it is. ]  \ / Ribbon Campaign
[And I'm gonna take us there.Starbuck  3/25/07]   X  Against
Visit - URL: http://vidiot.com/  / \ HTML Email
Dakota: Loving K9 companion [Jan 1993 - Sep 22, 2008]

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



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


(The command I was really trying to run was
  grep --color -P -U '\r[^\n]|[^\r]\n' *.txt
 to find files that don't consistently use CR+LF line separators,
 but I was able to reduce it to a simpler test case.)


Thanks,
Mike

--
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: 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 else to report this?


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



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 for me.  Is there a compile time
define I need to make this happen?

In Linux to get 64-bit support I just define _LARGEFILE64_SOURCE and
add O_LARGEFILE onto the flags argument to open().  I can't figure out
how to get 64-bit support in the cygwin environment.  I've tried using
_lseek64() as defined in sys/unistd.h.  I've tried defining
__CYGWIN_USE_BIG_TYPES__.  I've tried defining __LARGE64_FILES.  None
of this works.  In all cases lseek(fd, 0, SEEK_END) returns
UINT_MAX - 1 when working with any file larger than 4Gb.  I've also
tried implementing my own lseek64() ala SetFilePointerEx() but I'm
getting a generic system error return.

I notice that lseek64() is in fact implemented in
winsup/cygwin/syscalls.cc, but how do I get it?

Here's a simple example app I'm using.  I run via:  a.out PhysicalDrive0

---
/* #define LINUX */
#define WIN32

#ifdef LINUX
#define _LARGEFILE64_SOURCE
#endif

#include stdio.h
#include stdlib.h
#include string.h
#include errno.h

#include sys/types.h
#include sys/stat.h
#include fcntl.h
#include unistd.h

#ifdef WIN32
#include windows.h
#include io.h
#endif

#ifndef TRUE
#define TRUE (1)
#endif
#ifndef FALSE
#define FALSE (0)
#endif

#ifdef WIN32
#ifndef O_LARGEFILE
#define O_LARGEFILE (0x00)
#endif
#endif

#define BLOCKSIZE 512
#define BYTE (sizeof(unsigned char))
#define KB (1024 * BYTE)
#define MB (1024 * KB)
#define GB (1024 * MB)

#define ASSERT(cond) \
do { \
if (!(cond)) { \
printf(ASSERT(%s) failed at %s:%d\n, #cond, \
   __FILE__, __LINE__); \
} \
} while(0)

int main(int argc, char *argv[])
{
int fd;
char filename[64];
unsigned long long maxblock;
int i;

if (argc != 2) {
fprintf(stderr, Usage:\n\tblockcmp blockdev\n);
exit(1);
}

#ifdef WIN32
/* automatically add the \\.\ crap in front */
sprintf(filename, .\\%s, argv[1]);
#else
sprintf(filename, %s, argv[1]);
#endif

if ((fd = open(filename, O_RDONLY | O_LARGEFILE))  0) {
perror(open failed);
exit(2);
}

#ifdef WIN32
maxblock = lseek(fd, 0, SEEK_END);
#else
maxblock = lseek64(fd, 0, SEEK_END);
#endif

if (maxblock == (unsigned long long) -1) {
perror(lseek failed);
exit(3);
}

printf(%llub, %lluKb, %lluMb, %lluGb in %s\n, maxblock,
   maxblock / KB, maxblock / MB, maxblock / GB, filename);

close(fd);

return 0;
}

#if 0
#ifdef WIN32
unsigned long long lseek64 (int fd, unsigned long long offset, int whence)
{
HANDLE File;
LARGE_INTEGER Offset, NewOffset;
DWORD MoveMethod;

unsigned int ret;
int err;

/* convert fd to File */
File = (HANDLE) get_osfhandle(fd);

Offset.QuadPart = offset;
/* convert whence to MoveMethod */
switch (whence) {
case SEEK_CUR:
MoveMethod = FILE_CURRENT;
break;
case SEEK_SET:
MoveMethod = FILE_BEGIN;
break;
case SEEK_END:
MoveMethod = FILE_END;
break;
default:
ASSERT(0);
}

// 
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/fileio/base/setfilepointerex.asp
ret = SetFilePointerEx(File, Offset, NewOffset, MoveMethod);

if (ret == 0) {
/* SetFilePointerEx() failed */
err = GetLastError();
fprintf(stderr, SetFilePointerEx(%x, %llu, %p, %d) returned 
%d failcode %d\n, (int) File, Offset.QuadPart,
NewOffset, (int) MoveMethod, ret, err);
errno = ESPIPE;
return ((unsigned long long) -1);
}

return NewOffset.QuadPart;
}
#endif
#endif

---

Here's my cygcheck -s -v -r:

---


Cygwin Win95/NT Configuration Diagnostics
Current System Time: Wed Mar 31 13:18:20 2004

Windows XP Professional Ver 5.1 Build 2600 Service Pack 1

Path:   ~\bin\CYGWIN_NT-5.1
~\bin
C:\cygwin\bin
C:\cygwin\bin
C:\cygwin\usr\sbin
C:\cygwin\sbin
C:\cygwin\usr\X11R6\bin
C:\cygwin\usr\local\bin
C:\cygwin\usr\local\jdk\bin
C:\cygwin\usr\local\jre\bin
C:\cygwin\usr\ucb
C:\cygwin\usr\local\bin
C:\cygwin\bin
C:\cygwin\bin

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

2004-03-31 Thread Mike Brown
Hi Igor,

Yes the a.out a.exe thing is a typo.  I've read the page on special
filenames.  You can use the POSIX names or you can open the Windows
device namespace name.  Either way, my problem isn't with opening and
reading from the disk device.  That works fine.  My problem is with
lseek() 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 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 for me.  Is there a compile time
  define I need to make this happen?
 
  [snip]
  Here's a simple example app I'm using.  I run via:  a.out PhysicalDrive0
 
 Michael,
 
 I don't know if it's related to the problem you're having, but I'm sure
 you've read http://cygwin.com/cygwin-ug-net/using-specialnames.html,
 right?  Try compiling a Linux version with #define lseek64 lseek, and
 use ./a.exe /dev/sda (note that Cygwin gcc produces a.exe, not a.out, by
 default, so I assume the above is a typo or the result of an explicit -o
 flag).
   Igor
 
  ---
  /* #define LINUX */
  #define WIN32
 
  [snip]
  #ifdef WIN32
  /* automatically add the \\.\ crap in front */
  sprintf(filename, .\\%s, argv[1]);
  #else
  sprintf(filename, %s, argv[1]);
  #endif
  [snip]
  #ifdef WIN32
  maxblock = lseek(fd, 0, SEEK_END);
  #else
  maxblock = lseek64(fd, 0, SEEK_END);
  #endif
 
 -- 
   http://cs.nyu.edu/~pechtcha/
   |\  _,,,---,,_  [EMAIL PROTECTED]
 ZZZzz /,`.-'`'-.  ;-;;,_  [EMAIL PROTECTED]
  |,4-  ) )-,_. ,\ (  `'-' Igor Pechtchanski, Ph.D.
 '---''(_/--'  `-'\_) fL   a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!
 
 I have since come to realize that being between your mentor and his route
 to the bathroom is a major career booster.  -- Patrick Naughton
-Michael F. Brown, EMC Corp.

Email:[EMAIL PROTECTED]
EMC Tie Line:  824 25924
External Line:(508) 382-5924

5 years from now everyone will be running free
 GNU on their 200 MIPS, 64M SPARCstation-5.  -Andrew Tanenbaum '92

(In late 1997 I installed Linux for the first time on my 200Mhz, 128M
 AMD x86 clone)

--
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: 64-bit file operations (lseek64() etc) misbehaving

2004-03-31 Thread Mike Brown
Hi,

Yep that fixes me.  Thanks Igor.  Odd that the open() succeeds for
\\.\PhysicalDrive0.  _shrug_.  I'll gladly use /dev/sda.

-Mike

On Wed, Mar 31, 2004 at 04:18:49PM -0500, Igor Pechtchanski wrote:
 Mike,
 
 FYI, the following works just fine on my system (Win2k, Cygwin 1.5.9, 11G
 harddrive):
 
 --
 #include sys/types.h
 #include stdio.h
 #include fcntl.h
 #include unistd.h
 
 #define BYTE (sizeof(unsigned char))
 #define KB (1024 * BYTE)
 #define MB (1024 * KB)
 #define GB (1024 * MB)
 
 int main(int argc, char *argv[]) {
   int fd;
   off_t maxblock;
   if ((fd = open(/dev/sda, O_RDONLY))  0) {
   perror(open failed); exit(2);
   }
   if ((maxblock = lseek(fd, 0, SEEK_END)) == (off_t) -1) {
   perror(lseek failed); exit(3);
   }
   printf(%llub, %lluKb, %lluMb, %lluGb in /dev/sda\n, maxblock,
  maxblock / KB, maxblock / MB, maxblock / GB);
   close(fd);
   return 0;
 }
 --
 
 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 wrote:
 
  Hi Igor,
 
  Yes the a.out a.exe thing is a typo.  I've read the page on special
  filenames.  You can use the POSIX names or you can open the Windows
  device namespace name.  Either way, my problem isn't with opening and
  reading from the disk device.  That works fine.  My problem is with
  lseek() 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 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 for me.  Is there a compile time
define I need to make this happen?
   
[snip]
Here's a simple example app I'm using.  I run via:  a.out PhysicalDrive0
  
   Michael,
  
   I don't know if it's related to the problem you're having, but I'm sure
   you've read http://cygwin.com/cygwin-ug-net/using-specialnames.html,
   right?  Try compiling a Linux version with #define lseek64 lseek, and
   use ./a.exe /dev/sda (note that Cygwin gcc produces a.exe, not a.out, by
   default, so I assume the above is a typo or the result of an explicit -o
   flag).
 Igor
  
---
/* #define LINUX */
#define WIN32
   
[snip]
#ifdef WIN32
/* automatically add the \\.\ crap in front */
sprintf(filename, .\\%s, argv[1]);
#else
sprintf(filename, %s, argv[1]);
#endif
[snip]
#ifdef WIN32
maxblock = lseek(fd, 0, SEEK_END);
#else
maxblock = lseek64(fd, 0, SEEK_END);
#endif
 
 -- 
   http://cs.nyu.edu/~pechtcha/
   |\  _,,,---,,_  [EMAIL PROTECTED]
 ZZZzz /,`.-'`'-.  ;-;;,_  [EMAIL PROTECTED]
  |,4-  ) )-,_. ,\ (  `'-' Igor Pechtchanski, Ph.D.
 '---''(_/--'  `-'\_) fL   a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!
 
 I have since come to realize that being between your mentor and his route
 to the bathroom is a major career booster.  -- Patrick Naughton

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