Ok, I added it to the patch. I also fixed the commit-message. I'll wait one or two days whether there are any other objections.
Cheers Morty On 2011-04-11 17:05, Mike Gabriel wrote: > Hi Morty, > > On Mo 11 Apr 2011 15:53:00 CEST Moritz Struebe wrote: > >> Hmm, looks like I did something wrong. :( Here comes the patch manually. > > Would also be nice for x2goterminate-session... > > Mike > > -- Dipl.-Ing. Moritz 'Morty' Struebe (Wissenschaftlicher Mitarbeiter) Lehrstuhl für Informatik 4 (Verteilte Systeme und Betriebssysteme) Friedrich-Alexander-Universität Erlangen-Nürnberg Martensstr. 1 91058 Erlangen Tel : +49 9131 85-25419 Fax : +49 9131 85-28732 eMail : stru...@informatik.uni-erlangen.de WWW : http://www4.informatik.uni-erlangen.de/~morty
From e8b312b4c4d2b99eae7cf08c130366d4cb18a834 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Moritz=20'Morty'=20Str=C3=BCbe?= <mo...@gmx.net> Date: Thu, 10 Mar 2011 09:53:26 +0100 Subject: [PATCH] x2gosuspend-session and x2goterminate-session will now suspend/terminate the current session, if no parameter is given --- x2gosuspend-session | 6 +++++- x2goterminate-session | 7 ++++++- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/x2gosuspend-session b/x2gosuspend-session index c79d490..4e29188 100755 --- a/x2gosuspend-session +++ b/x2gosuspend-session @@ -1,6 +1,10 @@ #!/bin/bash -SESSION_NAME=$1 +if [ $# -eq 1 ]; then + SESSION_NAME=$1 +else + SESSION_NAME=$X2GO_SESSION +fi X2GO_AGENT_PID=`x2gogetagent $SESSION_NAME` diff --git a/x2goterminate-session b/x2goterminate-session index 5d31543..0b4f83a 100755 --- a/x2goterminate-session +++ b/x2goterminate-session @@ -1,6 +1,11 @@ #!/bin/bash -SESSION_NAME=$1 +if [ $# -eq 1 ]; then + SESSION_NAME=$1 +else + SESSION_NAME=$X2GO_SESSION +fi + X2GO_AGENT_PID=`x2gogetagent $SESSION_NAME` X2GO_AGENT_PID=`echo "$X2GO_AGENT_PID"| awk {'print $1'}` -- 1.7.2.5
smime.p7s
Description: S/MIME Cryptographic Signature
_______________________________________________ X2go-dev mailing list X2go-dev@lists.berlios.de https://lists.berlios.de/mailman/listinfo/x2go-dev