From owner-freebsd-questions Tue Aug 20 7:54:13 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 995B637B400 for ; Tue, 20 Aug 2002 07:54:11 -0700 (PDT) Received: from mailout5-0.nyroc.rr.com (mailout5-1.nyroc.rr.com [24.92.226.169]) by mx1.FreeBSD.org (Postfix) with ESMTP id C47EB43E70 for ; Tue, 20 Aug 2002 07:54:10 -0700 (PDT) (envelope-from met@uberstats.com) Received: from SURVIVAL (rrcs-nys-24-97-200-196.biz.rr.com [24.97.200.196]) by mailout5-0.nyroc.rr.com (8.11.6/RoadRunner 1.20) with ESMTP id g7KEs8W11376 for ; Tue, 20 Aug 2002 10:54:09 -0400 (EDT) From: "MET" To: "'freebsd-questions-en'" Subject: Auto Answering a Command Prompt || Not best the best phrase Date: Tue, 20 Aug 2002 10:59:17 -0400 Message-ID: <001d01c2485a$28fc8710$6901a8c0@SURVIVAL> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.3416 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Importance: Normal Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG The host I'm using has a little built in system to auto ask the user (no matter what) if they want to overwrite (y/n) the file they're trying to save or archive/compress in this case. So every time I run my script is asks me a question. I need the script to run as a Cronjob at a ridiculous time in the morning by itself. So I'm trying to force the 'yes' down its throat, but I don't know how. Here's my current compression line: DATE=`date +%m-%d-%Y`; ARCHIVED="Gunks_Ads-$DATE.tar.bz2"; tar cjf ../backups/$ARCHIVED ../backups/Gunks_Ads.txt; So...how do I stuff a 'yes' down its throat after the last command above? ~ Matthew To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message