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

Liste des GroupesRevenir à ol misc 
Sujet : Re: Systemd ... Pass CL Params to Pgm ?
De : robin_listas (at) *nospam* es.invalid (Carlos E.R.)
Groupes : comp.os.linux.misc
Date : 12. Jun 2025, 22:43:25
Autres entêtes
Message-ID : <t8urhlxip3.ln2@Telcontar.valinor>
References : 1 2 3 4
User-Agent : Mozilla Thunderbird
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.

Date Sujet#  Auteur
12 Jun 25 * Systemd ... Pass CL Params to Pgm ?31c186282
12 Jun 25 +* Re: Systemd ... Pass CL Params to Pgm ?8Richard Kettlewell
12 Jun 25 i`* Re: Systemd ... Pass CL Params to Pgm ?7Lawrence D'Oliveiro
12 Jun 25 i `* Re: Systemd ... Pass CL Params to Pgm ?6c186282
12 Jun 25 i  `* Re: Systemd ... Pass CL Params to Pgm ?5Carlos E.R.
12 Jun 25 i   `* Re: Systemd ... Pass CL Params to Pgm ?4Lawrence D'Oliveiro
12 Jun 25 i    `* Re: Systemd ... Pass CL Params to Pgm ?3Carlos E.R.
13 Jun 25 i     +- Re: Systemd ... Pass CL Params to Pgm ?1Lawrence D'Oliveiro
13 Jun 25 i     `- Re: Systemd ... Pass CL Params to Pgm ?1c186282
12 Jun 25 `* Re: Systemd ... Pass CL Params to Pgm ?22Carlos E.R.
12 Jun 25  `* Re: Systemd ... Pass CL Params to Pgm ?21The Natural Philosopher
12 Jun 25   `* Re: Systemd ... Pass CL Params to Pgm ?20Carlos E.R.
12 Jun 25    `* Re: Systemd ... Pass CL Params to Pgm ?19Lawrence D'Oliveiro
12 Jun 25     +* Re: Systemd ... Pass CL Params to Pgm ?13Carlos E.R.
13 Jun 25     i+* Re: Systemd ... Pass CL Params to Pgm ?4Lawrence D'Oliveiro
13 Jun 25     ii+- Re: Systemd ... Pass CL Params to Pgm ?1c186282
13 Jun 25     ii`* Re: Systemd ... Pass CL Params to Pgm ?2candycanearter07
14 Jun 25     ii `- Re: Systemd ... Pass CL Params to Pgm ?1rbowman
13 Jun 25     i`* Re: Systemd ... Pass CL Params to Pgm ?8Richard Kettlewell
13 Jun 25     i `* Re: Systemd ... Pass CL Params to Pgm ?7Carlos E.R.
14 Jun 25     i  `* Re: Systemd ... Pass CL Params to Pgm ?6Lawrence D'Oliveiro
14 Jun 25     i   +- Re: Systemd ... Pass CL Params to Pgm ?1c186282
14 Jun 25     i   `* Re: Systemd ... Pass CL Params to Pgm ?4Carlos E.R.
15 Jun 25     i    `* Re: Systemd ... Pass CL Params to Pgm ?3Lawrence D'Oliveiro
16 Jun 25     i     `* Re: Systemd ... Pass CL Params to Pgm ?2Carlos E.R.
17 Jun 25     i      `- Re: Systemd ... Pass CL Params to Pgm ?1c186282
13 Jun 25     `* Re: Systemd ... Pass CL Params to Pgm ?5Marc Haber
13 Jun 25      `* Re: Systemd ... Pass CL Params to Pgm ?4Lawrence D'Oliveiro
13 Jun 25       `* Re: Systemd ... Pass CL Params to Pgm ?3Marc Haber
13 Jun 25        `* Re: Systemd ... Pass CL Params to Pgm ?2Lawrence D'Oliveiro
13 Jun 25         `- Re: Systemd ... Pass CL Params to Pgm ?1Marc Haber

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal