Return-Path: Delivered-To: apmail-jakarta-tomcat-dev-archive@apache.org Received: (qmail 8093 invoked from network); 9 Sep 2002 03:29:16 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 9 Sep 2002 03:29:16 -0000 Received: (qmail 11167 invoked by uid 97); 9 Sep 2002 03:29:53 -0000 Delivered-To: qmlist-jakarta-archive-tomcat-dev@jakarta.apache.org Received: (qmail 11151 invoked by uid 97); 9 Sep 2002 03:29:53 -0000 Mailing-List: contact tomcat-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Developers List" Reply-To: "Tomcat Developers List" Delivered-To: mailing list tomcat-dev@jakarta.apache.org Received: (qmail 11139 invoked by uid 98); 9 Sep 2002 03:29:52 -0000 X-Antivirus: nagoya (v4218 created Aug 14 2002) Message-ID: <1031542282.3d7c160a7a132@imp.rexursive.com> Date: Mon, 9 Sep 2002 13:31:22 +1000 From: Bojan Smojver To: Tomcat Developers List Subject: Re: [linux CP COMMAND options] References: <5.1.1.6.2.20020908153333.00b265a0@mail.harbornet.com> <5.1.1.6.2.20020908153333.00b265a0@mail.harbornet.com> <5.1.1.6.2.20020908171545.00bc3c88@mail.harbornet.com> In-Reply-To: <5.1.1.6.2.20020908171545.00bc3c88@mail.harbornet.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit User-Agent: Internet Messaging Program (IMP) 3.1 X-Originating-IP: X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N I'm not sure I know what a 'Secure CTR' is, so I'll leave that one alone :-) Yes there is 'cp -fr' on Linux, see 'man cp' for details. Manual pages for RedHat Linux are available from here: http://linux.ctyme.com/. rsync will make sure copying is atomic (i.e. it'll create a temp file, sync into it and then move the temp file into the destination file ), cp won't (it'll overwrite the target file, starting at the beginning of the file, so if something grabs the file while this is being done, there's going to be trouble), which makes rsync a better choice for this kind of work, especially if you're doing it while Tomcat is running. Also, rsync has sophisticated pattern matching, which makes it, well, suitable for (remote) syncing :-) Bojan Quoting micael : > Thanks, Bojan, but I use a command line with Secure CTR. What I need to > know is what is the right command with cp on the linux machine. > > Is there one? cp -fr ????? > /usr/local/java/tomcat/webapps/[app]/WEB-INF/classes/com/wahoo/place/ which > will force the .jsp pages to overwrite the ones in place/ is what I need. > > Micael > > At 09:45 AM 9/9/2002 +1000, you wrote: > >http://rsync.samba.org/ > > > >Bojan > > > >On Mon, 2002-09-09 at 08:37, micael wrote: > > > I need to copy all the files (drilled down in directories recursively) > > that > > > end in ".jsp" to another location and write over the files in that > > > location. Anyone have the command for a Red Hat 7.2 Linux > > environment? It > > > is irrelevant, but connected to this list, that I am running Tomcat 4 > and > > > Struts with JBoss. Not much knowledge about the admin languages in my > > > head. Any assistance would be appreciated. Sorry if this is a bit off > > topic. > > > > > > > > > > > > -- > > > To unsubscribe, > > e-mail: > > > For additional commands, e-mail: > > > > > > > > > > > > >-- > >To unsubscribe, e-mail: > > >For additional commands, e-mail: > > > > > -- > To unsubscribe, e-mail: > For additional commands, e-mail: > > ------------------------------------------------- This mail sent through IMP: http://horde.org/imp/ -- To unsubscribe, e-mail: For additional commands, e-mail: