fr:code:system:process
Différences
Ci-dessous, les différences entre deux révisions de la page.
| Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente | ||
| fr:code:system:process [2012/03/23 15:59] – wismerheal | fr:code:system:process [2021/02/13 11:23] (Version actuelle) – modification externe 127.0.0.1 | ||
|---|---|---|---|
| Ligne 310: | Ligne 310: | ||
| === Arguments === | === Arguments === | ||
| - | - text - (string) | + | - text - (string) |
| - | - encoding - ([[en: | + | - encoding - ([[en: |
| - | === Returns | + | === Renvoie |
| - | * (Process) | + | * (Process) |
| ==== setWorkingDirectory ==== | ==== setWorkingDirectory ==== | ||
| - | Sets the working directory. This only works when the process is not already started. | + | Définit le dossier de travail. Cela ne fonctionne que sur les processus qui ne sont pas encore lancés. |
| - | === Syntax | + | === Syntaxe |
| <code javascript> | <code javascript> | ||
| myObject.setWorkingDirectory(workingDirectory); | myObject.setWorkingDirectory(workingDirectory); | ||
| Ligne 325: | Ligne 325: | ||
| === Arguments === | === Arguments === | ||
| - | - workingDirectory - (string) | + | - workingDirectory - (string) |
| - | === Returns | + | === Renvoie |
| - | * (Process) | + | * (Process) |
| ==== setProcessChannelMode ==== | ==== setProcessChannelMode ==== | ||
| - | Sets process' | + | Définit le mode du " |
| - | === Syntax | + | === Syntaxe |
| <code javascript> | <code javascript> | ||
| myObject.setProcessChannelMode(channelMode); | myObject.setProcessChannelMode(channelMode); | ||
| Ligne 339: | Ligne 339: | ||
| === Arguments === | === Arguments === | ||
| - | - channelMode - ([[# | + | - channelMode - ([[# |
| - | === Returns | + | === Renvoie |
| - | * (Process) | + | * (Process) |
| ==== setEnvironment ==== | ==== setEnvironment ==== | ||
| - | Sets the process' | + | Définit les variables |
| - | === Syntax | + | === Syntaxe |
| <code javascript> | <code javascript> | ||
| myObject.setEnvironment(environment); | myObject.setEnvironment(environment); | ||
| Ligne 353: | Ligne 353: | ||
| === Arguments === | === Arguments === | ||
| - | - environment - (object) | + | - environment - (object) |
| - | === Returns | + | === Renvoie |
| - | * (Process) | + | * (Process) |
| === Example === | === Example === | ||
| Ligne 367: | Ligne 367: | ||
| ==== updateEnvironment ==== | ==== updateEnvironment ==== | ||
| - | Updates the process' | + | Met à jour les variables |
| - | === Syntax | + | === Syntaxe |
| <code javascript> | <code javascript> | ||
| myObject.updateEnvironment(environment); | myObject.updateEnvironment(environment); | ||
| Ligne 375: | Ligne 375: | ||
| === Arguments === | === Arguments === | ||
| - | - environment - (object) | + | - environment - (object) |
| === Returns === | === Returns === | ||
| - | * (Process) | + | * (Process) |
| === Example === | === Example === | ||
| Ligne 389: | Ligne 389: | ||
| ==== setReadChannel ==== | ==== setReadChannel ==== | ||
| - | Sets process' | + | Définit le "channel" du processus à lire. |
| - | === Syntax | + | === Syntaxe |
| <code javascript> | <code javascript> | ||
| myObject.setReadChannel(channel); | myObject.setReadChannel(channel); | ||
| Ligne 397: | Ligne 397: | ||
| === Arguments === | === Arguments === | ||
| - | - channel - ([[# | + | - channel - ([[# |
| - | === Returns | + | === Renvoie |
| - | * (Process) | + | * (Process) |
| ==== setStandardErrorFile ==== | ==== setStandardErrorFile ==== | ||
| - | Sets the standard | + | Définit le fichier d' |
| - | === Syntax | + | === Syntaxe |
| <code javascript> | <code javascript> | ||
| myObject.setStandardErrorFile(fileName); | myObject.setStandardErrorFile(fileName); | ||
| Ligne 414: | Ligne 414: | ||
| === Arguments === | === Arguments === | ||
| - | - fileName - (string) | + | - fileName - (string) |
| - | - channel - ([[# | + | - channel - ([[# |
| - | === Returns | + | === Renvoie |
| - | * (Process) | + | * (Process) |
| ==== setStandardInputFile ==== | ==== setStandardInputFile ==== | ||
| - | Sets the standard | + | Définit le fichier d' |
| - | === Syntax | + | === Syntaxe |
| <code javascript> | <code javascript> | ||
| myObject.setStandardInputFile(fileName); | myObject.setStandardInputFile(fileName); | ||
| Ligne 429: | Ligne 429: | ||
| === Arguments === | === Arguments === | ||
| - | - fileName - (string) | + | - fileName - (string) |
| - | === Returns | + | === Renvoie |
| - | * (Process) | + | * (Process) |
| ==== setStandardOutputFile ==== | ==== setStandardOutputFile ==== | ||
| - | Sets the standard | + | Définit le fichier de sortie |
| - | === Syntax | + | === Syntaxe |
| <code javascript> | <code javascript> | ||
| myObject.setStandardOutputFile(fileName); | myObject.setStandardOutputFile(fileName); | ||
| Ligne 446: | Ligne 446: | ||
| === Arguments === | === Arguments === | ||
| - | - fileName - (string) | + | - fileName - (string) |
| - | - channel - ([[# | + | - channel - ([[# |
| - | === Returns | + | === Renvoie |
| - | * (Process) | + | * (Process) |
| ==== setStandardOutputProcess ==== | ==== setStandardOutputProcess ==== | ||
| - | Sets the standard | + | Définit la sortie |
| - | === Syntax | + | === Syntaxe |
| <code javascript> | <code javascript> | ||
| myObject.setStandardOutputFile(process); | myObject.setStandardOutputFile(process); | ||
| Ligne 461: | Ligne 461: | ||
| === Arguments === | === Arguments === | ||
| - | - process - (Process) | + | - process - (Process) |
| - | === Returns | + | === Renvoie |
| - | * (Process) | + | * (Process) |
| === Exceptions === | === Exceptions === | ||
| - | * (InvalidProcessError) | + | * (InvalidProcessError) |
| ==== waitForFinished ==== | ==== waitForFinished ==== | ||
| - | Freezes the execution until the process has finished. | + | Gèle l' |
| - | === Syntax | + | === Syntaxe |
| <code javascript> | <code javascript> | ||
| myObject.waitForFinished(waitTime); | myObject.waitForFinished(waitTime); | ||
| Ligne 481: | Ligne 481: | ||
| === Arguments === | === Arguments === | ||
| - | - waitTime - (integer) | + | - waitTime - (integer) |
| - | === Returns | + | === Renvoie |
| - | * (Process) | + | * (Process) |
| === Exceptions === | === Exceptions === | ||
| - | * (WaitForFinishedError) | + | * (WaitForFinishedError) |
| ==== waitForStarted ==== | ==== waitForStarted ==== | ||
| - | Freezes the execution until the process has started. | + | Gèle l' |
| - | === Syntax | + | === Syntaxe |
| <code javascript> | <code javascript> | ||
| myObject.waitForStarted(waitTime); | myObject.waitForStarted(waitTime); | ||
| Ligne 501: | Ligne 501: | ||
| === Arguments === | === Arguments === | ||
| - | - waitTime - (integer) | + | - waitTime - (integer) |
| - | === Returns | + | === Renvoie |
| - | * (Process) | + | * (Process) |
| === Exceptions === | === Exceptions === | ||
| - | * (WaitForStartedError) | + | * (WaitForStartedError) |
| ==== waitForBytesWritten ==== | ==== waitForBytesWritten ==== | ||
| - | Freezes the execution until the data has been written. | + | Gèle l' |
| - | === Syntax | + | === Syntaxe |
| <code javascript> | <code javascript> | ||
| myObject.waitForBytesWritten(waitTime); | myObject.waitForBytesWritten(waitTime); | ||
| Ligne 521: | Ligne 521: | ||
| === Arguments === | === Arguments === | ||
| - | - waitTime - (integer) | + | - waitTime - (integer) |
| - | === Returns | + | === Renvoie |
| - | * (Process) | + | * (Process) |
| === Exceptions === | === Exceptions === | ||
| - | * (WaitForBytesWrittenError) | + | * (WaitForBytesWrittenError) |
| ==== waitForReadyRead ==== | ==== waitForReadyRead ==== | ||
| - | Freezes the execution until data is available. | + | Gèle l' |
| - | === Syntax | + | === Syntaxe |
| <code javascript> | <code javascript> | ||
| myObject.waitForReadyRead(waitTime); | myObject.waitForReadyRead(waitTime); | ||
| Ligne 541: | Ligne 541: | ||
| === Arguments === | === Arguments === | ||
| - | - waitTime - (integer) | + | - waitTime - (integer) |
| - | === Returns | + | === Renvoie |
| - | * (Process) | + | * (Process) |
| === Exceptions === | === Exceptions === | ||
| - | * (WaitForReadyReadError) | + | * (WaitForReadyReadError) |
| ==== close ==== | ==== close ==== | ||
| - | Tries to close the process gracefully. | + | Tente de fermer le processus de manière élégante. |
| - | === Syntax | + | === Syntaxe |
| <code javascript> | <code javascript> | ||
| myObject.close(); | myObject.close(); | ||
| </ | </ | ||
| - | === Returns | + | === Renvoie |
| - | * (Process) | + | * (Process) |
| ==== kill ==== | ==== kill ==== | ||
| - | Kills the process. | + | Kill (me baby!) le processus. |
| - | === Syntax | + | === Syntaxe |
| <code javascript> | <code javascript> | ||
| myObject.kill(); | myObject.kill(); | ||
| </ | </ | ||
| - | === Returns | + | === Renvoie |
| - | * (Process) | + | * (Process) |
| ==== terminate ==== | ==== terminate ==== | ||
| - | Terminates the process. | + | Met fin au processus. |
| - | === Syntax | + | === Syntaxe |
| <code javascript> | <code javascript> | ||
| myObject.terminate(); | myObject.terminate(); | ||
| </ | </ | ||
| - | === Returns | + | === Renvoie |
| - | * (Process) | + | * (Process) |
| Ligne 588: | Ligne 588: | ||
| - | ===== Events | + | ===== Évènements |
| ==== onError ==== | ==== onError ==== | ||
| - | Called when an error occured. | + | Appelé quand une erreur survient. |
| - | === Syntax | + | === Syntaxe |
| <code javascript> | <code javascript> | ||
| myObject.onError = function(processError) {}; | myObject.onError = function(processError) {}; | ||
| Ligne 599: | Ligne 599: | ||
| === Arguments === | === Arguments === | ||
| - | - processError - ([[# | + | - processError - ([[# |
| === Example === | === Example === | ||
| Ligne 610: | Ligne 610: | ||
| ==== onFinished ==== | ==== onFinished ==== | ||
| - | Called when the process has finished. | + | Appelé quand le processus s'est terminé. |
| - | === Syntax | + | === Syntaxe |
| <code javascript> | <code javascript> | ||
| myObject.onFinished = function(exitCode, | myObject.onFinished = function(exitCode, | ||
| Ligne 618: | Ligne 618: | ||
| === Arguments === | === Arguments === | ||
| - | - exitCode - (integer) | + | - exitCode - (integer) |
| - | - exitStatus - ([[# | + | - exitStatus - ([[# |
| === Example === | === Example === | ||
| Ligne 629: | Ligne 629: | ||
| </ | </ | ||
| - | ==== onReadyReadStandardError ==== | + | ==== onReadyReadStandardError ==== (au scrabble ça fait un carton :) ) |
| - | Called when there is data available on the standard | + | Appelé quand il n'y a pas de données disponibles sur l' |
| - | === Syntax | + | === Syntaxe |
| <code javascript> | <code javascript> | ||
| myObject.onReadyReadStandardError = function() {}; | myObject.onReadyReadStandardError = function() {}; | ||
| Ligne 646: | Ligne 646: | ||
| ==== onReadyReadStandardOutput ==== | ==== onReadyReadStandardOutput ==== | ||
| - | Called when there is data available on the standard | + | Appelé quand il n'y a pas de données disponible sur la sortie |
| - | === Syntax | + | === Syntaxe |
| <code javascript> | <code javascript> | ||
| myObject.onReadyReadStandardOutput = function() {}; | myObject.onReadyReadStandardOutput = function() {}; | ||
| Ligne 662: | Ligne 662: | ||
| ==== onStarted ==== | ==== onStarted ==== | ||
| - | Called when the process has started executing. | + | Appelé quand le processus a commencé sont exécution. |
| - | === Syntax | + | === Syntaxe |
| <code javascript> | <code javascript> | ||
| myObject.onStarted = function() {}; | myObject.onStarted = function() {}; | ||
| Ligne 678: | Ligne 678: | ||
| ==== onStateChanged ==== | ==== onStateChanged ==== | ||
| - | Called when the process' | + | Appelé quans le statut du processus a changé. |
| - | === Syntax | + | === Syntaxe |
| <code javascript> | <code javascript> | ||
| myObject.onStateChanged = function(newState) {}; | myObject.onStateChanged = function(newState) {}; | ||
| Ligne 686: | Ligne 686: | ||
| === Arguments === | === Arguments === | ||
| - | - newState - ([[# | + | - newState - ([[# |
| === Example === | === Example === | ||
| Ligne 699: | Ligne 699: | ||
| ==== ProcessError ==== | ==== ProcessError ==== | ||
| - | A process error. | + | Une erreur de processus. |
| - | === Values | + | === Valeurs |
| - | - FailedToStart: | + | - FailedToStart: |
| - | - Crashed: | + | - Crashed: |
| - | - Timedout: | + | - Timedout: |
| - | - WriteError: | + | - WriteError: |
| - | - ReadError: | + | - ReadError: |
| - | - UnknownError: | + | - UnknownError: |
| ==== ExitStatus ==== | ==== ExitStatus ==== | ||
| - | The process' | + | Le statut de sortie. |
| - | === Values | + | === Valeurs |
| - | - NormalExit: | + | - NormalExit: |
| - | - CrashExit: | + | - CrashExit: |
| ==== ProcessState ==== | ==== ProcessState ==== | ||
| - | The process' | + | Le statut du processus. |
| - | === Values | + | === Valeurs |
| - | - NotRunning: | + | - NotRunning: |
| - | - Starting: | + | - Starting: |
| - | - Running: | + | - Running: |
| ==== ProcessChannel ==== | ==== ProcessChannel ==== | ||
| - | A process' | + | Un "channel" de processus. |
| - | === Values | + | === Valeurss |
| - | - StandardOutput: | + | - StandardOutput: |
| - | - StandardError: | + | - StandardError: |
| ==== ProcessChannelMode ==== | ==== ProcessChannelMode ==== | ||
| - | A process' | + | Un mode de " |
| - | === Values | + | === Valeurs |
| - | - SeparateChannels: | + | - SeparateChannels: |
| - | - MergedChannels: | + | - MergedChannels: |
| - | - ForwardedChannels: | + | - ForwardedChannels: |
| ==== OpenMode ==== | ==== OpenMode ==== | ||
| - | A process's channel | + | Un mode d'ouverture de "channel" de processus. |
| - | === Values | + | === Valeurs |
| - | - ReadOnly: | + | - ReadOnly: |
| - | - WriteOnly: | + | - WriteOnly: |
| - | - ReadWrite: | + | - ReadWrite: |
| - | - Truncate: | + | - Truncate: |
| - | - Text: process | + | - Text: "channel" de processus ouvert en mode texte |
| - | - Unbuffered: | + | - Unbuffered: |
fr/code/system/process.1332518380.txt.gz · Dernière modification : (modification externe)
