Skip to content

cli tools to run php and other program in background

License

Notifications You must be signed in to change notification settings

cirebon-dev/ospek-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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