X-Authentication-Warning: delorie.com: mail set sender to geda-user-bounces using -f X-Recipient: geda-user AT delorie DOT com X-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=majenko.co.uk; s=key1; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=XlOKFOyIvNQJQ/0WHxENl86mqVSrb9sdLyYDNkRgPpU=; b=WFhkRS6VGUzETn0YpFHGu5CXGshARsUkPBv7BHo8+CUJJe4dFKAUj0JG5CvOTs0o5b 5KJ+NaiSPWn7MsMwYGf77J87XNxqT35MOmtiQFpMpc8gYgg6pRV/4ndzADC084FmBwNP lGVY4AckdGyS6mOjAoEtC3qJrJ0YghCD8RlBs8rIVcv/h7p3TxO67OTnN9niaTqxBNA+ enQE7kaPBRW9hkii5C700/EpXJHJjeGajGMp4rGM+QzLCN7UqARx2IbyP6DVI0N0syqB OemDVgZlTXeXuH9QpPA7Z1NsToLaqKRU9ZwL9pDzD/77RYTx3gUBH43Y7TvNOK0aAm00 caHw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=XlOKFOyIvNQJQ/0WHxENl86mqVSrb9sdLyYDNkRgPpU=; b=kqM8ATF7uGGiK3l2zjF/K8Skcpt/O2ZjkArX6zbS1cMEz01hF/0KDUB422boEmWBu3 6QnClU2TPzKqJfOqOcqJWiEUrw8ZLgvwc01mlnTEoU9sJg0J3tCQvTXtnFRE7DmFzakC D+onmjzRx64k8hsELAc8q70/wCBFiKCqOoDr6hW26o1LftmhoHbYfU1ZDFzEHMt4lwmI kHngEQRZOkV8T9KPRJKEkVkcj7BCBG5/8RIHMoZ7gu14p/VPGozJy65DEeVcML882QFK EfHES3/O818A1BgDRBLCiFMAqgPumDauYWWnjM3Ro6D9uPKENX93tQaVbuhjiEXovk2b dcaQ== X-Gm-Message-State: APjAAAWnYLMXnXPtYaC1HSBgVVgu1zjHU0h4MTVuIcucBKszyuV6b5TL 4brdpfqQj7wlbXOZhNxIkQpVsIYPnLYecEXajOpnrTIx X-Google-Smtp-Source: APXvYqy3MPQwODDaCSbxKQO0UXl5s5RsjYUN/PnELqSa6UORUaNA7Lr/6zTUwe2naR+eYfWlHr4IQqVZ6gOoDyVbhEY= X-Received: by 2002:a2e:9a52:: with SMTP id k18mr8541369ljj.95.1567442884731; Mon, 02 Sep 2019 09:48:04 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: "Majenko Technologies (matt AT majenko DOT co DOT uk) [via geda-user AT delorie DOT com]" Date: Mon, 2 Sep 2019 17:47:53 +0100 Message-ID: Subject: Re: [geda-user] gschem interaction from external processes To: geda-user AT delorie DOT com Content-Type: multipart/alternative; boundary="00000000000059ba6f059194bc57" Reply-To: geda-user AT delorie DOT com --00000000000059ba6f059194bc57 Content-Type: text/plain; charset="UTF-8" On the face of it, that looks absolutely perfect. The patch files - would that work with gsch2pcb's .new.pcb file, or does it need to be a diff patch file format? On Mon, Sep 2, 2019 at 5:43 PM Roland Lutz wrote: > I just pushed what I've implemented so far. (Sorry, I should make a habit > of pushing more often.) > > The relevant code is in gschem/src/x_controlfd.c: > > > Remote-control gschem via a file descriptor. > > > > This feature allows project managers like Igor2's "genxproj" to issue > > certain actions in gschem. It is implemented as a plain text protocol > > and can be enabled via the command-line options `--control-fd=stdin' or > > `--control-fd=FD'. > > > > The following commands are currently supported: > > > > visit FILE > > save FILE > > save-all > > revert FILE > > close FILE > > patch-filename FILE PATCHFILE > > import-patch FILE [PATCHFILE] > > quit > > > > File paths must be absolute, except for patch filenames which are > > resolved relative to the main file. Arguments are separated by > > spaces; spaces and backslashes inside arguments must be escaped > > with a backslash. > > Does this provide what you need for your project management system? > > -- *Matt Jenkins* Majenko Technologies --00000000000059ba6f059194bc57 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On the face of it, that looks absolutely perfect.

=
The patch files - would that work with gsch2pcb's .new.pcb f= ile, or does it need to be a diff patch file format?

On Mon, Sep 2, 20= 19 at 5:43 PM Roland Lutz <rlutz AT hed= men.org> wrote:
I just pushed what I've implemented so far.=C2=A0 (Sorry, I shou= ld make a habit
of pushing more often.)

The relevant code is in gschem/src/x_controlfd.c:

> Remote-control gschem via a file descriptor.
>
> This feature allows project managers like Igor2's "genxproj&q= uot; to issue
> certain actions in gschem.=C2=A0 It is implemented as a plain text pro= tocol
> and can be enabled via the command-line options `--control-fd=3Dstdin&= #39; or
> `--control-fd=3DFD'.
>
> The following commands are currently supported:
>
>=C2=A0 =C2=A0 =C2=A0visit FILE
>=C2=A0 =C2=A0 =C2=A0save FILE
>=C2=A0 =C2=A0 =C2=A0save-all
>=C2=A0 =C2=A0 =C2=A0revert FILE
>=C2=A0 =C2=A0 =C2=A0close FILE
>=C2=A0 =C2=A0 =C2=A0patch-filename FILE PATCHFILE
>=C2=A0 =C2=A0 =C2=A0import-patch FILE [PATCHFILE]
>=C2=A0 =C2=A0 =C2=A0quit
>
> File paths must be absolute, except for patch filenames which are
> resolved relative to the main file.=C2=A0 Arguments are separated by <= br> > spaces; spaces and backslashes inside arguments must be escaped
> with a backslash.

Does this provide what you need for your project management system?



--
Matt Jenkins
Majenko= Technologies

--00000000000059ba6f059194bc57--