supervision - discussion about system services, daemon supervision, init, runlevel management, and tools such as s6 and runit
 help / color / mirror / Atom feed
* Source bash scripts in execline
@ 2020-12-15  8:41 billa chaitanya
  2020-12-15 12:51 ` Charles Duffy
  0 siblings, 1 reply; 2+ messages in thread
From: billa chaitanya @ 2020-12-15  8:41 UTC (permalink / raw)
  To: supervision

[-- Attachment #1: Type: text/plain, Size: 324 bytes --]

Hi Team,
In execline, How to do sourcing of bash script which contains small functions.
envfile can be used to source variables. Since the script has some
functions, I'm not sure how to handle this.
"Source" is not working. Is there any other way i can source the bash
script which contains functions in execline ?

Thanks!

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Source bash scripts in execline
  2020-12-15  8:41 Source bash scripts in execline billa chaitanya
@ 2020-12-15 12:51 ` Charles Duffy
  0 siblings, 0 replies; 2+ messages in thread
From: Charles Duffy @ 2020-12-15 12:51 UTC (permalink / raw)
  To: billa chaitanya; +Cc: Supervision Mailing List

[-- Attachment #1: Type: text/plain, Size: 691 bytes --]

Shell functions can only be sourced into a shell interpreter; execline is
not a shell interpreter.

You can, of course, have execline exec a shell, passing it a script that
tells it to source your file before running whatever code requires the
functions provided.

On Tue, Dec 15, 2020 at 2:42 AM billa chaitanya <billachaitanya@gmail.com>
wrote:

> Hi Team,
> In execline, How to do sourcing of bash script which contains small
> functions.
> envfile can be used to source variables. Since the script has some
> functions, I'm not sure how to handle this.
> "Source" is not working. Is there any other way i can source the bash
> script which contains functions in execline ?
>
> Thanks!
>

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-12-15 12:51 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-15  8:41 Source bash scripts in execline billa chaitanya
2020-12-15 12:51 ` Charles Duffy

supervision - discussion about system services, daemon supervision, init, runlevel management, and tools such as s6 and runit

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://inbox.vuxu.org/supervision

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V1 supervision supervision/ http://inbox.vuxu.org/supervision \
		subscribe@list.skarnet.org
	public-inbox-index supervision

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://inbox.vuxu.org/vuxu.archive.supervision.general


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git