From owner-freebsd-questions@FreeBSD.ORG Sun Jan 21 01:01:46 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id B458616A402 for ; Sun, 21 Jan 2007 01:01:46 +0000 (UTC) (envelope-from news@nermal.rz1.convenimus.net) Received: from mx1.netclusive.de (mx1.netclusive.de [89.110.132.131]) by mx1.freebsd.org (Postfix) with ESMTP id 502B513C457 for ; Sun, 21 Jan 2007 01:01:45 +0000 (UTC) (envelope-from news@nermal.rz1.convenimus.net) Received: from nermal.rz1.convenimus.net (p3EE24BF3.dip0.t-ipconnect.de [62.226.75.243]) by mx1.netclusive.de (Postfix) with ESMTP id A02C8DE80E5 for ; Sun, 21 Jan 2007 02:01:44 +0100 (CET) Received: by nermal.rz1.convenimus.net (Postfix, from userid 8) id E82F715213; Sun, 21 Jan 2007 02:01:43 +0100 (CET) To: freebsd-questions@freebsd.org Path: not-for-mail From: Christian Baer Newsgroups: gmane.os.freebsd.questions Date: Sun, 21 Jan 2007 02:01:43 +0100 (CET) Organization: Convenimus Projekt Lines: 51 Message-ID: NNTP-Posting-Host: garfield.rz1.convenimus.net X-Trace: nermal.rz1.convenimus.net 1169341303 51507 192.168.100.11 (21 Jan 2007 01:01:43 GMT) X-Complaints-To: abuse@convenimus.net NNTP-Posting-Date: Sun, 21 Jan 2007 01:01:43 +0000 (UTC) User-Agent: slrn/0.9.8.1 (FreeBSD) Subject: A little trouble starting (X-) Programs over ssh... 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: Sun, 21 Jan 2007 01:01:46 -0000 Good evening peeps! This probably isn't a real FreeBSD-issue itself, but it doesn't really fit any other topic that has a newsgroup out there, so please bear with me here! What I have done: I've installed an X-server (XMing) on a Windows-XP box and connect via PuTTY to a FreeBSD box (Sun U60). I have configured the X-server to allow clients to connect from the IP of the FreeBSD-box. One of the commands I want to use (for example) is 'konqueror -display winbox:0 &'. Now that works fine, so it seems I got it right up to here. In case that wasn't clear so far: I am not using X-forwarding over ssh. So I don't need the ssh session to run the X-application. Since I don't always want to habe terminal windows hanging around and typing in the commands like that is a little boring, I wanted to automate that a little. I could do that by adding a command to run directly in PuTTY or by using plink. I tried both and neither got the desired results. If I use PuTTY the terminal window opens for a few seconds and then closes again. I get to see a few messages from the konqueror but the browser's window never appears on my desktop. If I use the exact command line in an open ssh session, konqueror starts and I can do what I like with it. If I close the ssh session I started the browser from nothing happens, meaning, it doesn't close. I can just go on surfing. Quite the reverse happens if I user plink to start konqueror. I get a command line window and see the messages of konqueror starting up. Unlike when using PuTTY I get a browser window and it stays too. The command line window which was the result of plink starting doesn't disappear though. It stays right where it is, maybe displaying the odd message or another from konqueror. Pressing ctrl-c closes the window (obviously there is now a clean exit somewhere) while leaving konqueror running. I have tried using the -batch and -s options and others to try to get the window to close *after* the application was actually started. With no success (so far). And this is just the part I don't get. When using PuTTY there seems to be some sort of clean exit, because otherwise the window wouldn't close. Why doesn't plink get the same clean exit? If there is a clean exit, why does it come too soon - if that is the case here? Why does the application break off its launch? What I basicly want is to start an application with a shortcut without making every one of them have two windows (one for the app itself and one for the terminal session). Is there any way of doing this? Regards Chris