From owner-freebsd-newbies Mon Aug 2 11:52: 5 1999 Delivered-To: freebsd-newbies@freebsd.org Received: from icmct.uvt.ro (icmct.uvt.ro [193.226.14.158]) by hub.freebsd.org (Postfix) with ESMTP id E789914CC6 for ; Mon, 2 Aug 1999 11:51:52 -0700 (PDT) (envelope-from baroti@icmct.uvt.ro) Received: from localhost (baroti@localhost) by icmct.uvt.ro (8.9.2/8.9.2) with SMTP id VAA54279 for ; Mon, 2 Aug 1999 21:44:58 +0300 (EEST) (envelope-from baroti@icmct.uvt.ro) Date: Mon, 2 Aug 1999 21:44:58 +0300 (EEST) From: Istvan & Agra Baroti Reply-To: Istvan & Agra Baroti Cc: freebsd-newbies@FreeBSD.ORG Subject: need short unix program In-Reply-To: <199908021828.LAA26776@pau-amma.whistle.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-newbies@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org help me! i want to make a program which allow to copy a file: /usr/myname/webcamera.jpg to a file: /usr/myname/mydirectory/current_date.jpg AT EVERY 10 SECONDS. The current_date string must include HH/MM/.ss because I want to make an archive directory /usr/myname/mydirectory/ with photos taken every 10 seconds at the 11 August Solar Eclipse with a webcamera on our Unix FreeBSD 3.1 server. The webcamera produces a webcamera.jpg file EVERY TIME WITH THE SAME NAME: webcamera.jpg AND OVERWRITE IT. I WANT TO SAVE THESE pictues/FILES WITH NEW NAME: current_date.jpg but I don't know how to extract a strig from the date command. please help. #!/bin/sh To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-newbies" in the body of the message