Re: windows clipboard, getclip, putclip, clip, etc

2014-10-19 Thread ping song
experts:
I tested this whole day and couldn't find a solution...

so I wanted to archive same goal as described in this post:

http://stackoverflow.com/questions/1152362/getting-items-on-the-local-clipboard-from-a-remote-ssh-session

I'm on windows (cygwin) machine A and ssh into linux machine B.
I hope to send some text from B directly to windows clipboard of A,
and so I can paste them into notepad or any other windows APPs,
without bothering a temp file...

what my test shows that what was sent over to /dev/clipboard or clip
via the revert ssh session (from B to A) was just belonging to that
ssh user specifically, meaning my current windows clipboard could not
be changed at all...here is the code to demonstrate the issue:

from cygwin terminal in windows machine A:
ssh to B with user user1;
//and sent some text to A:
ping@ubuntu1404:~/temp-transfer$ cat test-ls.md | ssh ping@machineA
cat  temp.txt; cat temp.txt  /dev/clipboard


now in A I open notepad, press Ctrl-V, I don't see content of
test-ls.md, but just see those previous texts I copied manually in A.

now if I ssh into myself from A:
ssh user@127.0.0.1
cat /dev/clipboard
then I can see the file content of test-ls.md printed in the terminal.
but still, I can't make them in notepad.

so it looks like, the clipboard is per windows user. but the thing is
I'm currently logging in windows with user1 too.

guess there are something I don't understand here , but how do I
archive what I wanted? I hope to send the text to a clipboard that I
can just put in notepad with a ctrl-v 

thanks in advance. still researching...

regards
ping

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



when will the cygwin site come up?

2013-03-19 Thread ping
it is still down now... and I just deleted the whole folder and need a 
re-install...



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



when will the cygwin site come up?

2013-03-19 Thread ping

it is still down now...


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



cygwin:the /usr/share directory

2013-01-30 Thread ping

hi experts:
I'm recently running out of disk and , it looks simply the /usr/share 
occupies around 5G .


[ping@ping-new-laptop usr]$ du -sh ./share/
4.4G./share/


I'm thinking to remove this directory to release some space. but not 
sure if this will affect the whole cygwin from running properly.
or, if I can remove part of the contents, what is the minimum packages 
that I need to keep there?




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



Re: Emacs crashing on C-x C-g

2012-10-25 Thread ping

On 10/25/2012 12:54 PM, Eli Zaretskii wrote:

Date: Thu, 25 Oct 2012 09:01:40 -0600
From: Eric Blake ebl...@redhat.com

On 10/25/2012 08:55 AM, Ryan Johnson wrote:

   http://debbugs.gnu.org/cgi/bugreport.cgi?bug=12697

I imagine it will be fixed before the release of Emacs 24.3.

Agree the initial part is emacs. But I suspect the confused bash
business is not. ^G should either send SIGINT or not, this core dump
thing is not cool.

Do you know whether this is Cygwin-specific?  Have you checked to see
what happens on Linux?

Oops, you're right: I see the exact same behavior on linux. However,
that's via ssh in a mintty window, so it could still be mintty. Can
somebody running Linux directly verify, perhaps?

Linux (at least my setup on Fedora 17) has the same problem - when using
emacs as the editor under 'git commit', an ill-timed ctrl-G on my part
unceremoniously kills emacs as a result of sending the SIGINT to the
entire process group.  I hate the behavior, but it is definitely not
cygwin-specific.

Why doesn't git block SIGINT when it invokes $EDITOR?  I think that's
the prudent thing to do.

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


the simplest solution: change to vim.
I don't know of any extra benefit using emacs instead of vim...

--
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: problem using recursive grep (-r option)

2012-08-07 Thread ping

On 8/7/2012 1:55 PM, Sean Daley wrote:

On Tue, Aug 7, 2012 at 11:08 AM, AngusC  wrote:


If I use the command:

grep -nH -r my pattern *.*

I get results back as expected

But if the file pattern is like this:

grep -nH -r my pattern *.log

I get no results back (Even though I have a ton of files with this pattern
with .log file extension).

Am I doing something wrong?
--

The first one works because *.* will match everything your current directory,
including sub-directories and it will recurse through each of them.  The
second example will first match anything in your current directory with a .log
extension and try to grep it (if it's a file) or recurse through it if
it's a directory.

What I believe you want to do (at least works on Linux) is
grep -nH -r my pattern --include *.log .

Sean

--
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 think this is the best answer ever so far.

also it looks for me:
 grep -nHr pattern *.*
   equals:
 grep -nHr pattern .

I use the latter alot to quickly locate a file per content.


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



cygwin: starting cygwin gvim from windows program (e.g. outlook) report cygwin1.dll is missing

2012-08-04 Thread ping

folks/experts:
I just successfully recompiled vim with GUI support under cygwin.
so now gvim is OK if I launch it from cygwin terminal (yes I have X running)
then I'm trying to make it the default text editor for my window7 
application

(like outlook, to open attachment), but then I got a dialog saying:
the program can't start because cygwin1.dll is missing from your computer.
Try installing the program to fix this problem.
the same thing happened when I try launch gvim from a dos terminal.
is there any known solution for this?
I did some research but can't solve it.
thanks in advance.

regards
ping

--
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: install package from cpan report address space needed by ... is already occupied

2012-07-30 Thread ping



On 07/27/2012 06:20 AM, Aaron Schneider wrote:

On 25/07/2012 3:13, ping wrote:

I'm trying to install App::Asciio in cygwin, but got following error,
please advice, or what info are still needed to proceed, thanks!

CPAN: Module::Build loaded ok (v0.3613)

   CPAN.pm: Going to build N/NK/NKH/App-Asciio-1.02.71.tar.gz

   0 [main] perl 6432 child_info_fork::abort: address space needed
by 'Base64.dll' (0xC6) is already occupied
   1 [main] perl 3844 child_info_fork::abort: unable to remap
Util.dll to same address as parent (009A) - try running rebaseall
   0 [main] perl 10708 child_info_fork::abort: address space needed
by 'Base64.dll' (0xC6) is already occupied
   0 [main] perl 11276 child_info_fork::abort: unable to remap
Util.dll to same address as parent (009A) - try running rebaseall
   0 [main] perl 1976 child_info_fork::abort: address space needed
by 'Base64.dll' (0xC6) is already occupied



Could you rename your c:\cygwin folder to c:\cygwin_bak and try a fresh
install and see if happens the same? Are you installing cpan modules
from binaries or compiling them with 'perl Build.PL'?

- There should be no need to rebase any dll, try installing all cpan
modules from source code (the tar.gz). Install only perl from cygwin's
setup.exe. If there are any compilation issues with any cpan module you
will see it right away. All modules should compile and pass all t tests.
You will need to install dependencies like gcc, gcc4, libbz2-devel,
pkg-config and probably more from setup.exe.
- Remember to keep closed all terminals and cygwin sessions when running
setup.exe
- I wasn't able to compile a lot of cpan modules under cygwin, for
example P/PD/PDENIS/Test-Strict-0.14.tar.gz with either perl 5.10 or
perl 5.14. This is not the case for Ubuntu, for example, at least trying
to install all cpan dependencies for App-Asciio-1.02.71.

--


I was doing that but interupted it due to the long installation time 
(don't know why, I thought it just re-install a few dependencies but it 
seems to me like a whole cygwin re-installation, anyway...)

I'll try re-install cpan in cygwin and see.
I'm currently OK with the workaround of successfully installation the 
same cpan app from another perl project.

http://code.google.com/p/camelbox/

thanks.
regards
ping

--
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: install package from cpan report address space needed by ... is already occupied

2012-07-26 Thread ping
actually I tried...couldn't figure out how. the instruction from 
rebaseall is quite confusing...



[ping@ping-new-laptop ~]$ rebaseall
rebaseall: only ash or dash processes are allowed during rebasing
Exit all Cygwin processes and stop all Cygwin services.
Execute ash (or dash) from Start/Run... or a cmd or command window.
Execute '/bin/rebaseall' from ash (or dash).
[ping@ping-new-laptop ~]$
[ping@ping-new-laptop ~]$
[ping@ping-new-laptop ~]$ ash
[\e[32m\u@\h \e[33m\W\e[0m]$ /bin/rebaseall
ash: 1: /bin/rebseall: not found
[\e[32m\u@\h \e[33m\W\e[0m]$ exit
[ping@ping-new-laptop ~]$ dash.exe
[\e[32m\u@\h \e[33m\W\e[0m]$ reba
[\e[32m\u@\h \e[33m\W\e[0m]$ rebaseall.exe
dash: 2: rebaseall.exe: not found
[\e[32m\u@\h \e[33m\W\e[0m]$ /bin/rebaseall.exe
dash: 3: /bin/rebaseall.exe: not found
[\e[32m\u@\h \e[33m\W\e[0m]$ rebaseall
rebaseall: only ash or dash processes are allowed during rebasing
Exit all Cygwin processes and stop all Cygwin services.
Execute ash (or dash) from Start/Run... or a cmd or command window.
Execute '/bin/rebaseall' from ash (or dash).

c:\
c:\cd cygwin

c:\cygwincd bin

c:\cygwin\bin./ash
'.' is not recognized as an internal or external command,
operable program or batch file.

c:\cygwin\binash
$ /bin/rebaseall
rebaseall: only ash or dash processes are allowed during rebasing
Exit all Cygwin processes and stop all Cygwin services.
Execute ash (or dash) from Start/Run... or a cmd or command window.
Execute '/bin/rebaseall' from ash (or dash).


On 07/26/2012 05:46 AM, Adam Dinwoodie wrote:

ping wrote:

I'm trying to install App::Asciio in cygwin, but got following error,-
please advice, or what info are still needed to proceed, thanks!

CPAN: Module::Build loaded ok (v0.3613)

   CPAN.pm: Going to build N/NK/NKH/App-Asciio-1.02.71.tar.gz

   0 [main] perl 6432 child_info_fork::abort: address space needed-
by 'Base64.dll' (0xC6) is already occupied
   1 [main] perl 3844 child_info_fork::abort: unable to remap-
Util.dll to same address as parent (009A) - try running rebaseall
   0 [main] perl 10708 child_info_fork::abort: address space needed-
by 'Base64.dll' (0xC6) is already occupied
   0 [main] perl 11276 child_info_fork::abort: unable to remap-
Util.dll to same address as parent (009A) - try running rebaseall
   0 [main] perl 1976 child_info_fork::abort: address space needed-
by 'Base64.dll' (0xC6) is already occupied


Did you try following the instructions in those error messages?

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



install package from cpan report address space needed by ... is already occupied

2012-07-24 Thread ping
I'm trying to install App::Asciio in cygwin, but got following error, 
please advice, or what info are still needed to proceed, thanks!


CPAN: Module::Build loaded ok (v0.3613)

  CPAN.pm: Going to build N/NK/NKH/App-Asciio-1.02.71.tar.gz

  0 [main] perl 6432 child_info_fork::abort: address space needed 
by 'Base64.dll' (0xC6) is already occupied
  1 [main] perl 3844 child_info_fork::abort: unable to remap 
Util.dll to same address as parent (009A) - try running rebaseall
  0 [main] perl 10708 child_info_fork::abort: address space needed 
by 'Base64.dll' (0xC6) is already occupied
  0 [main] perl 11276 child_info_fork::abort: unable to remap 
Util.dll to same address as parent (009A) - try running rebaseall
  0 [main] perl 1976 child_info_fork::abort: address space needed 
by 'Base64.dll' (0xC6) is already occupied



thanks!

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



cygwin/X: can't start X server...

2012-07-13 Thread ping

guys:

please let me know if this is the off-topic for cygwin list.

originally right after I installed cygwin, I had impression (I could 
remember wrong)

I ever be able to start x server and run the rxvt.

today I just couldn't get it work.

I tried from windows start-all program-...
nothing happen.

and from CLI:

[ping@ping-new-laptop ~]$ startxwin.exe

startxwin: unable to run server X: No such file or directory
Use the -- option, or make sure that /usr/bin is in your path and
that X is a program or a link to the right type of server
for your display.  Possible server names include:

XWinX Server for the Cygwin environment on Microsoft Windows

startxwin: giving up
startxwin: unable to connect to X server: Connection refused
startxwin: server error


[ping@ping-new-laptop ~]$ cygcheck XWin
cygcheck: could not find 'XWin

the only thing I did could be that I just installed cygwinport, but I don't
think that will cause any issues to my cygwin, cygwin/X apps...

please advice how to troubleshoot this kind of issue.

thanks.

regards
ping


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



Re: cygwin/X: can't start X server...

2012-07-13 Thread ping



On 07/13/2012 12:16 PM, ping wrote:

guys:

please let me know if this is the off-topic for cygwin list.

originally right after I installed cygwin, I had impression (I could
remember wrong)
I ever be able to start x server and run the rxvt.

today I just couldn't get it work.

I tried from windows start-all program-...
nothing happen.

and from CLI:

[ping@ping-new-laptop ~]$ startxwin.exe

startxwin: unable to run server X: No such file or directory
Use the -- option, or make sure that /usr/bin is in your path and
that X is a program or a link to the right type of server
for your display.  Possible server names include:

 XWinX Server for the Cygwin environment on Microsoft Windows

startxwin: giving up
startxwin: unable to connect to X server: Connection refused
startxwin: server error


[ping@ping-new-laptop ~]$ cygcheck XWin
cygcheck: could not find 'XWin

the only thing I did could be that I just installed cygwinport, but I don't
think that will cause any issues to my cygwin, cygwin/X apps...

please advice how to troubleshoot this kind of issue.

thanks.

regards
ping



problem got resolved by re-install X11 module.
I now doubt cygwin-port installation caused the issue here.


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



Re: best way to re-install and keep cygwin configuration

2012-07-13 Thread ping


On 07/12/2012 09:09 PM, Andrey Repin wrote:

Greetings, LMH!


Totally unnecessary. If you've maintained your installation for quite some
time, updating regularly, then setup cache contains lots of obsolete packages.
Would be much, much faster to just burn it and download new setup.exe when you
need it.



this sound to me that I made a mistake.
I typically when got a new pc, or a new installation of OS, just 
download setup.exe

and install ALL a/v package, in order to ease the future usage.
but now it typically takes 1 or 2 days to finish, considering also 
install cygwin port packages...

I'll install based on a install-on-need base...next time.

b.t.w., comparing with a real linux, like ubuntu, the current cygwin 
package maintenance tool
seems still in the raw stage , comparing with apt-get machanism ... not 
to complain..


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



cygwin/X: can't start X server...

2012-07-13 Thread ping

guys:

please let me know if this is the off-topic for cygwin list.

originally right after I installed cygwin, I had impression (I could 
remember wrong)

I ever be able to start x server and run the rxvt.

today I just couldn't get it work.

I tried from windows start-all program-...
nothing happen.

and from CLI:

[ping@ping-new-laptop ~]$ startxwin.exe

startxwin: unable to run server X: No such file or directory
Use the -- option, or make sure that /usr/bin is in your path and
that X is a program or a link to the right type of server
for your display.  Possible server names include:

XWinX Server for the Cygwin environment on Microsoft Windows

startxwin: giving up
startxwin: unable to connect to X server: Connection refused
startxwin: server error

the only thing I did could be that I just installed cygwinport, but I don't
think that will cause any issues to my cygwin, cygwin/X apps...

please advice how to troubleshoot this kind of issue.

thanks.

regards
ping


--
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: how to mount linux FS from cygwin

2012-07-11 Thread ping

On 6/29/2012 9:32 AM, ping wrote:

thanks Thorsten.
problem solved here by dokan sshfs tool.
I may try samba/nfs solution later when desired, but apparently sshfs
looks easier way as it does not require additional config/soft from the
server...

regards
ping

On 06/29/2012 04:16 AM, Thorsten Kampe wrote:

* ping (Thu, 28 Jun 2012 14:01:34 -0400)

I just installed full cygwin and I now need to access a folder from
inside cygwin machine(win7). I did some google search but no good match.
are there any known best practice for that (e.g through SSH)?
the cygwin ssh client works fine but I just dont wanna bother to copy
DIRs ..


Your options are SMB and NFS depending on which is setup on the server.
You mount both with Windows tools (not Cygwin). Or you use a SCP/SFTP
client like WinSCP or FileZilla.

Thorsten


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





to continue with previous thread...
so I'm now using dokan sshfs GUI tool to mount remote linux server FS 
via ssh, everything (mostly) works, except:


1) it's a GUI based tool, I don't see any command line options
2) somehow I can't save the previous data, after pressing save button, 
it pop up a warning dialog below.


please share some thought if anyone experienced the same.

See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

** Exception Text **
System.ArgumentException: Item has already been added. Key in 
dictionary: 'tmp'  Key being added: 'tmp'
   at System.Collections.Hashtable.Insert(Object key, Object nvalue, 
Boolean add)

   at System.Collections.Hashtable.Add(Object key, Object value)
   at System.Collections.Specialized.StringDictionary.Add(String key, 
String value)
   at 
System.CodeDom.Compiler.Executor.ExecWaitWithCaptureUnimpersonated(SafeUserTokenHandle 
userToken, String cmd, String currentDir, TempFileCollection tempFiles, 
String outputName, String errorName, String trueCmdLine)
   at 
System.CodeDom.Compiler.Executor.ExecWaitWithCapture(SafeUserTokenHandle 
userToken, String cmd, String currentDir, TempFileCollection tempFiles, 
String outputName, String errorName, String trueCmdLine)
   at Microsoft.CSharp.CSharpCodeGenerator.Compile(CompilerParameters 
options, String compilerDirectory, String compilerExe, String arguments, 
String outputFile, Int32 nativeReturnValue, String trueArgs)
   at 
Microsoft.CSharp.CSharpCodeGenerator.FromFileBatch(CompilerParameters 
options, String[] fileNames)
   at 
Microsoft.CSharp.CSharpCodeGenerator.FromSourceBatch(CompilerParameters 
options, String[] sources)
   at 
Microsoft.CSharp.CSharpCodeGenerator.System.CodeDom.Compiler.ICodeCompiler.CompileAssemblyFromSourceBatch(CompilerParameters 
options, String[] sources)
   at 
System.CodeDom.Compiler.CodeDomProvider.CompileAssemblyFromSource(CompilerParameters 
options, String[] sources)
   at System.Xml.Serialization.Compiler.Compile(Assembly parent, String 
ns, XmlSerializerCompilerParameters xmlParameters, Evidence evidence)
   at 
System.Xml.Serialization.TempAssembly.GenerateAssembly(XmlMapping[] 
xmlMappings, Type[] types, String defaultNamespace, Evidence evidence, 
XmlSerializerCompilerParameters parameters, Assembly assembly, Hashtable 
assemblies)
   at System.Xml.Serialization.TempAssembly..ctor(XmlMapping[] 
xmlMappings, Type[] types, String defaultNamespace, String location, 
Evidence evidence)
   at 
System.Xml.Serialization.XmlSerializer.GenerateTempAssembly(XmlMapping 
xmlMapping, Type type, String defaultNamespace)
   at System.Xml.Serialization.XmlSerializer..ctor(Type type, String 
defaultNamespace)

   at System.Xml.Serialization.XmlSerializer..ctor(Type type)
   at DokanSSHFS.Settings.Save()
   at DokanSSHFS.SettingForm.save_Click(Object sender, EventArgs e)
   at System.Windows.Forms.Control.OnClick(EventArgs e)
   at System.Windows.Forms.Button.OnClick(EventArgs e)
   at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
   at System.Windows.Forms.Control.WmMouseUp(Message m, MouseButtons 
button, Int32 clicks)

   at System.Windows.Forms.Control.WndProc(Message m)
   at System.Windows.Forms.ButtonBase.WndProc(Message m)
   at System.Windows.Forms.Button.WndProc(Message m)
   at 
System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message m)

   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 
msg, IntPtr wparam, IntPtr lparam)



** Loaded Assemblies **
mscorlib
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.5456 (Win7SP1GDR.050727-5400)
CodeBase: 
file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll


DokanSSHFS
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0

cygwin: tcl/exepect script break (works in linux)

2012-07-02 Thread ping
in an attempt to launch my tcl script from linux into cygwin, I got 
following errors, interestingly(or annoyingly) it looks break in 
different point between executions.


per google this looks exactly the same:
http://pastebin.com/LQEriyTH

but I found no resolution :(


[ping@ping-new-laptop bin]$ ./mylogin.tcl
  1 [main] expect 8776 child_info_fork::abort: 
C:\cygwin\bin\libtcl8.5.dll: Loaded to different address: 
parent(0x41) != child(0x77)

couldn't fork child process: resource temporarily unavailable
while executing
exec basename $argv0
invoked from within
set scriptbasename [exec basename $argv0]
(file ./mylogin.tcl line 62)


[ping@ping-new-laptop bin]$ ./mylogin.tcl
  0 [main] expect 7420 child_info_fork::abort: 
C:\cygwin\bin\libtcl8.5.dll: Loaded to different address: 
parent(0x41) != child(0x59)

couldn't fork child process: resource temporarily unavailable
while executing
exec date
(foreach body line 3)
invoked from within
foreach file $files {
if {[file readable $file]} {
puts \[[exec date]: sourcing file $file\]
source $file
} else {
puts \[[exec date]: f...
(file ./mylogin.tcl line 1568)




--
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/cygwin: python support

2012-06-30 Thread ping

On 6/30/2012 6:04 PM, Tony Mechelynck wrote:

On 30/06/12 23:32, ping wrote:

Thanks
I just got it recompiled under cygwin with python support
At least Voom that is based on python runs smoothly now
I can post detailed steps if anyone is interested

[...]

Maybe you should create a tip at http://vim.wikia.com/ ?


Best regards,
Tony.


sure I'll seriously do it later..
but currently, I'm still testing it -- trying to move all my linux-based 
works (whole .vim including all plugins!) on this new build.


so Voom (python based) works perfect:

[1] bash.exe - 1 [2] tech-tips2.txt_VOOM2 
   close

2  161   . . |c-s mod 4570 === arp
2  162   . . |smc  4571
2  163   . . |swap 4572  ##arp
2+ 164   . . |coredump 4573 in.arpd
2+ 166   . . |NFS   /1 4574 /etc/inet/hosts -  /etc/hosts
2+ 181   . . |autoFS   4575
2+ 188   . . |RAID  v 4576 /etc/ethers
2+ 192   . . |config v 4577
2+ 196   . . |name ser 4578 arp -a
-  198   . |book3  4579 -s
2  199   . . |etherne 4580 -d
-  200 = . . |arp  4581
3  201   . . . |##arp  4582
3  202   . . . |##rarp 4583  ##rarp



and ... I do find some minor (maybe not that minor) issue in here, e.g:

1)sometime (not everytime, roughly half chances) follow warning/errors 
prompt, press enter it will go away and laugh vim.


[ping@ping-new-laptop ~]$ vim
  1 [main] vim 6740 child_info_fork::abort: address space needed by 
'fcntl.dll' (0x32) is already occupied


Cannot fork


Press ENTER or type command to continue


2) if 1) happened, then ConqueTerm plugin crash vim; otherwise it works 
fine.


#when it crashes:

  ~
  ~
  ~
:ConqueTerm bash.exe

Error detected while processing function 231..conque_term#set_mappings:
line  150:
E31: No such mapping
Vim: Caught deadly signal HUPo continue

Vim: Finished.
Hangup


#when it works (inside vim buffer):

[ping@ping-new-laptop ~]$
[ping@ping-new-laptop ~]$ ls
c  doc  Dropbox  fuf  living files  n  vim  win-home  win-programfile
[ping@ping-new-laptop ~]$
~
~
~
-- INSERT --  20,27 
All



overall I feel there is still some hopes that it can be a production tool...

regards
ping

--
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: how to mount linux FS from cygwin

2012-06-29 Thread ping

thanks Thorsten.
problem solved here by dokan sshfs tool.
I may try samba/nfs solution later when desired, but apparently sshfs 
looks easier way as it does not require additional config/soft from the 
server...


regards
ping

On 06/29/2012 04:16 AM, Thorsten Kampe wrote:

* ping (Thu, 28 Jun 2012 14:01:34 -0400)

I just installed full cygwin and I now need to access a folder from
inside cygwin machine(win7). I did some google search but no good match.
are there any known best practice for that (e.g through SSH)?
the cygwin ssh client works fine but I just dont wanna bother to copy
DIRs ..


Your options are SMB and NFS depending on which is setup on the server.
You mount both with Windows tools (not Cygwin). Or you use a SCP/SFTP
client like WinSCP or FileZilla.

Thorsten


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




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



Re: vim/cygwin: python support

2012-06-29 Thread ping

got returned msg about cygwin. so resent..

On 06/29/2012 10:22 AM, ping wrote:

not sure this should go to vim/cygwin team...so copy both and Vlad(Voom
plugin author)
I got a new laptop (folio) come with win7.
for some reason I want to give win7 a trial.

cygwin full install went smooth.
but looks I don't have python support here.
that means I won't be able to have some plugins (like Voom) that is
based on python.
I did a lot of search and looks this is a common issue, but still I
don't see a clear answer yet.
any cygwin users can advise?

regards
ping




--
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/cygwin: python support

2012-06-29 Thread ping

thanks Ryan.

I think I had the python package already -- I installed the FULL cygwin..

ping@ping-new-laptop ~
$ python
Python 2.6.8 (unknown, Jun  9 2012, 11:30:32)
[GCC 4.5.3] on cygwin
Type help, copyright, credits or license for more information.


I guess I need to do some manual re-compiling work myself.
but depending on whether I'm lucky not sure I'll make it or mess things 
up worse.
not complaint at all...cygwin is an amazing project already...just 
wondering why there isn't a full-feature ready to use vim available so 
newbies like me won't need to do the dev-level work.

I remember I use cygwin years ago and ran into the same trouble...

I'll try and post update.

regards
ping




On 06/29/2012 11:06 AM, Ryan Johnson wrote:

On 06/29/2012 10:22 AM, ping wrote:

cygwin full install went smooth.
but looks I don't have python support here.

http://cygwin.com/problems.html

You might also try installing the python package...

Ryan



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




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



Re: vim/cygwin: python support

2012-06-29 Thread ping
I just got it re-compired from the source with python enabled, and it 
looks now have the python support.


:version
VIM - Vi IMproved 7.3 (2010 Aug 15, compiled Jun 29 2012 16:20:28)
Included patches: 1-581
Compiled by ping@ping-new-laptop
Huge version without GUI.  Features included (+) or not (-):
+arabic +autocmd -balloon_eval -browse ++builtin_terms +byte_offset 
+cindent -clientserver -clipboard +cmdline_compl +cmdline_hist 
+cmdline_info +comments +conceal +cryptv +cscope +cursorbind
+cursorshape +dialog_con +diff +digraphs -dnd -ebcdic +emacs_tags +eval 
+ex_extra +extra_search +farsi +file_in_path +find_in_path +float 
+folding -footer +fork() +gettext -hangul_input +iconv
+insert_expand +jumplist +keymap +langmap +libcall +linebreak 
+lispindent +listcmds +localmap -lua +menu +mksession +modify_fname 
+mouse -mouseshape +mouse_dec -mouse_gpm -mouse_jsbterm
+mouse_netterm -mouse_sysmouse +mouse_xterm +mouse_urxvt +multi_byte 
+multi_lang -mzscheme +netbeans_intg +path_extra -perl +persistent_undo 
+postscript +printer +profile +python -python3 +quickfix
 +reltime +rightleft -ruby +scrollbind +signs +smartindent -sniff 
+startuptime +statusline -sun_workshop +syntax +tag_binary 
+tag_old_static -tag_any_white -tcl +terminfo +termresponse +textobjects
 +title -toolbar +user_commands +vertsplit +virtualedit +visual 
+visualextra +viminfo +vreplace +wildignore +wildmenu +windows 
+writebackup -X11 -xfontset -xim -xsmp -xterm_clipboard -xterm_save

   system vimrc file: $VIM/vimrc
 user vimrc file: $HOME/.vimrc
  user exrc file: $HOME/.exrc
  fall-back for $VIM: /usr/local/share/vim
Compilation: gcc -c -I. -Iproto -DHAVE_CONFIG_H -g -O2 
-U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1
Linking: gcc   -L/usr/local/lib -Wl,--as-needed -o vim.exe 
-lm -lncurses -lelf   -liconv -lintl 
-L/usr/lib/python2.6/config -lpython2.6 -ldl


I have not move my work on it so not sure what other issues I might run 
into here. At least the python feature is there!


thanks.

regards
ping



On 06/29/2012 11:43 AM, ping wrote:

thanks Ryan.

I think I had the python package already -- I installed the FULL cygwin..

ping@ping-new-laptop ~
$ python
Python 2.6.8 (unknown, Jun  9 2012, 11:30:32)
[GCC 4.5.3] on cygwin
Type help, copyright, credits or license for more information.
 

I guess I need to do some manual re-compiling work myself.
but depending on whether I'm lucky not sure I'll make it or mess things
up worse.
not complaint at all...cygwin is an amazing project already...just
wondering why there isn't a full-feature ready to use vim available so
newbies like me won't need to do the dev-level work.
I remember I use cygwin years ago and ran into the same trouble...

I'll try and post update.

regards
ping




On 06/29/2012 11:06 AM, Ryan Johnson wrote:

On 06/29/2012 10:22 AM, ping wrote:

cygwin full install went smooth.
but looks I don't have python support here.

http://cygwin.com/problems.html

You might also try installing the python package...

Ryan



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



cygwin: how to mount linux FS from cygwin

2012-06-28 Thread ping

guys/experts:
I just installed full cygwin and I now need to access a folder from 
inside cygwin machine(win7). I did some google search but no good match.

are there any known best practice for that (e.g through SSH)?
the cygwin ssh client works fine but I just dont wanna bother to copy 
DIRs ..


thanks!
regards
ping

--
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: how to mount linux FS from cygwin

2012-06-28 Thread ping

thanks for the response!
samba is a good solution, although I still miss the magic sshfs tool in 
linux...



On 06/28/2012 02:20 PM, K Stahl wrote:

If the target file system is shared via a Samba mount, then you can
add the following to your /etc/fstab of cygwin:

//HOST_MACHINE/PATH/TO/SHARED_FOLDER /mnt/SOME_NAME smbfs
binary,notexec,posix=0 0 0

NOTE: The values in all uppercase should be changed to reflect the
appropriate values.

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




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



Re: cygwin: how to mount linux FS from cygwin

2012-06-28 Thread ping

thanks Jeremy, will give dokan and winsshfs a shot.
I didn't think this should be fixed from outside of cygwin.
will post the result...

regards
ping

On 06/28/2012 04:09 PM, Jeremy Bopp wrote:

On 06/28/2012 02:55 PM, Daniel Colascione wrote:

On 6/28/12 12:34 PM, ping wrote:

I still miss the magic sshfs tool
in linux...


You can make it happen. In principle, FUSE should work as well in
Cygwin as it does under Linux, albeit for Cygwin programs only. It'd
just be a matter of writing the glue logic and hooking into Cygwin's
VFS internals.


You may have more immediate results by using a Windows-native SSHFS
implementation.  I haven't used Dokan myself, but it appears promising:

http://dokan-dev.net/en/

It's basically a FUSE implementation for Windows that includes an SSHFS
client.  There is also another one that seems related:

http://code.google.com/p/win-sshfs/

Assuming you can get one of these to work for you, you'll have the
advantage of using it not only with Cygwin programs but native ones as well.

-Jeremy

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




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



Re: cygwin: how to mount linux FS from cygwin

2012-06-28 Thread ping

hi Jeremy/all:
the Dokan sshfs works like a charm.
now all set!

thanks!

regards
ping

On 06/28/2012 04:40 PM, ping wrote:

thanks Jeremy, will give dokan and winsshfs a shot.
I didn't think this should be fixed from outside of cygwin.
will post the result...

regards
ping

On 06/28/2012 04:09 PM, Jeremy Bopp wrote:

On 06/28/2012 02:55 PM, Daniel Colascione wrote:

On 6/28/12 12:34 PM, ping wrote:

I still miss the magic sshfs tool
in linux...


You can make it happen. In principle, FUSE should work as well in
Cygwin as it does under Linux, albeit for Cygwin programs only. It'd
just be a matter of writing the glue logic and hooking into Cygwin's
VFS internals.


You may have more immediate results by using a Windows-native SSHFS
implementation.  I haven't used Dokan myself, but it appears promising:

http://dokan-dev.net/en/

It's basically a FUSE implementation for Windows that includes an SSHFS
client.  There is also another one that seems related:

http://code.google.com/p/win-sshfs/

Assuming you can get one of these to work for you, you'll have the
advantage of using it not only with Cygwin programs but native ones as
well.

-Jeremy

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



cygwin: not administrator account?

2012-06-28 Thread ping

experts:
I run into an account priviledge issue here when I tried to setup ssh 
server in cygwin.

I don't remember I ever ran into this previously in winXP.
so this is in my win7 HE.
looks I can't ping anything and can't proceed with sshd activation.
but from control panel I'm sure I'm administrator (I'm the only user  in 
this new laptop so far).

please advice. I'm not sure how I can work with it w/o an ssh server ...
thanks in advance.

captures===

$ ping 127.0.0.1
ping: socket: Operation not permitted

ping@ping-new-laptop ~
$ ssh-host-config

*** Warning: Running this script typically requires administrator 
privileges!

*** Warning: However, it seems your account does not have these privileges.
*** Warning: Here's the list of groups in your user token:

None
Users

*** Warning: This usually means you're running this script from a non-admin
*** Warning: desktop session, or in a non-elevated shell under UAC control.

*** Warning: Make sure you have the appropriate privileges right now,
*** Warning: otherwise parts of this script will probably fail!

*** Query: Are you sure you want to continue?  (Say no if you're not sure
*** Query: you have the required privileges) (yes/no)

ping@ping-new-laptop ~
$ su
su: user root does not exist

ping@ping-new-laptop ~
$ sudo
-bash: sudo: command not found


--
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: not administrator account?

2012-06-28 Thread ping

oh that's my bad.
yes that works, thanks Larry!

regards
ping

On 06/28/2012 05:51 PM, Larry Hall (Cygwin) wrote:

On 6/28/2012 5:06 PM, ping wrote:

experts:
I run into an account priviledge issue here when I tried to setup ssh
server
in cygwin.
I don't remember I ever ran into this previously in winXP.
so this is in my win7 HE.
looks I can't ping anything and can't proceed with sshd activation.
but from control panel I'm sure I'm administrator (I'm the only user
in this
new laptop so far).


If your account has administrator privileges, you need to say you want to
use them for the program you're running.  To do this, find the Cygwin
Terminal in your Start Menu and right click on it.  Pick
Run as administrator.  Proceed as before.




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



1.7.5 run cygwin.bat and returned with c:\cygwin\bin folder

2010-05-14 Thread Ping Wu
I have try to install Cygwin on Amazon AMI 
ami-f71ff09e amazon/Windows-Server2003R2-x86_64-SqlExpress-v109
The setup.exe did completed with the installation, but  cygwin.bat return right 
away and going nowhere.

If I ran it from command line it will ended up at c:\cygwin\bin.
I have try to remove c:\cygwin and re-install it and it does not seems help.

running c:\cygwin\bin\bash does go to the bash shell, but non of the user 
profile apply.

Further notice that the image/Instance might have some early cygwin 
installation so that the setup.exe default some of the xWinodws components 
which I was not installed at first attempt. 

The questions:  Are there any way I can a do a complete clean remove and 
reinstall to overcome the above problem.
Or other suggestions?

Many Thanks,
Ping Wu


  

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



emacs keybindings broken

2003-02-24 Thread joy ping
hi there,
as i currently used to emacs as my 'default' editor i found that some 
keybindings doesn't work in cygwin terminal mode, specially C-x C-c. I know
it's a known issue, but does someone found a workarround for it?

regards

joy 


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



updating packages?

2003-02-22 Thread joy ping
hi there,
i know it may be a newbie question, but how can i update easily packages
in cygwin. i tried the setup-tool, but it downloads everytime the whole
bunch of packages and seems to install the whole stuff again, either i had
already installed cygwin completly. i just want to add one package.

btw. does anyone have experiences in running mplayer on cygwin and playing
realfiles? mplayer did compile fine and plays avis and mpgs but it sigills
while playing realfiles.

greetz

joy


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/