Skip to content

Cygnative.exe is a wrapper for cygwin programs which call native Win32 programs with stdin and/or stdout handle redirected. Without cygnative.exe it is possible that the native program can not read from the handle and receives a "invalid handle" error.

License

Notifications You must be signed in to change notification settings

davidecolombo/cygnative

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

cygnative

This is a wrapper program written in C by Frank Behrens, which basically solves handle problems using plink (a command line connection tool for Windows included with Putty) along with cygwin and rsync. I found this program on the internet and I implemented a simple fix so I can compile it with cygwin’s GCC.

Cygnative.exe is a wrapper for cygwin programs which call native Win32 programs with stdin and/or stdout handle redirected. Without cygnative it’s possible that the native program cannot read from the handle and receives a “invalid handle” error. See: https://diario.beerensalat.info/tags/plink/

Fixed cygnative.c:207:69: error: ‘VERSION’ undeclared on latest 1.2 sources from https://diario.beerensalat.info/2009/08/18/new_cygnative_version_1_2_for_rsync_plink.html

Compile with: gcc cygnative.c -o cygnative.exe

Usage: cygnative <nativeProgram> [args...]

Example with rsync and plink: rsync --blocking-io -e "cygnative plink -batch" -h -a --delete / user@server:/data2/backup/

About

Cygnative.exe is a wrapper for cygwin programs which call native Win32 programs with stdin and/or stdout handle redirected. Without cygnative.exe it is possible that the native program can not read from the handle and receives a "invalid handle" error.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages