From owner-freebsd-questions Sun Feb 16 14:11: 6 2003 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 5F3CE37B401 for ; Sun, 16 Feb 2003 14:11:05 -0800 (PST) Received: from as9-2-1.bi.s.bonet.se (as9-2-1.bi.s.bonet.se [217.215.7.177]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5665343F75 for ; Sun, 16 Feb 2003 14:11:04 -0800 (PST) (envelope-from peo@intersonic.se) Received: by as9-2-1.bi.s.bonet.se (Postfix, from userid 1003) id 8F97949697A; Sun, 16 Feb 2003 23:11:01 +0100 (CET) Message-ID: <3E500C6F.2030805@intersonic.se> Date: Sun, 16 Feb 2003 23:10:55 +0100 From: Per olof Ljungmark Organization: Intersonic AB User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.2.1) Gecko/20030126 X-Accept-Language: en-us, en, sv MIME-Version: 1.0 To: freebsd-questions Subject: catch output from sh -xv to a file Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, hits=-101.0 required=5.7 tests=NOSPAM_INC,SPAM_PHRASE_00_01,TO_LOCALPART_EQ_REAL, USER_AGENT,USER_AGENT_MOZILLA_UA,USER_IN_WHITELIST, X_ACCEPT_LANG version=2.44 X-Spam-Level: X-Sanitizer: Advosys mail filter 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 Need advice on how to modify first line of shell script so that script can run normally (as called from another program, not from the command line) and write debugging output to a file like: #!/bin/sh echo DEFANGED.1007 exit #!/bin/sh -xv Thanks, Per olof To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message