copyfile
swfote2.1/bin/cygwin/copyfile · 720 B
From the archive swfote2.1.4.tgz
Download the archive « Back to the archive contents
#! /bin/csh -f
#This Script was created by Greg (Keberus) Mosley
#SW:DoD
#www.t-n-k-games.com
#This little script is the major reason copyover for this mud is now possible
#I would just like to say thanks to whoever came up with the startup script enancement to tell the mud
#not to startup if the port was in use...I used thier Idea for part of this.
# Setup working directory
cd ../bin
set wd = `pwd`
cd ../src
# Check if already running
set matches = `ps ux | grep "$wd" | grep -c "swr"`
if ( $matches >= 1 ) then
# Already running
mv ../bin/swr.exe ../bin/swr_old.exe || echo "Don't Worry, this probably means you've changed more stuff but haven't done a Copyover Yet!"
endif