Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/takuya/php-atq-wrapper
atq/at/atrm command wrapper for php
https://github.com/takuya/php-atq-wrapper
Last synced: 21 days ago
JSON representation
atq/at/atrm command wrapper for php
- Host: GitHub
- URL: https://github.com/takuya/php-atq-wrapper
- Owner: takuya
- License: gpl-3.0
- Created: 2021-03-05T19:08:51.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2021-03-05T19:17:23.000Z (over 3 years ago)
- Last Synced: 2024-10-13T18:53:30.185Z (about 1 month ago)
- Language: PHP
- Size: 27.3 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# atq/at/atrm command php wrapper
'atq/at' scheduled job timer command line wrapper.
#### what is atq
atq/at is pre-installd majaor linux dist. alarm or scheduling timer run once at specified.
https://manpages.debian.org/jessie/at/at.1.en.html
## Install
```shell
composer require takuya/php-atq-wrapper
```## Samples
### add/show/remove atq job
```php
add( '+30days', 'echo Hello 2','s' );
$at_job->exists($id);// => true
$at_job->get_body( $id ); //=> /bin/sh body will be executed.
$at_job->remove($id); //=> cancel job.
```### list current queued jobs.
```php
queue() as $job) {
$job->id;
$job->start;
$job->q;
$job->user;
$job->body();
}```
### Cancel Jobs```php
queue('a') as $job) {
$job->remove();
}
```