1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

Bug - domain cron jobs are useless can't use hardly any system commands :(

Discussion in 'Plesk 10.x for Linux Issues, Fixes, How-To' started by 105547111, Feb 23, 2011.

  1. 105547111

    105547111 Silver Pleskian

    32
    30%
    Joined:
    Jul 13, 2006
    Messages:
    643
    Likes Received:
    2
    Cron for plesk 10 has changed completely from all previous versions.

    Before you could schedule a job to use any file on the system like date, cp, wget, curl, and heaps more.

    Now it's useless as the cron is jailed inside the domain. Previously you could only write / edit / delete within the domain that is how it should be.

    So what use are domain cron jobs except for really useless tasks?

    We had scripts that used curl to login and fetch files for. The various sites, then use date to rename the files with the date and time, etc. Even some cat and grep on text files.

    Because of this we had to re write all our scripts to run as root.

    That works but now we have to add chown, chcon to all the damn outputs as they are owned by root.

    Why was the functionality changed like this?, it's rendered domain tasks useless.
     
  2. toomanylogins

    toomanylogins Basic Pleskian

    25
    73%
    Joined:
    Feb 9, 2009
    Messages:
    63
    Likes Received:
    0
    Hello

    I have been trying to wget to run in a scheduled task to run a backup php script. Are you saying this will not work ?
     
  3. 105547111

    105547111 Silver Pleskian

    32
    30%
    Joined:
    Jul 13, 2006
    Messages:
    643
    Likes Received:
    2
    You have to run as root. If the data is then to go onto a web page on the server you will have to chown and change the selinux owner.
     
Loading...