From owner-freebsd-questions@FreeBSD.ORG Fri Mar 24 14:04:59 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 1C5A116A424 for ; Fri, 24 Mar 2006 14:04:59 +0000 (UTC) (envelope-from cswiger@mac.com) Received: from pi.codefab.com (pi.codefab.com [199.103.21.227]) by mx1.FreeBSD.org (Postfix) with ESMTP id A18C943D53 for ; Fri, 24 Mar 2006 14:04:54 +0000 (GMT) (envelope-from cswiger@mac.com) Received: from localhost (localhost [127.0.0.1]) by pi.codefab.com (Postfix) with ESMTP id 26B935E11; Fri, 24 Mar 2006 09:04:54 -0500 (EST) Received: from pi.codefab.com ([127.0.0.1]) by localhost (pi.codefab.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 82524-08; Fri, 24 Mar 2006 09:04:51 -0500 (EST) Received: from [192.168.1.3] (pool-68-160-194-11.ny325.east.verizon.net [68.160.194.11]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by pi.codefab.com (Postfix) with ESMTP id C8E785C5D; Fri, 24 Mar 2006 09:04:50 -0500 (EST) Message-ID: <4423FC89.5010304@mac.com> Date: Fri, 24 Mar 2006 09:04:57 -0500 From: Chuck Swiger Organization: The Courts of Chaos User-Agent: Thunderbird 1.5 (Windows/20051201) MIME-Version: 1.0 To: Nikolas Britton References: In-Reply-To: X-Enigmail-Version: 0.94.0.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: amavisd-new at codefab.com Cc: freebsd general questions Subject: Re: KDE App Launcher 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: Fri, 24 Mar 2006 14:04:59 -0000 Nikolas Britton wrote: > How do I get KDE to run this command: > > setenv SDL_VIDEO_X11_DGAMOUSE 0; setenv QEMU_AUDIO_DRV sdl; nice +5 > qemu -soundhw es1370 ~/qemu/win98se/win98se_disk.img& > > or this: > > export SDL_VIDEO_X11_DGAMOUSE=0; export QEMU_AUDIO_DRV=sdl ; nice +5 > nohup qemu -soundhw es1370 ~/qemu/win98se/win98se_disk.img& > > Or this, win98se_start.sh: > > #!/bin/sh > export SDL_VIDEO_X11_DGAMOUSE=0 > export QEMU_AUDIO_DRV=sdl > nohup qemu -soundhw es1370 ~/qemu/win98se/win98se_disk.img& > exit > > I can't get any of them to work, I've tried other permutations too. > The only way I got it to work is if I tell it to run in a term window, > but I don't want that. setenv is csh; export is /bin/sh. Don't confuse the two or else you will be doomed to wander endlessly in confusion. :-) / 2 For /bin/sh, you can't export a variable on the line you set it; that's an extension found in bash, ksh, and zsh, but is not part of the original sh: #!/bin/sh SDL_VIDEO_X11_DGAMOUSE=0 export SDL_VIDEO_X11_DGAMOUSE QEMU_AUDIO_DRV=sdl export QEMU_AUDIO_DRV nohup qemu -soundhw es1370 ~/qemu/win98se/win98se_disk.img & -- -Chuck