X2Go Bug report logs - #301
Execute commands given as arguments

version graph

Package: x2gothinclient; Maintainer for x2gothinclient is X2Go Developers <x2go-dev@lists.x2go.org>; Source for x2gothinclient is src:x2gothinclient.

Reported by: Arnold Krille <a.krille@b-c-s.de>

Date: Thu, 5 Sep 2013 09:03:02 UTC

Severity: normal

Tags: pending

Fixed in version 1.1.0.0

Done: Mike Gabriel <mike.gabriel@das-netzwerkteam.de>

Bug is archived. No further changes may be made.

Full log


🔗 View this message in rfc822 format

X-Loop: owner@bugs.x2go.org
Subject: Bug#301: Execute commands given as arguments
Reply-To: Arnold Krille <a.krille@b-c-s.de>, 301@bugs.x2go.org
Resent-From: Arnold Krille <a.krille@b-c-s.de>
Resent-To: x2go-dev@lists.berlios.de
Resent-CC: X2Go Developers <x2go-dev@lists.berlios.de>
X-Loop: owner@bugs.x2go.org
Resent-Date: Thu, 05 Sep 2013 09:03:02 +0000
Resent-Message-ID: <handler.301.B.13783710854197@bugs.x2go.org>
Resent-Sender: owner@bugs.x2go.org
X-X2Go-PR-Message: report 301
X-X2Go-PR-Package: x2gothinclient
X-X2Go-PR-Keywords: 
Received: via spool by submit@bugs.x2go.org id=B.13783710854197
          (code B); Thu, 05 Sep 2013 09:03:02 +0000
Received: (at submit) by bugs.x2go.org; 5 Sep 2013 08:51:25 +0000
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on
	ymir.das-netzwerkteam.de
X-Spam-Level: 
X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW
	autolearn=ham version=3.3.2
Received: from mail.b-c-s.net (mail.b-c-s.net [178.63.255.106])
	by ymir (Postfix) with ESMTPS id E91495DB17
	for <submit@bugs.x2go.org>; Thu,  5 Sep 2013 10:51:24 +0200 (CEST)
Received: from bcs01.dyn.b-c-s.net (unknown [212.255.36.182])
	(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
	(Client CN "bcs01.dyn.b-c-s.net", Issuer "BCS Server CA" (verified OK))
	by mail.b-c-s.net (Postfix) with ESMTPS id C66BB21BF;
	Thu,  5 Sep 2013 10:51:24 +0200 (CEST)
Received: from localhost (localhost [127.0.0.1])
	by bcs01.dyn.b-c-s.net (Postfix) with ESMTP id 13BFB2FC4BF;
	Thu,  5 Sep 2013 10:51:24 +0200 (CEST)
X-Virus-Scanned: by amavisd-new-2.6.4 (20090625) (BCS01) at bcs.bcs
Received: from bcs01.dyn.b-c-s.net ([127.0.0.1])
	by localhost (bcs01.bcs.bcs [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id zNdgwe59qMm9; Thu,  5 Sep 2013 10:51:10 +0200 (CEST)
Received: from orinoco.bcs.bcs (dhcp153.bcs.bcs [10.110.200.153])
	by bcs01.dyn.b-c-s.net (Postfix) with ESMTP id 5A9AC2FC4C9;
	Thu,  5 Sep 2013 10:51:03 +0200 (CEST)
From: Arnold Krille <a.krille@b-c-s.de>
To: submit@bugs.x2go.org
Cc: Arnold Krille <a.krille@b-c-s.de>
Date: Thu,  5 Sep 2013 10:51:01 +0200
Message-Id: <1378371061-28314-1-git-send-email-a.krille@b-c-s.de>
X-Mailer: git-send-email 1.7.9.5
Package: x2gothinclient

When automatically setting up the TCE via scripts, there is the need to execute
arbitrary commands inside the TCE, extend x2gothinclient_shell to run anything
given as arguments and fall back to $TC_SHELL when nothing is given.
---
 x2gothinclientmanagement/sbin/x2gothinclient_shell |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/x2gothinclientmanagement/sbin/x2gothinclient_shell b/x2gothinclientmanagement/sbin/x2gothinclient_shell
index 42f4f5d..ba4ec21 100755
--- a/x2gothinclientmanagement/sbin/x2gothinclient_shell
+++ b/x2gothinclientmanagement/sbin/x2gothinclient_shell
@@ -82,7 +82,7 @@ export X2GO_HANDLE_DAEMONS=false
 
 mount /root
 
-/bin/$TC_SHELL
+${*:-/bin/$TC_SHELL}
 
 umount /root
 
-- 
1.7.9.5

Send a report that this bug log contains spam.


X2Go Developers <owner@bugs.x2go.org>. Last modified: Thu Oct 3 18:13:43 2024; Machine Name: ymir.das-netzwerkteam.de

X2Go Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.