delorie.com/archives/browse.cgi   search  
Mail Archives: geda-user/2024/04/30/07:32:59

X-Authentication-Warning: delorie.com: mail set sender to geda-user-bounces using -f
X-Recipient: geda-user AT delorie DOT com
Date: Tue, 30 Apr 2024 13:30:45 +0200 (CEST)
From: Roland Lutz <rlutz AT hedmen DOT org>
To: "Richard Rasker (rasker AT linetec DOT nl) [via geda-user AT delorie DOT com]" <geda-user AT delorie DOT com>
Subject: Re: [geda-user] Gschem refdes autonumber over multiple pages?
In-Reply-To: <a49f9288-9af4-4bd7-b8bb-f1f6c41fd01f@linetec.nl>
Message-ID: <87c7c457-5d38-6493-874d-ca55a5ec11f2@grinsen-ohne-katze.de>
References: <37de350c-1e5f-422f-b13a-c5a9a1e132ac AT linetec DOT nl> <20240429130455 DOT F01EF81AB8C5 AT turkos DOT aspodata DOT se> <a49f9288-9af4-4bd7-b8bb-f1f6c41fd01f AT linetec DOT nl>
MIME-Version: 1.0
Reply-To: geda-user AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: geda-user AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

Hi Richard,

On Tue, 30 Apr 2024, Richard Rasker (rasker AT linetec DOT nl) [via 
geda-user AT delorie DOT com] wrote:
> I guess there isn't an external command for saving the currently 
> opened files from the command line? Or is there? Then I could 
> incorporate it in my script, prior to updating the list.

there is the command-line option --control-fd= which takes an open file 
descriptor or the value "stdin" as an argument.  Via this file descriptor, 
the following commands can be used to control gschem:

> The following commands are supported:
>
>     visit FILE
>     save FILE
>     save-all
>     revert FILE
>     close FILE
>     patch-filename FILE PATCHFILE
>     import-patch FILE [PATCHFILE]
>     quit
>     help
> 
> 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.

Maybe this is what you are looking for?

Roland

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019