Re: Bash -c without exiting

2007-09-26 Thread patrickinminneapolis
I modified Cygwin.bat to the following, bash --login -i -c 'cd /cygdrive/c exec bash' and it still exits. -- View this message in context: http://www.nabble.com/Bash--c-without-exiting-tf4518164.html#a12901775 Sent from the Cygwin Users mailing list archive at Nabble.com. -- Unsubscribe

Bash -c without exiting

2007-09-25 Thread patrickinminneapolis
I'd like to drop to the current directory like this, bash --login -i -c 'Drop to current directory' without exiting cygwin. Thanks. -- View this message in context: http://www.nabble.com/Bash--c-without-exiting-tf4518164.html#a12888624 Sent from the Cygwin Users mailing list archive at

gcc header file help should be a minor problem

2007-09-20 Thread patrickinminneapolis
I'm trying to get the CSharp Swig Callback example to work with Cygwin. I'm just stuck on an include header problem. This works fine : gcc -c -fpic example.c example_wrap.c But I want to include files in a different directory, so just to test, I moved example_wrap.c to c:\ , i tested gcc

Re: one more thing

2007-09-20 Thread patrickinminneapolis
'-I' is for finding headers named in an #include directive. But 'example_wrap.c' is a source file, not a header, so do this: gcc -c example.c /cygdrive/c/example_wrap.c example_wrap.c includes cstudio, but gcc can't find it, can you tell me how to tell gcc to look in c:\Program Files\Microsoft

Re: one more thing

2007-09-20 Thread patrickinminneapolis
If I did that, I'd be doing you a disservice. You don't want to mix and match stuff from VC++ and gcc/g++. That's just asking for trouble. I'd recommend just changing the reference to stdio.h and using gcc's. If you simply *must* have 'cstdio', you can install the Boost package (see

The Solution to Ctrl-C problems

2007-08-01 Thread patrickinminneapolis
This isn't exactly a cygwin fix, but this is what worked for my problem. I needed a consoleapp launcher to start up when the machine starts. Then I use ssh to give consolelauncher arguments of what console app to launch Then I use ssh to launch another program I wrote in C# which uses

Re: cygrunsrv startup issues

2007-07-13 Thread patrickinminneapolis
did you do a ssh-host-config? did you try net start sshd instead? these might help a bit -- View this message in context: http://www.nabble.com/cygrunsrv-startup-issues-tf4071328.html#a11574214 Sent from the Cygwin Users mailing list archive at Nabble.com. -- Unsubscribe info:

kill -2 is too powerful

2007-07-13 Thread patrickinminneapolis
I have a VB.net Console App which catches Ctrl-C and then gives the user an option e(x)it \ (r)un. I learned that I needed to set CYGWIN = notty and so now the console app catches Ctrl-C properly within a Cygwin console. I need to run the program as a service however, net start IB, and then I

Re: kill -2 is too powerful

2007-07-13 Thread patrickinminneapolis
On Thu, Jul 12, 2007 at 11:58:15PM -0700, patrickinminneapolis wrote: I have a VB.net Console App which catches Ctrl-C and then gives the user an option e(x)it \ (r)un. I learned that I needed to set CYGWIN = notty and so now the console app catches Ctrl-C properly within a Cygwin console. I

command line gmailer

2007-07-06 Thread patrickinminneapolis
I did look in the archive and the suggestion to use exim, a smtp server, seems like overkill. Does anyone have any advice for way to send emails to gmail from the command line? I tried http://robertmaldon.blogspot.com/2006/10/sending-email-through-google-smtp-from.html , but my Authen-SASL failed

Re: command line gmailer

2007-07-06 Thread patrickinminneapolis
It doesn't compile out-of-the-box, but it's not to difficult to build; it doesn't always work (and Cygwin is expressly not supported) but it does have TLS support so it should work with gmail... I don't have a gmail account to test but I could test it later with other servers (exim and sendmail)