how to detect if Windows or Linux is running?

H. S. hs.samix@gmail.com
Thu Dec 1 22:10:00 GMT 2005


Hi,

I have installed Cygwin on a Windows XP computer to get rsync and ssh 
running so that I can backup my important data on a Linux computer on my 
home LAN. The idea is to use rsync to make rolling backups of my Windows 
data automatically, say, once or twice a day and to retain last N 
backups (N most probably going to be 10~20).

But the problem I had not foreseen is that I dual boot this Windows 
machine between Windows XP and Debian. How should I gracefully let the 
rsync server know if this computer is running Linux or XP?

I know that if the computer is running Linux, the rsync server will 
never find /cygdrive/... folders and will just quite with an error. But 
this is not 'clean', it will result in mails to the rsync server root 
about the error.

Suggestions?

->HS


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



More information about the Cygwin mailing list