Return-Path: X-Original-To: apmail-felix-users-archive@minotaur.apache.org Delivered-To: apmail-felix-users-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 63E669CF9 for ; Tue, 27 Sep 2011 20:15:08 +0000 (UTC) Received: (qmail 5184 invoked by uid 500); 27 Sep 2011 20:15:07 -0000 Delivered-To: apmail-felix-users-archive@felix.apache.org Received: (qmail 5075 invoked by uid 500); 27 Sep 2011 20:15:07 -0000 Mailing-List: contact users-help@felix.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@felix.apache.org Delivered-To: mailing list users@felix.apache.org Received: (qmail 5066 invoked by uid 99); 27 Sep 2011 20:15:07 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 27 Sep 2011 20:15:07 +0000 X-ASF-Spam-Status: No, hits=-2.3 required=5.0 tests=RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of David.Humeniuk@l-3com.com designates 166.20.51.112 as permitted sender) Received: from [166.20.51.112] (HELO smtp2out.l-3com.com) (166.20.51.112) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 27 Sep 2011 20:14:59 +0000 X-filenames: X-filesizes: None X-filetypes: X-IronPort-AV: E=Sophos;i="4.67,597,1309737600"; d="scan'208";a="15262933" From: David.Humeniuk@L-3Com.com Received: from host-128-170-20-55.l-3com.com (HELO slxcg15.csw.l-3com.com) ([128.170.20.55]) by smtp2out.l-3com.com with ESMTP; 27 Sep 2011 20:14:37 +0000 Received: from novaxcg01.csw.l-3com.com ([128.170.153.19]) by slxcg15.csw.l-3com.com with Microsoft SMTPSVC(6.0.3790.4675); Tue, 27 Sep 2011 14:14:36 -0600 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-MimeOLE: Produced By Microsoft Exchange V6.5 Subject: RE: Gogo causing framework to shutdown Date: Tue, 27 Sep 2011 16:14:36 -0400 Message-ID: <8A69033E02ED29419B0F43AD421CEC3A014F429E@novaxcg01.csw.l-3com.com> In-Reply-To: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Gogo causing framework to shutdown Thread-Index: Acx9TzDaF2Qb32A4QDqOTexseMyIUwAApFAA References: <8A69033E02ED29419B0F43AD421CEC3A014F4297@novaxcg01.csw.l-3com.com><4E8210F6.3070001@ungoverned.org><8A69033E02ED29419B0F43AD421CEC3A014F4298@novaxcg01.csw.l-3com.com> To: X-OriginalArrivalTime: 27 Sep 2011 20:14:36.0901 (UTC) FILETIME=[14581950:01CC7D52] X-Virus-Checked: Checked by ClamAV on apache.org Thanks. I figured there was a way to do this. I'll let you know if I have any issues. On a related note, I'm looking for Javadocs of the Gogo API (not the implementation, but things like CommandProcessor). Do those exist anywhere? I'm behind a firewall so grabbing the source is a real pain, unless it can be downloaded as a zip :) David Humeniuk -----Original Message----- From: derek.baum@gmail.com [mailto:derek.baum@gmail.com] On Behalf Of Derek Baum Sent: Tuesday, September 27, 2011 3:53 PM To: users@felix.apache.org Subject: Re: Gogo causing framework to shutdown On 27 September 2011 19:17, wrote: > I'm using gogo 0.10.0 (command/runtime/shell). Framework 3.2.2. > > I'm starting it as: > > "java -jar bin/felix.jar &" > backgrounding a process causes its standard input to come from /dev/null (or it receives SIGSTOP when attempting to read stdin). bash behaves in exactly the same way: $ bash & [1] 81410 $ [1]+ Stopped bash You need to start gogo in non-interactive mode: g! gosh --help gosh - execute script with arguments in a new session args are available as session variables $1..$9 and $args. Usage: gosh [OPTIONS] [script-file [args..]] -c --command pass all remaining args to sub-shell --nointeractive don't start interactive session --login login shell (same session, reads etc/gosh_profile) -s --noshutdown don't shutdown framework when script completes -x --xtrace echo commands before execution -? --help show help If no script-file, an interactive shell is started, type $D to exit. $ java -Dgosh.args=3D--noi -jar bin/felix.jar & Derek > > OR > > Through SSH to executes a script on a remote machine. The script just > starts Java normally. > > If I run the script from within the remote shell, I don't see the > problem. > > David Humeniuk > > > -----Original Message----- > From: Richard S. Hall [mailto:heavy@ungoverned.org] > Sent: Tuesday, September 27, 2011 2:08 PM > To: users@felix.apache.org > Subject: Re: Gogo causing framework to shutdown > > On 9/27/11 1:27 PM, David.Humeniuk@L-3Com.com wrote: > > I'm trying to finally switch to using the Gogo shell instead of the > > Felix Shell TUI. However, when I run the application in the > background > > (no standard input), the Gogo shell cause the application to shut down > > immediately (prints "gosh: stopping framework). With the Felix Shell > > TUI, it would just print a message about no standard input, but > continue > > to run. Is there a way to keep Gogo from shutting things down? > > Which versions of everything are you using? > > How are you starting it? > > It is definitely possible to do this. > > -> richard > > > > > > > > > David Humeniuk > > > > Software Engineer > > > > L-3 Nova Engineering > > > > 4393 Digital Way > > > > Mason, Ohio 45040 > > > > 513-204-7628 (Direct) > > > > 513-204-7600 (Main) > > > > 513-204-8999 (Main Fax) > > > > www.L-3com.com/Nova > > > > > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@felix.apache.org > For additional commands, e-mail: users-help@felix.apache.org > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@felix.apache.org > For additional commands, e-mail: users-help@felix.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@felix.apache.org For additional commands, e-mail: users-help@felix.apache.org