Difference between revisions of "OS4X plugin os4xplugin bzip2 decompress"

From OS4X
Jump to navigation Jump to search
 
Line 1: Line 1:
 
[[Category:Plugins]]
 
[[Category:Plugins]]
== Zweck ==
 
Testet jede einzelne Datei des Auftrags ob es eine per bzip2 komprimierte Datei ist. Im Erfolgsfall wird die Datei dekomprimiert. Falls die Datei nicht die Endung "<code>.bz2</code>" besitzt wird sie vor der Dekompression umbenannt. Falls die Datei die Endung "<code>.tbz</code>" erhält die dekomprimierte Datei die Endung "<code>.tar</code>".
 
  
== Voraussetzungen ==
+
== Purpose ==
 +
Tests each individual file in the job to see whether it is a file compressed using bzip2. If successful, the file will be decompressed. If the file does not have the ending "<code>.bz2</code>" it will be renamed before decompression. If the file has the ending "<code>.tbz</code>", the decompressed file will have the ending "<code>.tar</code>".
  
* Datei <code>/etc/os4x.conf</code> bzw. Konfigurationsdatei in der Umgebungsvariable <code>$OS4X_CFGFILE</code> definiert. Über die Datenbank, die hier konfiguriert ist, wird das temporäre Verzeichnis sowie das Lizenzfile bezogen.  
+
== Requirements ==
 +
* File <code>/etc/os4x.conf</code> or configuration file referenced by environment variable <code>$OS4X_CFGFILE</code>. The temporary directory and the license file are obtained via the database that is configured here.
  
== Konfiguration ==
+
== Configuration ==
 +
The program "<code>bzip2</code>" is searched for in the <code>PATH</code> of the shell under which the plugin is started. This means that the bzip2 version used can be influenced by clever positioning or definition of the default PATH.
  
Das Programm "<code>bzip2</code>" wird im <code>PATH</code> der Shell gesucht, unter der das Plugin gestartet wird. Somit kann durch geschickte Positionierung oder Definition des Default-PATHs die genutzte bzip2-Version beeinflusst werden.
+
== Return codes ==
 
+
*0: everything OK
== Rückgabewerte ==
+
*1: Number of parameters != 1; Config file <code>/etc/os4x.conf</code> not found; Config in database not readable; License not valid; XML file invalid
*0: alles OK
 
*1: Fehler beim Parsen des XMLs
 

Latest revision as of 08:59, 29 July 2024


Purpose

Tests each individual file in the job to see whether it is a file compressed using bzip2. If successful, the file will be decompressed. If the file does not have the ending ".bz2" it will be renamed before decompression. If the file has the ending ".tbz", the decompressed file will have the ending ".tar".

Requirements

  • File /etc/os4x.conf or configuration file referenced by environment variable $OS4X_CFGFILE. The temporary directory and the license file are obtained via the database that is configured here.

Configuration

The program "bzip2" is searched for in the PATH of the shell under which the plugin is started. This means that the bzip2 version used can be influenced by clever positioning or definition of the default PATH.

Return codes

  • 0: everything OK
  • 1: Number of parameters != 1; Config file /etc/os4x.conf not found; Config in database not readable; License not valid; XML file invalid