supervision - discussion about system services, daemon supervision, init, runlevel management, and tools such as s6 and runit
 help / color / mirror / Atom feed
From: Charles Duffy <charles@dyfis.net>
To: billa chaitanya <billachaitanya@gmail.com>
Cc: Supervision Mailing List <supervision@list.skarnet.org>
Subject: Re: Source bash scripts in execline
Date: Tue, 15 Dec 2020 06:51:44 -0600	[thread overview]
Message-ID: <CAEHm_sgXatn4b-1VPdGnw-sihouOU1k5KymQd7do08kmLzsHZA@mail.gmail.com> (raw)
In-Reply-To: <CAH9hU4KyYGo1-U1yQegkoZX36_ktho3MQS1W+D-Lq+VfWbvPYg@mail.gmail.com>

[-- 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!
>

      reply	other threads:[~2020-12-15 12:51 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-12-15  8:41 billa chaitanya
2020-12-15 12:51 ` Charles Duffy [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAEHm_sgXatn4b-1VPdGnw-sihouOU1k5KymQd7do08kmLzsHZA@mail.gmail.com \
    --to=charles@dyfis.net \
    --cc=billachaitanya@gmail.com \
    --cc=supervision@list.skarnet.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).