cron as cmd

Discussion in 'Installation/Configuration' started by jbmd, Sep 8, 2015.

  1. jbmd

    jbmd Member

    I installed several cron jobs via ispconfig webadmin using php exec("shell commands").
    I just put http address to the last line in cron form in webadmin and it works.

    However, I would prefer to use classic shell scripts located outside of web directory. But I always failed:
    a) cron in webadmin: /path/to/the/
    in only tar command
    result: nothing

    b) cron in webadmin: /bin/sh /path/to/the/
    in only tar command or with PATH=$PATH: /path/to/the
    result: nothing

    Please, I am desperate, I do not want to run cron jobs from web directories.

    Thank you.
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    You have to differntiate if its a full cron job or a jailed cron job (see client limit settings). Jailed crin jobs limit the cron command to the website root diredtory and you can only run commands that are installed inside the jail and all paths are relative to the web root dir.

Share This Page