EnglishFrenchSpanish

Ad


OnWorks favicon

klone - Online in the Cloud

Run klone in OnWorks free hosting provider over Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

This is the command klone that can be run in the OnWorks free hosting provider using one of our multiple free online workstations such as Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

PROGRAM:

NAME


klone - KLone swiss army knife

SYNOPSIS


klone [klone_opts] [-c cmd] [cmd_opts] [cmd_args]

DESCRIPTION


klone performs two different tasks depending on the argument supplied to the -c switch:
import a site directory tree into the KLone building environment (i.e. the embedded file
system), or translate static and dynamic pages into C files.

The translation phase is rarely seen by the user since it is hidden in the Makefile of the
site building directory, i.e. ${KLONE_SRC_DIR}/site. Generally, the developer gets an
embedded version of his/her site by providing the following command sequence:

$ cd ${KLONE_SRC_DIR}/site
$ ../src/tools/klone/klone -c import ${SITE_BASE_DIR}
$ make

The latter make invocation calls 'klone -c translate' over the imported files to perform
the needed translation and registering (pre-linking).

Note that whenever a source file is added, removed or renamed, or in case the embedded
file system encrypting key changes, the import operation must be done again.

The subsequent phase, by which the embedded site is linked to the kloned server skeleton,
does not involve klone anymore. Nevertheless, the steps are illustrated here for
reference:

$ cd ${KLONE_SRC_DIR}
$ make

That's all.

OPTIONS


-h Display a brief help and exit.

-v Enable verbose mode.

-V Print klone version and exit.

COMMANDS


Translate:

klone -c translate -i infile -o outfile -u uri [-E] [-k keyfile] [-z]

Translate the active (i.e. a .klone file) or static page infile into C file outfile.

The -u option specifies the uri associated with the translated file.

The -E option tells klone to encrypt the file content with the key enclosed in the
supplied keyfile or in the environment variable KLONE_CIPHER_KEY using AES-256 CBC.

The contents of the translated files are compressed based on their MIME type if the -z
flag is given.

Import:

klone -c import [-b uri] [-e pattern] [-x pattern] [-k keyfile] [-Z pattern] [-z]
dir

Import the site tree starting at dir into the KLone building environment. The command
output comprises two makefiles (autogen.mk and autogen.dps) and the register.c file which
will gather the imported and translated site files. The latter file is the glue by which
the embedded site can afterwards be linked to the HTTP/S server.

When the -e flag is given, the files matching the specified pattern will be encrypted
using the key enclosed in the supplied keyfile or in the environment variable
KLONE_CIPHER_KEY.

The user can choose whether to compress all the imported files based on their MIME type,
using the -z flag, or to select a subset matching the supplied shell pattern.

If, while importing, you don't want to include a set of files you can use the -x argument
to provide the pattern of files you want to exclude.

Arguments -x, -Z and -e may be used more then once.

ENVIRONMENT


The following environment variable affects the execution of klone:

KLONE_CIPHER_KEY
If set, klone tries to read the embedded file system encryption key from it. It is
be overridden by the -k option.

DIAGNOSTICS


The klone utility exits with EXIT_SUCCESS on success, and with EXIT_FAILURE if an error
occurs.

Use klone online using onworks.net services


Free Servers & Workstations

Download Windows & Linux apps

  • 1
    Brackets
    Brackets
    Brackets is a free, modern open-source
    text editor made especially for Web
    Development. Written in HTML, CSS, and
    JavaScript with focused visual tools and
    prepr...
    Download Brackets
  • 2
    Free Pascal Compiler
    Free Pascal Compiler
    A 32/64/16-bit Pascal compiler for
    Win32/64/CE, Linux, Mac OS X/iOS,
    Android, FreeBSD, OS/2, Game Boy
    Advance, Nintendo NDS and DOS;
    semantically compatible wi...
    Download Free Pascal Compiler
  • 3
    Canon EOS DIGITAL Info
    Canon EOS DIGITAL Info
    Canon doesn�t have shutter count
    included on the EXIF information of an
    image file, as opposed to Nikon and
    Pentax. There�s no official Canon based
    application ...
    Download Canon EOS DIGITAL Info
  • 4
    rEFInd
    rEFInd
    rEFInd is a fork of the rEFIt boot
    manager. Like rEFIt, rEFInd can
    auto-detect your installed EFI boot
    loaders and it presents a pretty GUI
    menu of boot option...
    Download rEFInd
  • 5
    ExpressLuke GSI
    ExpressLuke GSI
    This SourceForge download page was to
    grant users to download my source built
    GSIs, based upon phhusson's great
    work. I build both Android Pie and
    Android 1...
    Download ExpressLuke GSI
  • 6
    Music Caster
    Music Caster
    Music Caster is a tray music player
    that lets you cast your local music to a
    Google Cast device. On the first run,
    you will need to click the arrow in your
    tas...
    Download Music Caster
  • More »

Linux commands

Ad