ospek/ospek-cli

run php file and command in background

1.0.1 2018-03-13 13:54 UTC

This package is not auto-updated.

Last update: 2024-04-28 03:19:53 UTC


README

Build Status

Install:

$ composer global require ospek/ospek-cli

or build

$ git clone https://github.com/os-pek/ospek-cli.git
$ cd ospek-cli
$ composer install
$ ./vendor/bin/box build
$ mv ospek.phar /local/bin/ospek

Start php in background:

$ ospek start <php file>

option:

  • --pid , -p : path file to store pid
  • --output, -o : path file to store output

Check pid status:

$ ospek status <pid>

option:

  • --file, -f : path file contain pid

Kill process:

$ ospek kill <pid>

option:

  • --file, -f : path file contain pid

Start other program:

$ ospek sh <'command'>

option:

  • --pid , -p : path file to store pid
  • --output, -o : path file to store output