Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index
  • Search

Search found 4 matches

Go to advanced search

Advanced search
Search found 4 matches • Page 1 of 1
by ymakux
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
  • Jump to post
by ymakux
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...
  • Jump to post
by ymakux
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 ...
  • Jump to post
by ymakux
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
  • Jump to post

Search found 4 matches • Page 1 of 1

Go to advanced search



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password