<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://kb.sagedev.it/index.php?action=history&amp;feed=atom&amp;title=SYSTEME_From_ORDSYS</id>
	<title>SYSTEME From ORDSYS - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://kb.sagedev.it/index.php?action=history&amp;feed=atom&amp;title=SYSTEME_From_ORDSYS"/>
	<link rel="alternate" type="text/html" href="https://kb.sagedev.it/index.php?title=SYSTEME_From_ORDSYS&amp;action=history"/>
	<updated>2026-04-21T23:39:58Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.35.1</generator>
	<entry>
		<id>https://kb.sagedev.it/index.php?title=SYSTEME_From_ORDSYS&amp;diff=471&amp;oldid=prev</id>
		<title>217.194.179.250: /* Subprog SYSTEME(MACHINE,ORDRE,OPT,STAT) */</title>
		<link rel="alternate" type="text/html" href="https://kb.sagedev.it/index.php?title=SYSTEME_From_ORDSYS&amp;diff=471&amp;oldid=prev"/>
		<updated>2022-08-05T09:39:43Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Subprog SYSTEME(MACHINE,ORDRE,OPT,STAT)&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left diff-editfont-monospace&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 09:39, 5 August 2022&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l34&quot; &gt;Line 34:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 34:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  Value    Char    OPT()     : # Options !fs&amp;amp;b (conversationnel/fichier/silence/backround/backround dos)&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  Value    Char    OPT()     : # Options !fs&amp;amp;b (conversationnel/fichier/silence/backround/backround dos)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  Variable Integer STAT      : # = 0&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  Variable Integer STAT      : # = 0&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Esempio&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;pre&amp;gt;Local Integer YSTAT&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Call SYSTEME(&amp;quot;&amp;quot;,'c:\DIR\Comando.exe PARAM1 PARAM2',&amp;quot;&amp;quot;,YSTAT) From ORDSYS&amp;lt;/pre&amp;gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== EXECLI(COMMAND,RETOUR)From ORDSYS==&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== EXECLI(COMMAND,RETOUR)From ORDSYS==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>217.194.179.250</name></author>
	</entry>
	<entry>
		<id>https://kb.sagedev.it/index.php?title=SYSTEME_From_ORDSYS&amp;diff=59&amp;oldid=prev</id>
		<title>Mwadmin: Created page with &quot;Appunti  Chiamate per far eseguire dei comandi al sistema operativo  == Subprog SYSTEME2(MACHINE,ORDRE,OPT,STAT,RESULT) == Questa chiamata serve per eseguire un comando e recu...&quot;</title>
		<link rel="alternate" type="text/html" href="https://kb.sagedev.it/index.php?title=SYSTEME_From_ORDSYS&amp;diff=59&amp;oldid=prev"/>
		<updated>2019-05-31T08:15:06Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;Appunti  Chiamate per far eseguire dei comandi al sistema operativo  == Subprog SYSTEME2(MACHINE,ORDRE,OPT,STAT,RESULT) == Questa chiamata serve per eseguire un comando e recu...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Appunti&lt;br /&gt;
&lt;br /&gt;
Chiamate per far eseguire dei comandi al sistema operativo&lt;br /&gt;
&lt;br /&gt;
== Subprog SYSTEME2(MACHINE,ORDRE,OPT,STAT,RESULT) ==&lt;br /&gt;
Questa chiamata serve per eseguire un comando e recuperarne l'output nella variabile RESULT&lt;br /&gt;
 Call SYSTEME2(MACHINE,ORDRE,OPT,STAT,RESULT) From ORDSYS&lt;br /&gt;
&lt;br /&gt;
 Value    Char    MACHINE()&lt;br /&gt;
 Value    Char    ORDRE()   &lt;br /&gt;
 Value    Char    OPT()    &lt;br /&gt;
 Variable Integer STAT      : # = fstat1&lt;br /&gt;
 Variable Char    RESULT()()&lt;br /&gt;
&lt;br /&gt;
* MACHINE() Dove verrà eseguito il comando (se lasciato vuoto o se c'è l'opzione ! usa la macchina corrente)&lt;br /&gt;
&lt;br /&gt;
* ORDRE()&lt;br /&gt;
** ORDRE(0) comando da eseguire o nome del file contenente i comandi da eseguire se c'è l'opzione f&lt;br /&gt;
** ORDRE(1) eventuale file di log (se è indicato l'esecuzione sarà impostata come silenziosa, nel caso ci sia z tra le opzioni l'eventuale file già esistente viene azzerato)&lt;br /&gt;
&lt;br /&gt;
* OPT:  !fs&amp;amp;b (conversationnel/fichier/silence/backround/backround dos)&lt;br /&gt;
** se si contiene &amp;quot;!&amp;quot; (interattiva) il parametro MACHINE non sarà considerato: la macchina sarà obbligatoriamente quella corrente&lt;br /&gt;
** se contiene f c'è un file con i comandi da eseguire.&lt;br /&gt;
** se contiene s esegue in modalità silenziosa&lt;br /&gt;
** se contiene &amp;amp; esegue in modalità background&lt;br /&gt;
** se contiene b esegue in modalità background sotto dos (per esempio server batch)&lt;br /&gt;
&lt;br /&gt;
== Subprog SYSTEME(MACHINE,ORDRE,OPT,STAT) ==&lt;br /&gt;
 Call SYSTEME(MACHINE,ORDRE,OPT,STAT) From ORDSYS&lt;br /&gt;
&lt;br /&gt;
 Value    Char    MACHINE() : # Où sera exécuté l'ordre système&lt;br /&gt;
 Value    Char    ORDRE()   : # ORDRE(0) = ordre à exécuter ou nom d'un fichier de commande si option &amp;quot;f&amp;quot;&lt;br /&gt;
                            : # ORDRE(1) = fichier de trace éventuel&lt;br /&gt;
 Value    Char    OPT()     : # Options !fs&amp;amp;b (conversationnel/fichier/silence/backround/backround dos)&lt;br /&gt;
 Variable Integer STAT      : # = 0&lt;br /&gt;
&lt;br /&gt;
== EXECLI(COMMAND,RETOUR)From ORDSYS==&lt;br /&gt;
&lt;br /&gt;
Usa l'istruzione base Askui; esegue comando su client&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;Subprog EXECLI(COMMAND,RETOUR)&lt;br /&gt;
Value Char COMMAND&lt;br /&gt;
Variable Char RETOUR&lt;br /&gt;
Askui RETOUR=&amp;quot;&amp;quot; With  &amp;quot;UIAsk=&amp;quot;+chr$(1)+&amp;quot;AskExecShell&amp;quot;,&lt;br /&gt;
&amp;amp;                     &amp;quot;UILocalShell=&amp;quot;+chr$(1)+COMMAND&lt;br /&gt;
End&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== System ==&lt;br /&gt;
&lt;br /&gt;
E' l'istruzione base delle chiamate SYSTEME e SYSTEME2&lt;br /&gt;
&lt;br /&gt;
Per esempio, per aprire un pdf&lt;br /&gt;
 System '#@cmd /C start C:\&amp;quot;Documents and Settings&amp;quot;\User\&amp;quot;My Documents&amp;quot;\Tmp\test.pdf'&lt;br /&gt;
&lt;br /&gt;
== varie ==&lt;br /&gt;
dir$&lt;br /&gt;
adxdir$&lt;br /&gt;
adxpid &lt;br /&gt;
adxuid restituisce un identificativo univoco di ogni utente - sia di adonix che di una applicazione&lt;br /&gt;
adxtlk permette di conoscere il nome del file dei lock&lt;br /&gt;
Adxtct permette di conoscere il nome del file dei contatori&lt;br /&gt;
adxtms permette di conoscere il nome del file dei messaggi applicativi&lt;br /&gt;
adxmbm fissa il numero di memorie tampone (buffer) allocate alla memorizzazione dei messaggi applicativi&lt;br /&gt;
maxmen&lt;br /&gt;
mess&lt;br /&gt;
messname contiene il nome del file dei messaggi di sistema&lt;br /&gt;
errmes$ restituisce un messaggio di errore&lt;br /&gt;
errp permette di conoscere il nome del programma nel quale si è prodotto l'errore&lt;br /&gt;
errl permette di conoscere il numero di riga di un errore o di un'interruzione generata all'esecuzione di un programma Adonix&lt;br /&gt;
errn permette di conoscere il numero di un errore generato in un programma Adonix&lt;br /&gt;
errm permette di conoscere la seconda parte del messaggio di errore.&lt;br /&gt;
&lt;br /&gt;
'''actihgup''' permette di definire le azioni associate ad un'interruzione in caso di disconnessione.&lt;br /&gt;
actihgup(0) contiene il nome del programma chiamato in caso di time-out della sessione X3.&lt;br /&gt;
actihgup(1) contiene il nome del programma chiamato su interruzione volontaria (x rossa, o bottone &amp;quot;fine&amp;quot;), su una caduta accidentale della linea.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Onintgo permette di dichiarare in un programma l'etichetta in cui si svolgerà l'esecuzione dell'elaborazione dopo che si è premuto il tasto di interruzione.&lt;br /&gt;
Inter permette di rendere un programma arrestabile da tastiera o viceversa renderlo non arrestabile.&lt;br /&gt;
Un programma Adonix può essere interrotto nel corso della sua esecuzione premendo una sequenza di tasti chiamata 'sequenza di interruzione soft'. Si utilizza comunemente la sequenza di tasti &amp;lt;CTRL&amp;gt; + &amp;lt;ALT&amp;gt; + &amp;lt;Q&amp;gt; a tale scopo. Il tasto &amp;lt;Q&amp;gt; è definito di default nel file di configurazione X3.INI ed è modificabile.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Esiste una parametrizzazione relativa al time-out di una sessione X3: TIMEHGUP1 - TIMEHGUP2 - TIMEHGUP3&lt;br /&gt;
&lt;br /&gt;
filpath$&lt;br /&gt;
getenv$ permette di recuperare in una variabile di tipo Char il valore di una determinata variabile nell'ambiente che ha lanciato adonix.&lt;br /&gt;
Mess - Messname - Adxmbm - Adxtct - Adxtlk&lt;br /&gt;
&lt;br /&gt;
# Creazione di un file temporaneo univoco per l'utente    [L]LEFIC = filpath('tmp',num$(adxuid(2)),0)&lt;/div&gt;</summary>
		<author><name>Mwadmin</name></author>
	</entry>
</feed>