Gogo uses the gosh_profile file to do some work at shell session startup and this is where it displays its motd.

I believe you can override the gosh_profile file by putting it in an etc/ directory either in user.dir or whichever directory you set via gosh.home config property.

So, you could just modify the default gosh_profile to print your banner.

Alternatively, if you don't mind having a special build for the Gogo bundle, just edit its motd resource and then rebuild.

-> richard

On 1/8/13 12:12 , Andreas Sewe wrote:
Hi,

I am looking for a way to display a banner at (or shortly after) the
time Gogo shell starts up? Is there a way to achieve this effect?

The only (admittedly) horrible hack I can imagine is to print something
to System.out in my autostarted bundle's BundleActivator.start(..). But
that of course doesn't go through the official channel, i.e., the
current CommandSession. Maybe there is a way to obtain said session and
output the banner that way?

Any help would be greatly appreciated.

Andreas


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to