Groups | Search | Server Info | Keyboard shortcuts | Login | Register


Groups > comp.os.linux.misc > #68744

Re: Systemd ... Pass CL Params to Pgm ?

From "Carlos E.R." <robin_listas@es.invalid>
Newsgroups comp.os.linux.misc
Subject Re: Systemd ... Pass CL Params to Pgm ?
Date 2025-06-12 23:43 +0200
Message-ID <t8urhlxip3.ln2@Telcontar.valinor> (permalink)
References <kvSdnUB3_JBBGNf1nZ2dnZfqnPudnZ2d@giganews.com> <wwv4iwlfkoj.fsf@LkoBDZeT.terraraq.uk> <102e5qi$2jfop$2@dont-email.me> <jLacnTMgQdUhudb1nZ2dnZfqn_WdnZ2d@giganews.com>

Show all headers | View raw


On 2025-06-12 21:04, c186282 wrote:
> On 6/12/25 5:14 AM, Lawrence D'Oliveiro wrote:
>> On Thu, 12 Jun 2025 09:06:36 +0100, Richard Kettlewell wrote:

...

> [Unit]
> Description=nCam_Recorder
> 
> [Service]
> ExecStartPre=/bin/sleep 30
> ExecStart=python3 "/root/scripts/nCamOperate.py3 /home/nas/shar/VidBak/ 
> camz/nCam/ 3"

I don't think you need quotes.

Perhaps not even calling python directly, the script shebang should do it.

According to chatgpt, the correct syntax is:

ExecStart=/usr/bin/python3 /opt/myscripts/myscript.py arg1 arg2 --flag=value


-- 
Cheers, Carlos.

Back to comp.os.linux.misc | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

Systemd ... Pass CL Params to Pgm ? c186282 <c186282@nnada.net> - 2025-06-12 03:46 -0400
  Re: Systemd ... Pass CL Params to Pgm ? Richard Kettlewell <invalid@invalid.invalid> - 2025-06-12 09:06 +0100
    Re: Systemd ... Pass CL Params to Pgm ? Lawrence D'Oliveiro <ldo@nz.invalid> - 2025-06-12 09:14 +0000
      Re: Systemd ... Pass CL Params to Pgm ? c186282 <c186282@nnada.net> - 2025-06-12 15:04 -0400
        Re: Systemd ... Pass CL Params to Pgm ? "Carlos E.R." <robin_listas@es.invalid> - 2025-06-12 23:43 +0200
          Re: Systemd ... Pass CL Params to Pgm ? Lawrence D'Oliveiro <ldo@nz.invalid> - 2025-06-12 21:57 +0000
            Re: Systemd ... Pass CL Params to Pgm ? "Carlos E.R." <robin_listas@es.invalid> - 2025-06-13 00:58 +0200
              Re: Systemd ... Pass CL Params to Pgm ? Lawrence D'Oliveiro <ldo@nz.invalid> - 2025-06-13 01:05 +0000
              Re: Systemd ... Pass CL Params to Pgm ? c186282 <c186282@nnada.net> - 2025-06-12 23:59 -0400
  Re: Systemd ... Pass CL Params to Pgm ? "Carlos E.R." <robin_listas@es.invalid> - 2025-06-12 10:07 +0200
    Re: Systemd ... Pass CL Params to Pgm ? The Natural Philosopher <tnp@invalid.invalid> - 2025-06-12 10:58 +0100
      Re: Systemd ... Pass CL Params to Pgm ? "Carlos E.R." <robin_listas@es.invalid> - 2025-06-12 12:27 +0200
        Re: Systemd ... Pass CL Params to Pgm ? Lawrence D'Oliveiro <ldo@nz.invalid> - 2025-06-12 21:41 +0000
          Re: Systemd ... Pass CL Params to Pgm ? "Carlos E.R." <robin_listas@es.invalid> - 2025-06-13 00:59 +0200
            Re: Systemd ... Pass CL Params to Pgm ? Lawrence D'Oliveiro <ldo@nz.invalid> - 2025-06-13 01:06 +0000
              Re: Systemd ... Pass CL Params to Pgm ? c186282 <c186282@nnada.net> - 2025-06-12 23:41 -0400
              Re: Systemd ... Pass CL Params to Pgm ? candycanearter07 <candycanearter07@candycanearter07.nomail.afraid> - 2025-06-13 21:00 +0000
                Re: Systemd ... Pass CL Params to Pgm ? rbowman <bowman@montana.com> - 2025-06-13 23:27 +0000
            Re: Systemd ... Pass CL Params to Pgm ? Richard Kettlewell <invalid@invalid.invalid> - 2025-06-13 09:39 +0100
              Re: Systemd ... Pass CL Params to Pgm ? "Carlos E.R." <robin_listas@es.invalid> - 2025-06-13 13:13 +0200
                Re: Systemd ... Pass CL Params to Pgm ? Lawrence D'Oliveiro <ldo@nz.invalid> - 2025-06-13 23:38 +0000
                Re: Systemd ... Pass CL Params to Pgm ? c186282 <c186282@nnada.net> - 2025-06-14 01:16 -0400
                Re: Systemd ... Pass CL Params to Pgm ? "Carlos E.R." <robin_listas@es.invalid> - 2025-06-14 14:54 +0200
                Re: Systemd ... Pass CL Params to Pgm ? Lawrence D'Oliveiro <ldo@nz.invalid> - 2025-06-14 23:28 +0000
                Re: Systemd ... Pass CL Params to Pgm ? "Carlos E.R." <robin_listas@es.invalid> - 2025-06-16 12:24 +0200
                Re: Systemd ... Pass CL Params to Pgm ? c186282 <c186282@nnada.net> - 2025-06-17 01:08 -0400
          Re: Systemd ... Pass CL Params to Pgm ? Marc Haber <mh+usenetspam1118@zugschl.us> - 2025-06-13 07:29 +0200
            Re: Systemd ... Pass CL Params to Pgm ? Lawrence D'Oliveiro <ldo@nz.invalid> - 2025-06-13 05:36 +0000
              Re: Systemd ... Pass CL Params to Pgm ? Marc Haber <mh+usenetspam1118@zugschl.us> - 2025-06-13 08:48 +0200
                Re: Systemd ... Pass CL Params to Pgm ? Lawrence D'Oliveiro <ldo@nz.invalid> - 2025-06-13 06:53 +0000
                Re: Systemd ... Pass CL Params to Pgm ? Marc Haber <mh+usenetspam1118@zugschl.us> - 2025-06-13 10:05 +0200

csiph-web