From owner-freebsd-questions@FreeBSD.ORG Tue Oct 3 00:49:53 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org 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 70F4E16A407 for ; Tue, 3 Oct 2006 00:49:53 +0000 (UTC) (envelope-from freebsd.ph@gmail.com) Received: from nz-out-0102.google.com (nz-out-0102.google.com [64.233.162.198]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0253643D49 for ; Tue, 3 Oct 2006 00:49:52 +0000 (GMT) (envelope-from freebsd.ph@gmail.com) Received: by nz-out-0102.google.com with SMTP id 13so597814nzn for ; Mon, 02 Oct 2006 17:49:52 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type; b=ZgVwFdWTdGV6NMWNYZMLQ8ZQ+r38Ivm5KR7zck/tUJrBRq+CIvcaH0QGycoNZlxi91X5mdHwQJ5EF9iK5Z2GZCQL51eze1x3olpF/PEUZTeWSgS+8teqWjXpvOe9kRlp2T3z9qXmWUSaagIf4fnpuVVLKawuIAXEb/bKLjhAZaI= Received: by 10.64.156.3 with SMTP id d3mr2055953qbe; Mon, 02 Oct 2006 17:49:52 -0700 (PDT) Received: by 10.65.103.5 with HTTP; Mon, 2 Oct 2006 17:49:51 -0700 (PDT) Message-ID: Date: Tue, 3 Oct 2006 08:49:52 +0800 From: "jan gestre" To: "freebsd-questions@freebsd.org" MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: scripting question X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 Oct 2006 00:49:53 -0000 i made a script and put on root's crontab, however it's not doing or showing the output that is forwarded to my email address correctly therefore i'm not sure if it is working or not. below is what the script look like: #---------------- # cvsrun - Weekly CVSup Run echo "Subject: `hostname` weekly cvsup run" /usr/local/bin/cvsup -g -L 2 /root/ports-supfile echo "" /usr/local/bin/portmanager -s | grep OLD echo "" echo "cvsrun done." #---------------- i would like the output of this command /usr/local/bin/portmanager -s | grep OLD to show in my mail where i forwarded it. below is the cronjob. 30 8 * * * root /usr/local/bin/cvsrun | mail -s "Daily cvsup run and portmanager" user1 can someone help me to correct this script, to show the output that i want. TIA