Skip to content

JIghtuse/ccommand

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ccommand

C library to launch external commands

Cloning and building

git clone https://github.com/JIghtuse/ccommand.git /path/to/ccommand
mkdir /path/to/ccommand
cd /path/to/ccommand
mkdir build && cd build
cmake .. && make

Examples

Usage examples live in examples directory:

  • ping - simple example showing library initialization, usage, and cleanup.
  • sh - stupid shell written on C++ using ccommand.

Build instructions can be found in the following section and in the root CMakeLists.txt file.

Usage

ping.c can be downloaded, built and run like this:

$ mkdir /tmp/ping_example
$ cd /tmp/ping_example
$ curl -O https://raw.githubusercontent.com/JIghtuse/ccommand/master/examples/ping.c
$ CFLAGS=-I<path_to_ccommand>/include LDFLAGS="-L<path_to_ccommand>/build -lccommand" make ping
$ LD_LIBRARY_PATH=<path_to_ccommand>/build ./ping

Where <path_to_ccommand> is the same path as in Cloning and building section.

About

C library to launch external commands

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published