Re: Autarkic fortune/strfile usage possible?

2004-05-06 Thread Christopher Faylor
On Thu, May 06, 2004 at 10:18:59PM +0200, Hannu E K Nevalainen wrote:
>you never pondered a tiny bit on _why_ I wrote the above, did you?

Bingo.  You hit the nail on the head.  I barely give most of the things you
write more than 30 seconds of consideration.

And, oddly enough, I am still leading a rich and fullfilling life.  Go figger.

cgf

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



How to install info files?

2004-05-06 Thread Peng Yu
When try "info gdb", I get an error message "info: dir: No such file or
directory".
GDB is installed on my machine. How I can install the info file?



--
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: CRON problems

2004-05-06 Thread Andrew DeFaria
Brian Dessent wrote:

Hank Statscewich wrote:

Great suggestion. In /var/log/cron.log there were 17 lines of:
/usr/sbin/cron: can't open or create /var/run/cron.pid: Permission denied
So I just changed permission of the file to 777 and cron started up 
just fine.
I rebooted and lo and behold cron is still running. I'm changing 
permission
back to something more appropriate now. I am now a fully satisfied 
cygwin user.
Thansk for such a great port of linux onto windows, Cygwin is the 
best of both
worlds (at least for now :)


Hmm, seems to me like checking ownership and permissions of cron.pid 
would be something the cron_diagnose.sh should do. What happened was 
that you ran it initially as your normal user account, and the pid 
file was created. Then when you tried to start it as a service, it was 
running as the SYSTEM account which didn't have permissions to 
overwrite the file. The solution would be to either just remove it and 
let cron recreate it, or "chown SYSTEM:SYSTEM /var/run/cron.pid". Then 
you could give it more restrictive permissions than 777, perhaps 640 
or 600.
You should also check the ownership/permissions of /var/cron* and 
/var/log/cron.log. When I setup cron I normally do:

# Make sure that certain directories and files do not exist! This is to let
# cron create them, which appears to be the only way to get these created
# correctly!
if [ ! -d /var/cron ]; then
 rm -rf /var/cron
 rm -rf /var/run/cron.pid
 rm -rf /var/log/cron.log
 # Install cron service:
 cygrunsrv -I cron -p /usr/sbin/cron -a -D -d "Cygwin cron" -e 
"[EMAIL PROTECTED]" -e "CYGWIN=ntsec"
fi

# Start cron service
cygrunsrv -S cron
--
3 kinds of people: those who can count & those who can't.
--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/


Re: PCMCIA & Cygwin

2004-05-06 Thread Tomasz Rojek
> I'm a total newbie to Cygwin. I have been looking for information on
PCMCIA
> support in Cygwin & how-to, both in cygwin.com and the web but I have been
> unsuccessful.

Hi,

I have no problems using CF Flash cards attached to PCMCIA port with CF
adapter. The card is showed as /cygdrive/e/ - it gets the same name for the
drive which Windows assignes to it.

-- 
Greetings

Tomasz Rojek




--
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: pthreads and sockets - Cannot register window class error

2004-05-06 Thread Corinna Vinschen
On May  6 01:47, Hannu E K Nevalainen wrote:
> > >Just a wild guess, but gethostbyname() is probably not reentrant and
> > >can't be called from threads like that.
> >
> > Unless HOST is a numeric IP address, gethostbyname should be properly
> > reentrant.  The only time gethostbyname is not thread safe is when it is
> > resolving a numeric IP.
> >
> > cgf
> 
>  Is this specifically for cygwin, or common place?

Cygwin.  Common is what is described in SUSv3.

Corinna

-- 
Corinna Vinschen  Please, send mails regarding Cygwin to
Cygwin Co-Project Leader  mailto:[EMAIL PROTECTED]
Red Hat, Inc.

--
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: newline in patch command output

2004-05-06 Thread Corinna Vinschen
On May  5 06:50, Brian Dessent wrote:
> Baurjan Ismagulov wrote:
> > 
> > Hello,
> > 
> > I wish to use diff and patch on files with CR/LF newlines. I've
> > installed cygwin with DOS text file type. Diff produced a patch with
> > CR/LF. When I try to apply this patch, the modified files contain only
> > LF, and I have to run unix2dos on them. How can I make patch produce
> > output files with CR/LF in DOS mode?
> > 
> > I've tried to search this in google and list archives, but "patch"
> > brought too many false hits :( .
> 
> patch is a tricky area in terms of line-endings.  This is mostly
> explained in . 
> Patch can read in either binmode or textmode (depending on the mount and
> presense of --binary) but it always writes its output in binmode, which
> is what causes your CRs to go away.  Corinna might be able to clarify
> why this must be so.

I'm not sure if it "must", but it's the solution which costs as few grief
as possible.  I tried various combinations but in the end, writing all
output files in binary was the only one to stop patch to screw up files
in one way or the other.

Since you can be sure that patch creates always LF files, I don't see
a problem in using unix2dos on them afterwards.  It's reliable.

Corinna

-- 
Corinna Vinschen  Please, send mails regarding Cygwin to
Cygwin Co-Project Leader  mailto:[EMAIL PROTECTED]
Red Hat, Inc.

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



Redirect IO in win32 GUI application to console

2004-05-06 Thread Arek Baranowski

Hi folks,
I need a win32 GUI application with standard IO access to a console.
I found at the web a solution (see source at end of this mail) which works fine with 
windows console (winXP) but crashes when used with the cygwin console. In detail it's 
the line

  . . .

  *stdout = *fp;

  . . .

which doesn't work.

For some helpful ideas I would appreciate.


___

   Dipl.-Informatiker
   Arkadiusz Baranowski

   Panoratio Database Images GmbH
   Ismaninger Str. 17-19
   81675 München

   Tel: +49 89 413 006-82
   Mobil: +49 179 479 451 0
   E-Mail: [EMAIL PROTECTED]

www.panoratio.de
___






// Beginning of file

// This is required for using win console functions
#define _WIN32_WINNT 0x0501

#include 
#include 
#include 
#include 
#include 


int APIENTRY WinMain(HINSTANCE hInstance,
 HINSTANCE hPrevInstance,
 LPTSTR lpCmdLine,
 int nCmdShow)
{


  int hConHandle;
  long lStdHandle;
  FILE *fp;
  int iVar;

  // Try to attach to a console
  if (!AttachConsole (ATTACH_PARENT_PROCESS)) {
MessageBox (NULL,"Could not attach to a console.\n"
"Start program from a console.",
"Message Box",MB_OK);
ExitProcess (1);
  }

  // redirect unbuffered STDOUT to the console
  lStdHandle = (long)GetStdHandle(STD_OUTPUT_HANDLE);
  hConHandle = _open_osfhandle(lStdHandle, _O_TEXT);
  fp = _fdopen( hConHandle, "w" );
  *stdout = *fp;
  setvbuf( stdout, NULL, _IONBF, 0 );

  // redirect unbuffered STDIN to the console
  lStdHandle = (long)GetStdHandle(STD_INPUT_HANDLE);
  hConHandle = _open_osfhandle(lStdHandle, _O_TEXT);
  fp = _fdopen( hConHandle, "r" );
  *stdin = *fp;
  setvbuf( stdin, NULL, _IONBF, 0 );

  // redirect unbuffered STDERR to the console
  lStdHandle = (long)GetStdHandle(STD_ERROR_HANDLE);
  hConHandle = _open_osfhandle(lStdHandle, _O_TEXT);
  fp = _fdopen( hConHandle, "w" );
  *stderr = *fp;
  setvbuf( stderr, NULL, _IONBF, 0 );

  // test stdio
  fprintf(stdout, "Test output to stdout\n");
  fprintf(stderr, "Test output to stderr\n");
  fprintf(stdout, "Enter an integer to test stdin: ");
  fscanf(stdin,"%d", &iVar);
  printf("You entered %d\n", iVar);
  getch();


  return 0;

}

//End of File


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

2004-05-06 Thread Corinna Vinschen
On May  5 18:32, Vince Hoffman wrote:
> Checkpoint appear to be distributing cygwin1.dll (as well as gzip and
> gtar) without any obvious sources available. if fact of the 3 GPL utils
> its the only that doesnt have its own copying notice (they do at least
> provide a copy of the GPL.)
> I havent contacted them about this as i could be in error and havent at
> the moment got time for an exaustive search of their site, but i thought
> i'd best let the list know.
> offending archive at
> http://www.checkpoint.com/techsupport/downloads/bin/firewall1/ng/fp3/
> verify/upgrade_checker_B53066_1_win32.tgz
> (excuse the wrapped URL)
> although it could be in others (havent checked.)

Thanks for the hint.  I asked our layer to have a look.

Corinna

-- 
Corinna Vinschen  Please, send mails regarding Cygwin to
Cygwin Co-Project Leader  mailto:[EMAIL PROTECTED]
Red Hat, Inc.

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

2004-05-06 Thread Corinna Vinschen
On May  6 10:29, Corinna Vinschen wrote:
> Thanks for the hint.  I asked our layer to have a look.

s/layer/lawyer

Corinna

-- 
Corinna Vinschen  Please, send mails regarding Cygwin to
Cygwin Co-Project Leader  mailto:[EMAIL PROTECTED]
Red Hat, Inc.

--
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: echo $HOME returns /cygdrive/c/documents and setting/mrane

2004-05-06 Thread Reini Urban
Montana Rane schrieb:
for the administrative user, under which cygwin was installed, echo $HOME 
returns /home/Administrator.
This is not your problem. Please describe the problem in the message 
body and not only in the subject.

I need to set up cygwin so it does not preface the path with /cygdrive/c as 
this breaks our existing scripts.
You scripts most likely don't brake because of the /cygdrive/c/ prefix, 
they break because of the space in the pathname.

Solution:
Link it under your cygwin tree and fix the appropriate passwd entries.
untested script to get the idea:
mkdir /home
for h in /cygdrive/c/documents\ and\ setting/*; do
  ln -s /cygdrive/c/documents\ and\ setting/$h /home/
done
perl -pi.bak -e's|/cygdrive/c/documents and setting/|/home/|' \
 /etc/passwd
--
Reini Urban
http://xarch.tu-graz.ac.at/home/rurban/
--
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: GPL violation ?

2004-05-06 Thread Dave Korn
> -Original Message-
> From: cygwin-owner  On Behalf Of Corinna Vinschen
> Sent: 06 May 2004 09:36

> 
> On May  6 10:29, Corinna Vinschen wrote:
> > Thanks for the hint.  I asked our layer to have a look.
> 
> s/layer/lawyer
> 
> Corinna


  That makes me think, if OSI had defined a seven-lawyer model instead of a
seven-layer model, computer networking would never have got off the ground;
they'd still be arguing about it today!


cheers, 
  DaveK
-- 
Can't think of a witty .sigline today


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



RE: problems with cygwin

2004-05-06 Thread Reid Thompson
Try removing the -multiwindow parameter to XWin

reid


- 
> XOpenDisplay () returned and successfully opened the display.
> 
> wmaker fatal error: it seems that there is already a window 
> manager running
> 
> waiting for X server to shut down winClipboardProc - Call to select ()
> failed: -
> 1.  Bailing.
> winClipboardProc - XDestroyWindow succeeded.
> 
> winClipboardIOErrorHandler!
> 

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



ssh password

2004-05-06 Thread David Corbin
I'm very confused.  When ssh to cygwin sshd, how does it try to match the 
password?

Thanks
David

--
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: problems with cygwin

2004-05-06 Thread Ken Dibble

Tarun Sharma wrote:
Hi
I have just installed cygwin on my Win XP system. But when I try to start
windowmaker then it justs says cant start x-server at 127.0.0.1:0.0 . I
tried few more things but couldnt succeed.
Ihe porblem I am thinking is related to some configuration. I also tried to
run XWin. which is running.And xterm can be connected to this.
Can anybody help me in this problem.
Are you using the startXWin.bat file?  Trying to run multiple window 
managers concurrently?
If memory serves the people in this list usually refer you to the 
cygwin-xfree mailing list. (per http://cygwin.com/lists.html)

Some other question I want to ask is :
1. Can we have different users for cygwin. Because it just added one icon in
start menu by which I can just run cygwin's bash shell.
Yes
2. Some of the commands like more is not working on my system. I tried to
search it in /usr/bin but its not there.
per Larry Hall:
I expect you really want 'less' but either way, visit 
 to determine the package you should install
to get the utility you want.  This works for all utilities. ;-)


--

Please update me about these problems
regards
-tarun
 

Proper problem reporting here:
http://cygwin.com/problems.html
 


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/


1.5.9: Trouble with setting variables using 'read' in a script

2004-05-06 Thread Kevan Gelling

I'm having trouble setting variables using the 'read' command in bash.

All of the following lines fail to set $var and return a blank line.
  - echo "text" | read var ; echo $var
  - cat file | read var ; echo $var
  - read var < file | echo $var

I can get it work by explicitly declaring the file descriptor with the file
redirection, but I'd prefer to use a pipe.
  - read -u 0 var http://www.star.net.uk


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: echo $HOME returns /cygdrive/c/documents and setting/mrane

2004-05-06 Thread Igor Pechtchanski
On Thu, 6 May 2004, Reini Urban wrote:

> Montana Rane schrieb:
> > for the administrative user, under which cygwin was installed, echo $HOME
> > returns /home/Administrator.
>
> This is not your problem. Please describe the problem in the message
> body and not only in the subject.
>
> > I need to set up cygwin so it does not preface the path with /cygdrive/c as
> > this breaks our existing scripts.
>
> You scripts most likely don't brake because of the /cygdrive/c/ prefix,
> they break because of the space in the pathname.
>
> Solution:
> Link it under your cygwin tree and fix the appropriate passwd entries.
>
> untested script to get the idea:
> mkdir /home
> for h in /cygdrive/c/documents\ and\ setting/*; do
>ln -s /cygdrive/c/documents\ and\ setting/$h /home/
   ^^
Missing quotes here.  Should be "$h".

> done
> perl -pi.bak -e's|/cygdrive/c/documents and setting/|/home/|' \
>   /etc/passwd

Or 'mount -s c:/Documents\ and\ Settings/ /home', if you don't mind
putting up with '/home/All Users', etc...
Igor
-- 
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/



Re: ssh password

2004-05-06 Thread Igor Pechtchanski
On Thu, 6 May 2004, David Corbin wrote:

> I'm very confused.  When ssh to cygwin sshd, how does it try to match the
> password?

It doesn't.  It delegates to Windows.
Igor
-- 
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/



Re: ssh password

2004-05-06 Thread Igor Pechtchanski
On Thu, 6 May 2004, Igor Pechtchanski wrote:

> On Thu, 6 May 2004, David Corbin wrote:
>
> > I'm very confused.  When ssh to cygwin sshd, how does it try to match
> > the password?
>
> It doesn't.  It delegates to Windows.

Upon re-reading the above, I realized that you didn't clarify which
Windows version you were asking about.  IIRC, on Win9x the passwords can
be "crypt"ed into /etc/passwd directly.  On WinNT/2k/XP, the
authentication is delegated to the OS.
Igor
-- 
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/



Re: 1.5.9: Trouble with setting variables using 'read' in a script

2004-05-06 Thread Andy Rushton
Kevan Gelling wrote:
I'm having trouble setting variables using the 'read' command in bash.
All of the following lines fail to set $var and return a blank line.
 - echo "text" | read var ; echo $var
 - cat file | read var ; echo $var
 - read var < file | echo $var
 

The problem is that the pipeline is executed by spawning a sub-process 
and running a sub-shell in it. The variable that is being read into is 
actually a copy that exists within that sub-shell, not the original that 
you declared in the script. Variables set in sub-shells cannot be passed 
back to their parent shell (the script itself).

I can get it work by explicitly declaring the file descriptor with the file
redirection, but I'd prefer to use a pipe.
 - read -u 0 var 
 

This doesn't create a sub-shell, so the variable being read is the one 
in the script.

Another related quirk, is that variables set within 'while read' loops lose
their values once the loop ends.  The following example displays "text text"
within the loop and blank line outside.
 - echo "text" |\
   while read
   do 
 foo=$REPLY ; bar="text"
 echo $foo $bar
   done
   echo $foo $bar
 

The while loop also becomes a sub-shell. Same problem as the pipeline.
This is a 'feature' of bash and indeed all Bourne-shell derivatives. It 
makes a lot of shell features much harder to use than you would expect.

Incidentally, this is why you cannot write shell scripts to change your 
environment. The script runs in a sub-shell, changes the local copy of 
the environment and then discards the local copy on exit leaving the 
parent shell in the same state as it was in before.

Andy
--
Andy Rushton, Southampton, UK
We may eventually come to realize that chastity is no more a virtue
than malnutrition.
-- Alex Comfort
--
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: 'read' and pipes, was: 1.5.9: Trouble with setting variables using 'read' in a script

2004-05-06 Thread Jan Schormann
> Another related quirk, is that variables set within
> 'while read' loops lose
> their values once the loop ends.  The following example
> displays "text text"
> within the loop and blank line outside.
>   - echo "text" |\
> while read
> do
>   foo=$REPLY ; bar="text"
>   echo $foo $bar
> done
> echo $foo $bar
>
> Is this a feature of bash or a bug?  If it is a feature is there a
> workaround?

As I learned shortly ago, the pipe '|' always forces
a new subshell. This holds for any shell, though someone
said that they differ in which side of the pipe gets
to be the subshell and which will be executed in the
main shell.

Thus, in your example, $foo and $bar only exist in the
subshell and will never be known to the surrounding
shell.

I think you can get closer to it using redirection



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



cont'd - RE: 1.5.9: Trouble with setting variables using 'read' in a script

2004-05-06 Thread Jan Schormann
(Please excuse the unfinished last mail, I hit "Ctrl-Enter"
by accident.)

>   - echo "text" | read var ; echo $var
>   - cat file | read var ; echo $var
>   - read var < file | echo $var

.. continuing from last time, all of these won't work
because you're always creating a new subshell.

Try

  read var < file ; echo $var

Cheers,
Jan.



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

2004-05-06 Thread Christopher Faylor
On Wed, May 05, 2004 at 07:08:59PM +0100, Vince Hoffman wrote:
>This comes up on here every now and then and if i didnt think it was a
>possible issue i wouldnt have brought it up.  Mind you IANAL so i could
>have bought this up for nothing, thus passing the buck to to other
>(hopefully) more knowledgeable people than me (ie the list)

Tracking these kind of things down was one of the most odious parts of
my nebulous cygwin-related responsibilities for Red Hat but I *always*
appreciated the efforts of people like you, Vince, who brought this kind
of stuff to our attention.  It's especially brave of you to raise the
issue since you've been around long enough to know what kind of
responses you'll get.

As I am sure you know, mentioning the GPL always starts a Rube Goldberg
reaction of interpretation from would-be lawyers, zealots, or people who
are unsatisfied with following the rules and assume they should have
more rights to the software than the owners of the software intend to
provide.

I am sure that Corinna appreciates knowing about these matters, too.
Just before I left I tried to set up an arrangement with Red Hat legal
to let them handle these type of things so that she wouldn't have to be
saddled with this responsibility.  It looks like this might be a trial
of that arrangement.

cgf

--
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: pthreads and sockets - Cannot register window class error

2004-05-06 Thread Brian Ford
On Thu, 6 May 2004, Jacek Trzmiel wrote:

> Nevertheless ThreadingTest.cpp posted here:
>
> http://cygwin.com/ml/cygwin/2004-05/msg00178.html
>
> still sometimes fails, even with 20040504 snapshot:
>
> > $ g++ ThreadingTest.cpp -lpthread -o ThreadingTest.exe && ./ThreadingTest.exe
> > 238 [win] ThreadingTest 1696 Winmain: Cannot register window class, Win32 
> > error 1410
> > 896 [win] ThreadingTest 1696 Winmain: Cannot register window class, Win32 
> > error 1410

It's an obvious race condition in winsup/cygwin/window.cc (gethwnd):
ourhwnd.  I'm not quite sure how to fix it yet, and I've got to do real
work now.  So, have at it :-).

-- 
Brian Ford
Senior Realtime Software Engineer
VITAL - Visual Simulation Systems
FlightSafety International
the best safety device in any aircraft is a well-trained pilot...

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: 1.5.9: Trouble with setting variables using 'read' in a script

2004-05-06 Thread Brian Dessent
Kevan Gelling wrote:

> All of the following lines fail to set $var and return a blank line.
>   - echo "text" | read var ; echo $var
>   - cat file | read var ; echo $var
>   - read var < file | echo $var

The other reply by Andy R is spot on, you can't modify the current
environment from a subshell.  If you want to use the above idioms, you
can use:

echo "text" | (read var; echo $var)

This causes the 'echo' to be run from the same subshell as 'read', so it
will see the modified environment.  None of this is specific to Cygwin,
it's the design of sh/ash/bash type shells, and so there are better
places to ask about these kinds of things than the Cygwin list.  Try
looking for newsgroups, FAQs, or books dealing with Bourne shell
programming.

Brian

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: pthreads and sockets - Cannot register window class error

2004-05-06 Thread Christopher Faylor
On Thu, May 06, 2004 at 11:13:43AM -0500, Brian Ford wrote:
>On Thu, 6 May 2004, Jacek Trzmiel wrote:
>
>> Nevertheless ThreadingTest.cpp posted here:
>>
>> http://cygwin.com/ml/cygwin/2004-05/msg00178.html
>>
>> still sometimes fails, even with 20040504 snapshot:
>>
>> > $ g++ ThreadingTest.cpp -lpthread -o ThreadingTest.exe && ./ThreadingTest.exe
>> > 238 [win] ThreadingTest 1696 Winmain: Cannot register window class, Win32 
>> > error 1410
>> > 896 [win] ThreadingTest 1696 Winmain: Cannot register window class, Win32 
>> > error 1410
>
>It's an obvious race condition in winsup/cygwin/window.cc (gethwnd):
>ourhwnd.  I'm not quite sure how to fix it yet, and I've got to do real
>work now.  So, have at it :-).

This code has needed a complete rewrite for sometime.  Its use of static
buffers makes it a guaranteed race-full zone.

cgf

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



ssh

2004-05-06 Thread Jimmy Hayes
Hi I setup ssh on cygwin and when files get dropped on ssh to windows it
automatically assigns the rights to read for the everyone group. Is it
possible to tweak this
So that files coming from a certain user are only accessible from that
user? Permissions on the parent folder are different so the permission
are not being inherited.

My goal is to have a folder where everybody can drop files but not get
or read.

thanks

Jimmy Hayes 


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

2004-05-06 Thread Clemson, Chris
> Hi I setup ssh on cygwin and when files get dropped on ssh to 
> windows it
> automatically assigns the rights to read for the everyone group. Is it
> possible to tweak this
> So that files coming from a certain user are only accessible from that
> user? Permissions on the parent folder are different so the permission
> are not being inherited.
> 
> My goal is to have a folder where everybody can drop files but not get
> or read.

sounds like it might be easier to setup an ftp server to achieve what you
want.

-- 
The content of this e-mail is confidential, may contain privileged material
and is intended solely for the recipient(s) named above. If you receive this
in error, please notify Software AG immediately and delete this e-mail.

Software AG (UK) Limited
Registered in England & Wales 1310740
Registered Office: Hudson House, Hudson Way,
Pride Park, Derby DE24 8HS

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

2004-05-06 Thread Dave Korn
> -Original Message-
> From: cygwin-owner On Behalf Of Christopher Faylor
> Sent: 06 May 2004 16:56

> On Wed, May 05, 2004 at 07:08:59PM +0100, Vince Hoffman wrote:
> >This comes up on here every now and then and if i didnt 
> think it was a
> >possible issue i wouldnt have brought it up.  Mind you IANAL 

http://cygwin.com/acronyms/#YANALATEYHSMBSI :) lol!


  However, the real point I wanted to mention is that
http://cygwin.com/assign.txt seems almost certain to be invalid under UK
law, and quite possibly under US law too.

  You can't have a contract without an exchange of something of value.
Hence the line about "For good and valuable consideration, receipt of which
I acknowledge".  But *what* consideration?  AFAICS, since nobody's ever been
paid so much as a wooden nickel for their cygwin contributions, every claim
to have been in receipt of such consideration is false, and so every single
one of the supposed contracts is currently in breach and therefore none of
the assignments are valid.

  I'm slightly alarmed to notice this and wonder what the RH legal team have
to say about it?  I think the RH lawyers may need to spend some time sending
people peppercorns through the post, along with a letter apologising for the
late payment!

[  Here are some references for anyone who wants to research this themselves
a bit:

http://www.google.com/search?q=peppercorn+rent+contract+validity&hl=en&lr=&i
e=UTF-8&oe=UTF-8

http://www.google.com/search?hl=en&lr=&ie=UTF-8&oe=UTF-8&q=sufficiency+of+ex
change+contract+validity+peppercorn

http://www.encyclopedia4u.com/c/consideration.html
An illusory promise, or one which the promisor actually has no obligation to
keep, does not count as consideration. The promise must be real and
unconditional.

http://law.wustl.edu/Organizations/SBA/Outlines/Contracts%20-%20OUTLINEBIG.h
tm
b. Saying there is consideration is not consideration, neither is a seal.
Nominal consideration which means nothing is not consideration.  ]


cheers,
  DaveK
-- 
Can't think of a witty .sigline today



--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: echo $HOME returns /cygdrive/c/documents and setting/mrane

2004-05-06 Thread Reini Urban
Igor Pechtchanski schrieb:
On Thu, 6 May 2004, Reini Urban wrote:
Montana Rane schrieb:
for the administrative user, under which cygwin was installed, echo $HOME
returns /home/Administrator.
This is not your problem. Please describe the problem in the message
body and not only in the subject.

I need to set up cygwin so it does not preface the path with /cygdrive/c as
this breaks our existing scripts.
You scripts most likely don't brake because of the /cygdrive/c/ prefix,
they break because of the space in the pathname.
Solution:
Link it under your cygwin tree and fix the appropriate passwd entries.
untested script to get the idea:
mkdir /home
for h in /cygdrive/c/documents\ and\ setting/*; do
  ln -s /cygdrive/c/documents\ and\ setting/$h /home/
   ^^
Missing quotes here.  Should be "$h".

done
perl -pi.bak -e's|/cygdrive/c/documents and setting/|/home/|' \
 /etc/passwd

Or 'mount -s c:/Documents\ and\ Settings/ /home', if you don't mind
putting up with '/home/All Users', etc...
Sure, mount is the method which is used more often.
And it is faster and easier.
But it is not as transparent to the poor end-user as the symlinks.
He will not see /home when doing "ls /"
And with
HOME = C:/Dokumente\ und\ Einstellungen/Someuser/Eigene\ Dateien
it's much easier to administrate with symlinks also.
--
Reini Urban
http://xarch.tu-graz.ac.at/home/rurban/
--
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: GPL violation ?

2004-05-06 Thread Igor Pechtchanski
On Thu, 6 May 2004, Dave Korn wrote:

> > -Original Message-
> > From: Christopher Faylor
> > Sent: 06 May 2004 16:56
>
> > On Wed, May 05, 2004 at 07:08:59PM +0100, Vince Hoffman wrote:
> > >This comes up on here every now and then and if i didnt
> > think it was a
> > >possible issue i wouldnt have brought it up.  Mind you IANAL
>
> http://cygwin.com/acronyms/#YANALATEYHSMBSI :) lol!
>
>   However, the real point I wanted to mention is that
> http://cygwin.com/assign.txt seems almost certain to be invalid under UK
> law, and quite possibly under US law too.

 (evil laugh)

>   You can't have a contract without an exchange of something of value.
> Hence the line about "For good and valuable consideration, receipt of which
> I acknowledge".  But *what* consideration?  AFAICS, since nobody's ever been
> paid so much as a wooden nickel for their cygwin contributions, every claim
> to have been in receipt of such consideration is false, and so every single
> one of the supposed contracts is currently in breach and therefore none of
> the assignments are valid.

You do get a T-shirt for filing the assignment, which is intended to cover
all of your subsequent contributions.

>   I'm slightly alarmed to notice this and wonder what the RH legal team have
> to say about it?  I think the RH lawyers may need to spend some time sending
> people peppercorns through the post, along with a letter apologising for the
> late payment!
>
> [ Here are some references for anyone who wants to research this themselves
> a bit:
>
> http://www.google.com/search?q=peppercorn+rent+contract+validity
>
> http://www.google.com/search?q=sufficiency+of+exchange+contract+validity+peppercorn
>
> http://www.encyclopedia4u.com/c/consideration.html
> An illusory promise, or one which the promisor actually has no obligation to
> keep, does not count as consideration. The promise must be real and
> unconditional.
>
> http://law.wustl.edu/Organizations/SBA/Outlines/Contracts%20-%20OUTLINEBIG.htm
> b. Saying there is consideration is not consideration, neither is a seal.
> Nominal consideration which means nothing is not consideration.  ]

In addition to the physical payment of a T-shirt, the developers get the
goodwill of the community, although I don't think this could be counted as
"consideration" under the above definition, no matter how good and
valuable it is.
Igor
-- 
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/



Re: sshd, plink, bash and path problems

2004-05-06 Thread Tim Shadel
I'm not subscribed to the list.  Kindly CC: me in any threads that result from this 
email.  Thanks.
Larry Hall wrote:
Sorry, I don't use putty or plink (and actually since they aren't part 
ofthe Cygwin distribution, much discussion of them is off-topic for 
this list).
Understood.  I'll try rephrase my original question in terms of ssh.
But I expect your problem isn't putty/plink specific but rather 
operator-error. I can reproduce the same "problem" you're reporting 
with 'ssh' (which is part of the Cygwin distribution). I believe you want:

plink -batch -2 -i C:\path\to\my\key\mykey.PPK -l tims 159.87.127.66 'echo $PATH'
 

Hmm.  I tried to replicate this with 'ssh' as well, after you mentioned 
it.  Here's what I did:

1.  Use Putty to connect to the cygwin machine via SSH.
2.  Use 'ssh-keygen' to create a key on the cygwin machine, and add it 
to the authorized_keys file.
3.  Use 'ssh-agent' and 'ssh-add' to hold my key in memory so it can be 
used without a prompt
4.  Use 'ssh localhost ' to simulate the 'plink' setup I 
described earlier

What I found is this:
(a) ssh localhost echo $PATH
returned the correct cygwin path, but
(b) ssh localhost 'echo $PATH'
returned the full Windows path, not the cygwin path, and
(c) ssh localhost "echo $PATH"
returned the correct cygwin path as well.  But as I think about it, I 
actually can't change the quotes used around the command (since it's 
issued by a program over which I have no control).  What I CAN 
manipulate is the cygwin environment contacted by the ssh/plink program.

1. What's different between plink   and plink  (which displays a prompt) that causes the magical "login" process to occur.  Is this a plink thing? a bash thing? a cygwin-version-of-either thing?
 

Let me rephrase this a bit.  What happens differently between (a) and 
(b) above on the _server_ side?

2. Is there a file (.rc something-or-other perhaps?) that I can create that will make the "source /etc/profile" call once plink connects, so I can have the right path when  happens?
 

Can I change the cygwin environment (server side) to handle both (a) and 
(b) in the same way?  I'm familiar with Linux, but Cygwin (and 
especially its interaction with Windows: environment, permissions, etc) 
is brand new to me.

The quotation difference is step in the right direction (I know what to 
rule out), and I'm sure with a bit more info I'll be able solve my 
problem.  I appreciate your help.

Thanks,
Tim
--
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: GPL violation ?

2004-05-06 Thread Robb, Sam
> You do get a T-shirt for filing the assignment, which is 
> intended to cover all of your subsequent contributions.

Uh-oh, Igor... you let the cat out of the bag.  The goodwill
of the community is only worth so much, but a free T-shirt...
now, that's *swag*.

Now, excuse me, I've gotta go see about browbeating my boss
into getting me a free... er, I mean, allowing me to make
valuable contributions to the Cygwin community.

-Samrobb




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

2004-05-06 Thread Dave Korn
> -Original Message-
> From: Igor Pechtchanski [mailto:[EMAIL PROTECTED] 
> Sent: 06 May 2004 18:47

> You do get a T-shirt for filing the assignment, which is 
> intended to cover
> all of your subsequent contributions.

  Ah, that explains it.  Yep, a t-shirt is definitely a "material
consideration"   

> In addition to the physical payment of a T-shirt, the 
> developers get the
> goodwill of the community, although I don't think this could 
> be counted as
> "consideration" under the above definition, no matter how good and
> valuable it is.

  And indeed, since the goodwill of the community does not belong to RH, it
isn't within their purview to give to anyone, and so can't be part of the
exchange.

  But the T-shirt does the trick.  Hell, that's worth far more than a
peppercorn!

cheers, 
  DaveK
-- 
Can't think of a witty .sigline today


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: sshd, plink, bash and path problems

2004-05-06 Thread Igor Pechtchanski
On Thu, 6 May 2004, Tim Shadel wrote:

> I'm not subscribed to the list.  Kindly CC: me in any threads that
> result from this email.  Thanks.
>
> [snip]
> What I found is this:
>
> (a) ssh localhost echo $PATH
>
> returned the correct cygwin path, but
>
> (b) ssh localhost 'echo $PATH'
>
> returned the full Windows path, not the cygwin path, and
>
> (c) ssh localhost "echo $PATH"
>
> returned the correct cygwin path as well.  But as I think about it, I
> actually can't change the quotes used around the command (since it's
> issued by a program over which I have no control).  What I CAN
> manipulate is the cygwin environment contacted by the ssh/plink program.
>
> >1. What's different between plink   and plink 
> >(which displays a prompt) that causes the magical "login" process to
> >occur.  Is this a plink thing? a bash thing? a cygwin-version-of-either
> >thing?

It's a plink thing.  FWIW, ssh behaves similarly.

> Let me rephrase this a bit.  What happens differently between (a) and
> (b) above on the _server_ side?

Why not try it locally, like this:

echo echo $PATH
echo 'echo $PATH'
echo "echo $PATH"

and then

sh -xc 'PATH=/blah;echo $PATH'
sh -xc "PATH=/blah;echo $PATH"

> >2. Is there a file (.rc something-or-other perhaps?) that I can create
> >that will make the "source /etc/profile" call once plink connects, so I
> >can have the right path when  happens?

Well, you can tell ssh to invoke a login shell (e.g., "ssh [EMAIL PROTECTED] bash -l -c
'commands'").  I don't know about plink.

> Can I change the cygwin environment (server side) to handle both (a) and
> (b) in the same way?

No.  If you run the above experiments, you'll see why.

> I'm familiar with Linux, but Cygwin (and especially its interaction with
> Windows: environment, permissions, etc) is brand new to me.

This has nothing to do with Cygwin.  This is pure shell stuff.

> The quotation difference is step in the right direction (I know what to
> rule out), and I'm sure with a bit more info I'll be able solve my
> problem.  I appreciate your help.
>
> Thanks,
> Tim

HTH,
Igor
-- 
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/



Re: GPL violation ?

2004-05-06 Thread Yitzchak Scott-Thoennes
On Thu, May 06, 2004 at 01:50:39PM -0400, "Robb, Sam" <[EMAIL PROTECTED]> wrote:
> > You do get a T-shirt for filing the assignment, which is 
> > intended to cover all of your subsequent contributions.
> 
> Uh-oh, Igor... you let the cat out of the bag.  The goodwill
> of the community is only worth so much, but a free T-shirt...
> now, that's *swag*.

cgf let it out a little while ago, also.

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

2004-05-06 Thread Christopher Faylor
On Thu, May 06, 2004 at 01:50:39PM -0400, Robb, Sam wrote:
>>You do get a T-shirt for filing the assignment, which is intended to
>>cover all of your subsequent contributions.
>
>Uh-oh, Igor...  you let the cat out of the bag.  The goodwill of the
>community is only worth so much, but a free T-shirt...  now, that's
>*swag*.
>
>Now, excuse me, I've gotta go see about browbeating my boss into
>getting me a free...  er, I mean, allowing me to make valuable
>contributions to the Cygwin community.

Hey, I have an assignment now, and we both have the same boss, so...
Of course, I haven't seen my good and valuable consideration yet.

cgf

--
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: echo $HOME returns /cygdrive/c/documents and setting/mrane

2004-05-06 Thread Hannu E K Nevalainen
> From: Reini Urban
> Sent: Thursday, May 06, 2004 7:41 PM

> Igor Pechtchanski schrieb:

> > Or 'mount -s c:/Documents\ and\ Settings/ /home', if you don't mind
> > putting up with '/home/All Users', etc...
>
> Sure, mount is the method which is used more often.
> And it is faster and easier.
> But it is not as transparent to the poor end-user as the symlinks.
> He will not see /home when doing "ls /"

YET another POV (YAPOV!); To be "safe" (THIS IS UNTESTED! BEWARE ;-)
with one little difference...

 $ cd /home
 $ tar --create --remove-files - * | \
   tar --directory="$(cygpath -u -H)" --extract -
 $ mount "$(cygpath -w -H)" /home

i.e. what I've attempted to describe here is, line by line:
 1 - work from any existing "/home" (assumes "/home/" exists!)
 2 - move any files to the new position
 3 - reposition /home

NOTE for the diff: leave /home/ as an empty directory, thus it WILL show up
with "ls" and in name completions (will work for anything *in* /home too)
and whatever you try...


/Hannu E K Nevalainen, B.Sc. EE - 59+16.37'N, 17+12.60'E

** on a mailing list; please keep replies on that particular list **

-- printf("LocalTime: UTC+%02d\n",(DST)? 2:1); --
--END OF MESSAGE--


--
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: Autarkic fortune/strfile usage possible?

2004-05-06 Thread Hannu E K Nevalainen
> From: Christopher Faylor
> Sent: Thursday, May 06, 2004 3:52 AM

> On Wed, May 05, 2004 at 11:11:04PM +0200, Hannu E K Nevalainen wrote:
> >> From: Brian Kelly
> >> Sent: Wednesday, May 05, 2004 6:58 PM
> >
> I'd like to use on other machines as well - without Cygwin.  Any
> opinions?
> >>
> >>>cgf writes -> I have one: Find another mailing list if you want to
> >>>discuss ways of not using cygwin.  This is a mailing list devoted to
> >>>actually *using* cygwin.
> >>
> >>I've read a LOT of cgf's one liner's, but this one *actually* broke me
> >>up for a change! (I'm still chuckling!)
> >
> >Well, many times I find these kind of boring and rather counter
> >productive.
[1]


> >  This time I believe he even bites his own tail ;-p .
> >
> >The OP has no other way than actually use cygwin (i.e.  the
> >cygwin1.dll) - thus m[rs] OP should be welcome here - according to any
> >rules I can understand.  Nuff said.
>
> What an odd interpretation of my email.
>
> I did not say there was no other way to do this.  I pointed the "OP" at
> the mingw project web page.  If there is another way, that project would
> be the appropriate place to start looking.
>
> There's certainly no reason to do what you seem to be suggesting and lie
> to someone to keep them "within the cygwin fold" or to encourage people
> to talk about applications that have nothing to do with cygwin.
>
> If this is really the way you want to do things then I strongly
> encourage you to start your own mailing list.  You can even fill it with
> your own non-boring and productive missives, assuming you are capable of
> such things.
[5]

>
> cgf

 Allright, I'll bite - a bit. The following is just my personal
POV and nothing else, there is no need to take offence - the intention is
nothing in line with that; I'll tell you some hard facts from *my* POV.


 First; [1] might be fun for some people - I'm NOT one of those.
 I *DISPISE* people making fun of someone[3] who is _trying_ to be serious.
(There is a lot of similes(wd? comparable stories) to be told here)

 The style and tone here on the list has a lot of "WJM" at times[7]. Beeing
some kind of guru doesn't excuse beeing rude[2], for whatever the reason.
The sentence at [5] should be included here - you never pondered a tiny bit
on _why_ I wrote the above, did you?

 PGA to that style of writing. Or should I say PSBGA. (SB=Should Be)

To conclude it all:
 IMO you could achieve the same with more style, yet be as effective - or
might it even be MORE[6] effective - by adding some of those belowed[4]
"Please"-words. Thus not demolishing bridges behind you...


[2] apply any shade, nuance or gradation yourself - I'm too tired.
[3] his/hers wording, style of speach, mistake - you name it.
[4] by english speaking people (Not all langauges has a word like that)
[6] I would put a _very strong_ emphasise here, if I were speaking.
[7] I'm specially appalled when I see "WJM" in response to a first time
poster.

Now, EOT for the time beeing.

/Hannu E K Nevalainen, B.Sc. EE - 59+16.37'N, 17+12.60'E

** on a mailing list; please keep replies on that particular list **

-- printf("LocalTime: UTC+%02d\n",(DST)? 2:1); --
--END OF MESSAGE--


--
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: pthreads and sockets - Cannot register window class error

2004-05-06 Thread Hannu E K Nevalainen
> From: Corinna Vinschen
> Sent: Thursday, May 06, 2004 9:59 AM

> On May  6 01:47, Hannu E K Nevalainen wrote:
> > > >Just a wild guess, but gethostbyname() is probably not reentrant and
> > > >can't be called from threads like that.
> > >
> > > Unless HOST is a numeric IP address, gethostbyname should be properly
> > > reentrant.  The only time gethostbyname is not thread safe is 
> > > when it is resolving a numeric IP.
> > >
> > > cgf
> > 
> >  Is this specifically for cygwin, or common place?
> 
> Cygwin.  Common is what is described in SUSv3.
> 
> Corinna

 Thanks a lot. :-)
Beeing a somewhat knowledgeable newbie is a pain at times.
(What you do *not* know doesn't hurt you...)

/Hannu E K Nevalainen, B.Sc. EE - 59+16.37'N, 17+12.60'E

** on a mailing list; please keep replies on that particular list **

-- printf("LocalTime: UTC+%02d\n",(DST)? 2:1); --
--END OF MESSAGE--

--
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: how to build php in cygwin?

2004-05-06 Thread Andrew DeFaria
Joshua Daniel Franklin wrote:
On Thu, 6 May 2004 14:37:29 +0800, kalmen <[EMAIL PROTECTED]> wrote:
 

I am not familiar with compilation under cygwin , but i need the php for
testing most of the
LAMP application in cygwin , before deploy into the linux box , therefore i
need to try to
build the php and mod_php myself.
where can i find information for building the php ? Steps , requirements and
docs ?
   

You can find what the Cygwin package maintainer has here:
http://apache.dev.wapme.net/support/cygwin-packages/apache-modules/mod_php4/
Use the README file to find out what the build requirements are.
You also might be able to build the latest from source, I haven't
tried it and don't know if it works or not.
 

Well I went to that URL and downloaded 
http://apache.dev.wapme.net/support/cygwin-packages/apache-modules/mod_php4/apache-php-4.2.0-2.tar.bz2, 
bunzip2 and untarred it and ran the postinstall (after first commenting 
out the last line which is an rm which assumes that the preceeding line, 
the rebase, doesn't fail):

$ /etc/postinstall/apache-php.sh
[activating module `php4' in /etc/apache/httpd.conf]
cp libphp4.dll /usr/lib/apache/libphp4.dll
chmod 755 /usr/lib/apache/libphp4.dll
cp /etc/apache/httpd.conf /etc/apache/httpd.conf.bak
cp /etc/apache/httpd.conf.new /etc/apache/httpd.conf
rm /etc/apache/httpd.conf.new
usage: rebase -b BaseAddress [-Vdv] [-o Offset] [-T FileList | -] Files...
After this I cannot start Apache. Running a syntax check:
$ httpd -t
Syntax error on line 238 of /etc/apache/httpd.conf:
Cannot load /usr/lib/apache/libphp4.dll into server: dlopen: Win32 error 126
--
Question: Why do people always seem to find things in the last place 
that they look? Answer: Because most people stop looking after they find it!
--
Nebraska: At least the cows are sane.
begin:vcard
fn:Andrew DeFaria
n:DeFaria;Andrew
adr:;;2800 Madison Avenue C5;Fullerton;California;92831-2213;United States
email;internet:[EMAIL PROTECTED]
tel;work:714-541-9960x5428
tel;fax:714-577-0618
tel;home:714-577-0618
x-mozilla-html:TRUE
url:http://defaria.com
version:2.1
end:vcard


--
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: sshd, plink, bash and path problems

2004-05-06 Thread Tim Shadel
Igor Pechtchanski wrote:
Why not try it locally, like this:
echo echo $PATH
echo 'echo $PATH'
echo "echo $PATH"
and then
sh -xc 'PATH=/blah;echo $PATH'
sh -xc "PATH=/blah;echo $PATH"
Aah.  I forgot about the meanings of various quotes in bash.  That's an 
excellent example.

2. Is there a file (.rc something-or-other perhaps?) that I can create
that will make the "source /etc/profile" call once plink connects, so I
can have the right path when  happens?
 

Well, you can tell ssh to invoke a login shell (e.g., "ssh [EMAIL PROTECTED] bash 
-l -c
'commands'").  I don't know about plink.
plink also allows commands to be run.  That "bash -l -c 'commands'" 
works great.  I see if there's any way to change the code to use it, but 
that solves my problem.

Can I change the cygwin environment (server side) to handle both (a) and
(b) in the same way?
   

No.  If you run the above experiments, you'll see why.
Yup.  Thanks.
This has nothing to do with Cygwin.  This is pure shell stuff.
 

I guess I didn't know the original PATH was the windows one.  That makes 
more sense now.  So I'd see the same thing on a Linux box using pure 
ssh.  If the PATH were changed by /etc/profile, and I didn't use the 
"bash -l -c 'commands'" stuff to force a bash login, then I wouldn't see 
the new PATH there either.

I assume that the only way to 'source /etc/profile' requires a change to 
the content after "ssh [EMAIL PROTECTED]".  For example, '"ssh [EMAIL PROTECTED] bash -l -c 
'commands'" and "ssh [EMAIL PROTECTED] source /etc/profile; commands" both work for 
me.  I only wish I could "ssh [EMAIL PROTECTED] commands" and have it work.  I've got 
the info I need to figure out a different solution, though.  Thanks!

HTH,
	Igor
 

It helps immensely.  Thank you very much.
Tim
--
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: sshd, plink, bash and path problems

2004-05-06 Thread Igor Pechtchanski
On Thu, 6 May 2004, Tim Shadel wrote:

> Igor Pechtchanski wrote:
>
> [snip]
> >>>2. Is there a file (.rc something-or-other perhaps?) that I can create
> >>>that will make the "source /etc/profile" call once plink connects, so I
> >>>can have the right path when  happens?
> >
> >Well, you can tell ssh to invoke a login shell (e.g., "ssh [EMAIL PROTECTED] bash 
> >-l -c
> >'commands'").  I don't know about plink.
>
> plink also allows commands to be run.  That "bash -l -c 'commands'"
> works great.  I see if there's any way to change the code to use it, but
> that solves my problem.
>
> [snip]
> >This has nothing to do with Cygwin.  This is pure shell stuff.
>
> I guess I didn't know the original PATH was the windows one.  That makes
> more sense now.  So I'd see the same thing on a Linux box using pure
> ssh.  If the PATH were changed by /etc/profile, and I didn't use the
> "bash -l -c 'commands'" stuff to force a bash login, then I wouldn't see
> the new PATH there either.
>
> I assume that the only way to 'source /etc/profile' requires a change to
> the content after "ssh [EMAIL PROTECTED]".  For example, '"ssh [EMAIL PROTECTED] 
> bash -l -c
> 'commands'" and "ssh [EMAIL PROTECTED] source /etc/profile; commands" both work for
> me.  I only wish I could "ssh [EMAIL PROTECTED] commands" and have it work.  I've got
> the info I need to figure out a different solution, though.  Thanks!

If you set up your variables in ~/.bashrc instead of /etc/profile, that
should get executed on every bash invocation (assuming your remote shell
is "bash").
Igor
-- 
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/



Re: newline in patch command output

2004-05-06 Thread Baurjan Ismagulov
Hello, Corinna.

On Thu, May 06, 2004 at 10:08:53AM +0200, Corinna Vinschen wrote:
> I'm not sure if it "must", but it's the solution which costs as few grief
> as possible.  I tried various combinations but in the end, writing all
> output files in binary was the only one to stop patch to screw up files
> in one way or the other.
> 
> Since you can be sure that patch creates always LF files, I don't see
> a problem in using unix2dos on them afterwards.  It's reliable.

At first I didn't want it because I thought it would touch the unpatched
files; this seems not to be the case, so I think I can live with it,
although it takes some time to process the whole tree.

Thanks for your time!

With kind regards,
Baurjan.

--
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: CRON problems

2004-05-06 Thread Harig, Mark
Please run cron_diagnose.sh version 1.5.
Numerous bugs have been found and fixed.

This version can be found (as an attachment)
on the mailing list at:

http://sources.redhat.com/ml/cygwin/2004-03/msg00379.html

> -Original Message-
> From: Hank Statscewich
> Sent: Wednesday, May 05, 2004 8:12 PM
> To: cygwin
> Subject: CRON problems
> 
> 
> Hello,
> 
> I've been doing my best to read all the previous FAQ pages, 
> README documents, 
> and forum posts, but I am still having issues getting my cron 
> jobs to run the 
> way I want them to. If I explicitly start cron by calling 
> /usr/sbin/cron, then 
> my jobs run fine, but my application demands that the 
> computer be rebooted 
> daily and I will not be onsite to issue this comand. I would 
> like cron to start 
> up after reboot automatically and if I understand correctly, this is 
> accomplished by following the instructions in 
> cron_diagnose.sh which describe 
> how to shutdown the cron service, uninstall it, reinstall it 
> and start it. 
> Everything works just fine except for starting the service, 
> when I run: 
> cygrunsrv -S cron. I get this error message:
> cygrunsrv: Error starting a service: QueryServiceStatus:  
> Win32 error 1062:
> The service has not been started.
> 
> After reading through some more posts I have become 
> thoroughly confused, so I 
> have resorted to asking for help. 
> The output from cron_diagnose.sh is:
> cron_diagnose.sh 1.2
> 
> This script did not find any errors in your crontab setup.
> If you are still unable to get cron to work, then try
> shutting down the cron service, uninstalling it,
> reinstalling it, and restarting it.
> 
> The following commands will do that:
>   $ cygrunsrv --stop cron
>   $ cygrunsrv --remove cron
>   $ cygrunsrv --install cron -p /usr/sbin/cron -a -D
>   $ cygrunsrv --start cron
> 
> If none of this fixes the problem, then report your problem
> to [EMAIL PROTECTED]  Please include a copy of your crontab,
> ('crontab -l') and the output of 'cygcheck -srv > cygcheck.txt'.
> 
> PLEASE include the generated files 'cygcheck.txt' *as an attachment*,
> and NOT in the body of the mail message.
> 
> 
> My crontab looks like this:
> # DO NOT EDIT THIS FILE - edit the master and reinstall.
> # (/tmp/crontab.1244 installed on Wed May  5 23:57:19 2004)
> # (Cron version -- $Id: crontab.c,v 1.7 2003/04/15 15:13:41 
> corinna Exp $)
> 53 21 * * * shutdown -r -f now
> 58 * * * * tcsh /home/stats/Trans/programs/hourly_mover.tcsh
> 03 22 * * * tcsh /home/stats/Trans/programs/daily_mover.tcsh 
> 
> Thanks in advance for your help. I have attatched 
> cygcheck.txt as instructed.
> 
> Hank
> 
> -- 

> 
> 
> 
> 

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



RE: 1.5.9: cron hangs on 2003 server

2004-05-06 Thread Harig, Mark
Please run the cron_diagnose.sh
script to see if it can identify
any problems with your cron set
up and related files.  The latest
version of this script can be found
at:

http://sources.redhat.com/ml/cygwin/2004-03/msg00379.html

Please read the output of this script
carefully.  You may need to run it
several times.  It stops each time
it finds a problem.

> -Original Message-
> From: John Joganic
> Sent: Wednesday, May 05, 2004 4:51 PM
> To: cygwin
> Subject: 1.5.9: cron hangs on 2003 server
> 
> 
> Bash scripts that run normally from the command line hang 
> periodically 
> in cron.  Is there a specific diagnostic approach for this class of 
> problem?  The server has 3.3GB of 4GB free memory and the max 
> heap size 
> is 1GB per the User Guide.  The same script runs correctly on other 
> cygwin installations.  Only the 2003 Server does not run 
> consistently.  
> Any help, observations, or referrals would be greatly 
> appreciated, and I 
> can provide more information as needed.
> 
> I should also add that the script in question is not considered the 
> culprit.  Logging from within the script shows that it hangs in 
> arbitrary places.
> 
> The cygcheck.out file is attached with some names changed to 
> protect the 
> innocent.
> 
> John Joganic
> Prime Analytics
> 

--
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: permission problems (and more)

2004-05-06 Thread Larry Hall
At 01:08 AM 5/6/2004, you wrote:
>--- "Larry Hall (RFK Partners, Inc)" wrote:
>> From a comparison of your environment with mine,
>> I see that you don't give specific permissions to
>
>Just when I thought I would get the answer, it
>looks like you didn't pay your internet bill or
>something (your answer ends in the middle of the
>sentence). :)
>
>Please resend. Thank you for your help.
>


Sorry.  Some strange disconnect on my end truncated my message 
somehow.  Anyway, the gist of my original response was that 
I couldn't locate the problem with the given information.
Your permissions are different than mine but altering my 
installation to match closer with your permissions didn't 
keep me from starting cron.  So my best recommendation, if
your not inclined to jump into source and try to debug the
problem there, is to try wiping out your installation and
starting over.  It will be less satisfying in terms of 
finding the source of the problem but is, perhaps, the quicker
approach to a working cron.



--
Larry Hall  http://www.rfk.com
RFK Partners, Inc.  (508) 893-9779 - RFK Office
838 Washington Street   (508) 893-9889 - FAX
Holliston, MA 01746 


--
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: CRON problems

2004-05-06 Thread Hank Statscewich
Mark,

Thanks for the sugestion. So, I just ran cron diagnose.sh (ver. 1.5) and it 
tells me that my cron is installed just fine, but even a simple "hello world" 
doesnt work.  This is pretty wierd because if I do a ps -elf cron doesn't show 
up anywhere, here's the output:

 UID PIDPPID TTY STIME COMMAND
  SYSTEM 640   1   ?  21:55:14 /usr/bin/cygrunsrv
  SYSTEM 672 640   ?  21:55:15 /usr/sbin/sshd
   stats1136   1   0  21:55:41 /usr/bin/bash
   stats13801136   0  23:14:40 /usr/bin/ps


I went throught the suggested steps of remove, uninstall, reinstall and 
starting the service, but I get the same error message as before:

$ cygrunsrv -S cron > error.cron
cygrunsrv: Error starting a service: QueryServiceStatus:  Win32 error 1062:
The service has not been started.

So I removed /var/run/cron.pid and tried the suggested steps once more, but 
alas, same error.

Am I totally missing something here? In the 
file /usr/share/doc/Cygwin/cron.README, it says:
"On NT/W2K run cron under SYSTEM account
as service to use that feature."

Is there a way to run cron under the SYSTEM account, i.e. do I need to login as 
SYSTEM and repeat the steps described above? 

Thansk for your help.
Hank

-- 

Hank Statscewich  
Institute of Marine Science
University of Alaska, Fairbanks
PO Box 757220
Fairbanks, AK, 99775-7220
Phone: (907) 474-5720
Cell:  (907) 322-0309
fax:   (907) 474-7204
email: [EMAIL PROTECTED]
web: www.salmonproject.org



Quoting "Harig, Mark" <[EMAIL PROTECTED]>:

> Please run cron_diagnose.sh version 1.5.
> Numerous bugs have been found and fixed.
> 
> This version can be found (as an attachment)
> on the mailing list at:
> 
> http://sources.redhat.com/ml/cygwin/2004-03/msg00379.html
> 
> > -Original Message-
> > From: Hank Statscewich
> > Sent: Wednesday, May 05, 2004 8:12 PM
> > To: cygwin
> > Subject: CRON problems
> > 
> > 
> > Hello,
> > 
> > I've been doing my best to read all the previous FAQ pages, 
> > README documents, 
> > and forum posts, but I am still having issues getting my cron 
> > jobs to run the 
> > way I want them to. If I explicitly start cron by calling 
> > /usr/sbin/cron, then 
> > my jobs run fine, but my application demands that the 
> > computer be rebooted 
> > daily and I will not be onsite to issue this comand. I would 
> > like cron to start 
> > up after reboot automatically and if I understand correctly, this is 
> > accomplished by following the instructions in 
> > cron_diagnose.sh which describe 
> > how to shutdown the cron service, uninstall it, reinstall it 
> > and start it. 
> > Everything works just fine except for starting the service, 
> > when I run: 
> > cygrunsrv -S cron. I get this error message:
> > cygrunsrv: Error starting a service: QueryServiceStatus:  
> > Win32 error 1062:
> > The service has not been started.
> > 
> > After reading through some more posts I have become 
> > thoroughly confused, so I 
> > have resorted to asking for help. 
> > The output from cron_diagnose.sh is:
> > cron_diagnose.sh 1.2
> > 
> > This script did not find any errors in your crontab setup.
> > If you are still unable to get cron to work, then try
> > shutting down the cron service, uninstalling it,
> > reinstalling it, and restarting it.
> > 
> > The following commands will do that:
> >   $ cygrunsrv --stop cron
> >   $ cygrunsrv --remove cron
> >   $ cygrunsrv --install cron -p /usr/sbin/cron -a -D
> >   $ cygrunsrv --start cron
> > 
> > If none of this fixes the problem, then report your problem
> > to [EMAIL PROTECTED]  Please include a copy of your crontab,
> > ('crontab -l') and the output of 'cygcheck -srv > cygcheck.txt'.
> > 
> > PLEASE include the generated files 'cygcheck.txt' *as an attachment*,
> > and NOT in the body of the mail message.
> > 
> > 
> > My crontab looks like this:
> > # DO NOT EDIT THIS FILE - edit the master and reinstall.
> > # (/tmp/crontab.1244 installed on Wed May  5 23:57:19 2004)
> > # (Cron version -- $Id: crontab.c,v 1.7 2003/04/15 15:13:41 
> > corinna Exp $)
> > 53 21 * * * shutdown -r -f now
> > 58 * * * * tcsh /home/stats/Trans/programs/hourly_mover.tcsh
> > 03 22 * * * tcsh /home/stats/Trans/programs/daily_mover.tcsh 
> > 
> > Thanks in advance for your help. I have attatched 
> > cygcheck.txt as instructed.
> > 
> > Hank
> > 
> > -- 
> 
> > 
> > 
> > 
> > 
> 


--
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: CRON problems

2004-05-06 Thread Igor Pechtchanski
On Thu, 6 May 2004, Hank Statscewich wrote:

> Mark,
>
> Thanks for the sugestion. So, I just ran cron diagnose.sh (ver. 1.5) and
> it tells me that my cron is installed just fine, but even a simple
> "hello world"  doesnt work.  This is pretty wierd because if I do a ps
> -elf cron doesn't show up anywhere, here's the output:
>
>  UID PIDPPID TTY STIME COMMAND
>   SYSTEM 640   1   ?  21:55:14 /usr/bin/cygrunsrv
>   SYSTEM 672 640   ?  21:55:15 /usr/sbin/sshd
>stats1136   1   0  21:55:41 /usr/bin/bash
>stats13801136   0  23:14:40 /usr/bin/ps
>
> I went throught the suggested steps of remove, uninstall, reinstall and
> starting the service, but I get the same error message as before:
>
> $ cygrunsrv -S cron > error.cron
> cygrunsrv: Error starting a service: QueryServiceStatus:  Win32 error 1062:
> The service has not been started.
>
> So I removed /var/run/cron.pid and tried the suggested steps once more, but
> alas, same error.
>
> Am I totally missing something here? In the
> file /usr/share/doc/Cygwin/cron.README, it says:
> "On NT/W2K run cron under SYSTEM account as service to use that feature."
>
> Is there a way to run cron under the SYSTEM account, i.e. do I need to
> login as SYSTEM and repeat the steps described above?
>
> Thansk for your help.
> Hank

Hank,

Two places to look for the actual error are /var/log/cron.log and the
Windows event log.  Perhaps Mark can add this to the output of his
script...
Igor
-- 
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/



RE: CRON problems

2004-05-06 Thread Hank Statscewich
Igor,

Great suggestion. In /var/log/cron.log there were 17 lines of:
/usr/sbin/cron: can't open or create /var/run/cron.pid: Permission denied

So I just changed permission of the file to 777 and cron started up just fine. 
I rebooted and lo and behold cron is still running. I'm changing permission 
back to something more appropriate now. I am now a fully satisfied cygwin user. 
Thansk for such a great port of linux onto windows, Cygwin is the best of both 
worlds (at least for now :)

Hank


Quoting Igor Pechtchanski <[EMAIL PROTECTED]>:

> On Thu, 6 May 2004, Hank Statscewich wrote:
> 
> > Mark,
> >
> > Thanks for the sugestion. So, I just ran cron diagnose.sh (ver. 1.5) and
> > it tells me that my cron is installed just fine, but even a simple
> > "hello world"  doesnt work.  This is pretty wierd because if I do a ps
> > -elf cron doesn't show up anywhere, here's the output:
> >
> >  UID PIDPPID TTY STIME COMMAND
> >   SYSTEM 640   1   ?  21:55:14 /usr/bin/cygrunsrv
> >   SYSTEM 672 640   ?  21:55:15 /usr/sbin/sshd
> >stats1136   1   0  21:55:41 /usr/bin/bash
> >stats13801136   0  23:14:40 /usr/bin/ps
> >
> > I went throught the suggested steps of remove, uninstall, reinstall and
> > starting the service, but I get the same error message as before:
> >
> > $ cygrunsrv -S cron > error.cron
> > cygrunsrv: Error starting a service: QueryServiceStatus:  Win32 error
> 1062:
> > The service has not been started.
> >
> > So I removed /var/run/cron.pid and tried the suggested steps once more,
> but
> > alas, same error.
> >
> > Am I totally missing something here? In the
> > file /usr/share/doc/Cygwin/cron.README, it says:
> > "On NT/W2K run cron under SYSTEM account as service to use that feature."
> >
> > Is there a way to run cron under the SYSTEM account, i.e. do I need to
> > login as SYSTEM and repeat the steps described above?
> >
> > Thansk for your help.
> > Hank
> 
> Hank,
> 
> Two places to look for the actual error are /var/log/cron.log and the
> Windows event log.  Perhaps Mark can add this to the output of his
> script...
>   Igor
> -- 
>   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/



Re: ssh password

2004-05-06 Thread David Corbin
On Thursday 06 May 2004 09:30, Igor Pechtchanski wrote:
> On Thu, 6 May 2004, Igor Pechtchanski wrote:
> > On Thu, 6 May 2004, David Corbin wrote:
> > > I'm very confused.  When ssh to cygwin sshd, how does it try to match
> > > the password?
> >
> > It doesn't.  It delegates to Windows.
>
> Upon re-reading the above, I realized that you didn't clarify which
> Windows version you were asking about.  IIRC, on Win9x the passwords can
> be "crypt"ed into /etc/passwd directly.  On WinNT/2k/XP, the
> authentication is delegated to the OS.
>   Igor

Well, I'm dealing with a WIN2K Pro box that is part of a Domain.  However, my 
password will not work.

David

--
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: CRON problems

2004-05-06 Thread Brian Dessent
Hank Statscewich wrote:

> Great suggestion. In /var/log/cron.log there were 17 lines of:
> /usr/sbin/cron: can't open or create /var/run/cron.pid: Permission denied
> 
> So I just changed permission of the file to 777 and cron started up just fine.
> I rebooted and lo and behold cron is still running. I'm changing permission
> back to something more appropriate now. I am now a fully satisfied cygwin user.
> Thansk for such a great port of linux onto windows, Cygwin is the best of both
> worlds (at least for now :)

Hmm, seems to me like checking ownership and permissions of cron.pid
would be something the cron_diagnose.sh should do.  What happened was
that you ran it initially as your normal user account, and the pid file
was created.  Then when you tried to start it as a service, it was
running as the SYSTEM account which didn't have permissions to overwrite
the file.  The solution would be to either just remove it and let cron
recreate it, or "chown SYSTEM:SYSTEM /var/run/cron.pid".  Then you could
give it more restrictive permissions than 777, perhaps 640 or 600.

Brian

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: ssh password

2004-05-06 Thread David Corbin
On Thursday 06 May 2004 20:49, David Corbin wrote:
> On Thursday 06 May 2004 09:30, Igor Pechtchanski wrote:
> > On Thu, 6 May 2004, Igor Pechtchanski wrote:
> > > On Thu, 6 May 2004, David Corbin wrote:
> > > > I'm very confused.  When ssh to cygwin sshd, how does it try to match
> > > > the password?
> > >
> > > It doesn't.  It delegates to Windows.
> >
> > Upon re-reading the above, I realized that you didn't clarify which
> > Windows version you were asking about.  IIRC, on Win9x the passwords can
> > be "crypt"ed into /etc/passwd directly.  On WinNT/2k/XP, the
> > authentication is delegated to the OS.
> > Igor
>
> Well, I'm dealing with a WIN2K Pro box that is part of a Domain.  However,
> my password will not work.
>

Please Ignore this last message.


--
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: problems with cygwin

2004-05-06 Thread Christopher Faylor
On Thu, May 06, 2004 at 07:53:45AM -0400, Reid Thompson wrote:
>Try removing the -multiwindow parameter to XWin

Please move this to the cygwin-xfree mailing list.

>- 
>> XOpenDisplay () returned and successfully opened the display.
>> 
>> wmaker fatal error: it seems that there is already a window 
>> manager running
>> 
>> waiting for X server to shut down winClipboardProc - Call to select ()
>> failed: -
>> 1.  Bailing.
>> winClipboardProc - XDestroyWindow succeeded.
>> 
>> winClipboardIOErrorHandler!

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