Search found 4 matches
- Thu Jun 08, 2017 5:55 pm
- Forum: Debian/Ubuntu
- Topic: List all packages with exec()
- Replies: 2
- Views: 4011
Re: List all packages with exec()
Probably something related to permissions. Web API works fine
- Thu Jun 08, 2017 5:17 pm
- Forum: Debian/Ubuntu
- Topic: List all packages with exec()
- Replies: 2
- Views: 4011
List all packages with exec()
I'm trying get a list of all available packages using PHP exec() but it returns only empty array: $cmd = '/usr/bin/sudo /usr/local/vesta/bin/v-list-user-packages json'; $return = 0; $output = array(); exec($cmd, $output, $return); print_r(json_decode(implode("\n", $output), true)); The same for anot...
- Sat Oct 22, 2016 7:23 am
- Forum: CLI
- Topic: Problem adding a new cron job
- Replies: 1
- Views: 5068
Problem adding a new cron job
Hello I'm trying to add a new cron job using the cli. It should call an external url once a hour v-add-cron-job admin 0 * * * * wget -O - http://test.com/tasks.php >/dev/null 2>&1 Or even v-add-cron-job admin 0 * * * * wget -O - http://test.com/tasks.php >/dev/null 2>&1 sudo service cron restart It ...
- Sat Oct 22, 2016 7:09 am
- Forum: CLI
- Topic: Add Cron from cli not working ?
- Replies: 3
- Views: 7598
Re: Add Cron from cli not working ?
Can you please post an example of working command? I've tried everything but still no luck