[prev in list] [next in list] [prev in thread] [next in thread]
List: unison-users
Subject: [unison-users] Remotely Reinitializing Unison on Win2k Servers
From: "Rich Vigh" <rich () openminds ! ca>
Date: 2004-04-16 21:01:19
Message-ID: fc.0119ecf6006f356d0119ecf6006f356d.6f35e4 () venturegroup ! ca
[Download RAW message or body]
A Little FYI:
On occasion, Unison hangs up when synchronizing very large roots.
So I created a batch file to fix this.
It uses the psexec.exe utility freely available from sysinternals
(http://www.sysinternals.com/ntw2k/freeware/pstools.shtml).
Used in combination with the kill.exe utility available from the win2k
resource kit, you can remotely authenticate to a unison client, terminate
the socket listener, and restart the unison client.
Syntax:
c:\....\psexec.exe \\remote_server_name -u user_name -p password -d
-normal c:\....\program.exe arguments
Note that the 'c:\....\program.exe' is located on the remote computer.
So, my script that kills unison and relaunches it looks like this:
c:\....\psexec.exe \\server_name -u user_name -p password -d -normal
c:\....\kill.exe unison.exe
c:\....\psexec.exe \\server_name -u user_name -p password -d -normal
c:\....\unison\unison_start.bat
And the unison_start.bat referenced in the above looks like this:
start /normal c:\unison\unison.exe -socket 9999
Interestingly enough, as a side benefit, on my win2k sp4 boxes, unison.exe
runs under the console session, but does not open a command window. This
behaviour is different from the usual -- if you were to double-click on
the unison_start.bat from the console, you would get a black terminal
window that you need to leave running (it's kind of annoying).
Richard Vigh
------------------------ Yahoo! Groups Sponsor ---------------------~-->
Buy Ink Cartridges or Refill Kits for your HP, Epson, Canon or Lexmark
Printer at MyInks.com. Free s/h on orders $50 or more to the US & Canada.
http://www.c1tracking.com/l.asp?cid=5511
http://us.click.yahoo.com/mOAaAA/3exGAA/qnsNAA/26EolB/TM
---------------------------------------------------------------------~->
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/unison-users/
<*> To unsubscribe from this group, send an email to:
unison-users-unsubscribe@yahoogroups.com
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic