Re: Running command script on startup

2014-02-12 Thread Henryk Konsek
Hi Dan,

> echo list | bin/karaf
> works, though might not be what you're looking for.

I'm thinking more about etc/shell.init.script, but for container
startup (not shell startup).

Cheers.

---
Henryk Konsek
http://henryk-konsek.blogspot.com


Re: Running command script on startup

2014-02-12 Thread Henryk Konsek
> Check the etc/shell.init.script file

Almost there, Richard :) . I was wondering if I can execute script on
container startup, not on shell startup.

Thank you.

-- 
Henryk Konsek
http://henryk-konsek.blogspot.com


Re: Running command script on startup

2014-02-12 Thread Daniel McGreal
Hi Henryk,

With the right OS:

echo list | bin/karaf

works, though might not be what you’re looking for.

Dan.

On 12 Feb 2014, at 09:37, Henryk Konsek  wrote:

> Hi,
> 
> Is there a way to create a script with some Karaf shell commands that
> will be executed during the container startup?
> 
> Thank you in advance. Cheers.
> 
> -- 
> Henryk Konsek
> http://henryk-konsek.blogspot.com



Re: Running command script on startup

2014-02-12 Thread Richard Kettelerij
Hi Henryk,

Check the etc/shell.init.script file as described on
http://karaf.apache.org/manual/latest/developers-guide/scripting.html under
'startup'.

Kind regards,
Richard


On Wed, Feb 12, 2014 at 10:37 AM, Henryk Konsek  wrote:

> Hi,
>
> Is there a way to create a script with some Karaf shell commands that
> will be executed during the container startup?
>
> Thank you in advance. Cheers.
>
> --
> Henryk Konsek
> http://henryk-konsek.blogspot.com
>


Running command script on startup

2014-02-12 Thread Henryk Konsek
Hi,

Is there a way to create a script with some Karaf shell commands that
will be executed during the container startup?

Thank you in advance. Cheers.

-- 
Henryk Konsek
http://henryk-konsek.blogspot.com