CronJobs

  • Re;


    From my side, I don't see any problem with encoded URL:

    Files

    • encoded_url.png

      (160.28 kB, downloaded 103 times, last: )
    • crontab.png

      (50.75 kB, downloaded 100 times, last: )

    badge.php?id=1239063037&bid=2518&key=1747635596&format=png&z=547451206

  • Re;


    Ok, I've just received the cron notification. Problem confirmed. I'll investigate.


    badge.php?id=1239063037&bid=2518&key=1747635596&format=png&z=547451206

  • Re;


    Found the problem. Percent sign in crontab file must be escaped:


    LANG=C man 5 crontab

    Code
    1. ...
    2. Percent-signs (%) in the command, unless escaped with backslash (\), will be changed into newline characters, and all data after the first %
    3. will be sent to the command as standard input. There is no way to split a single command line onto multiple lines, like the shell's trailing "\".
    4. ...


    Will be fixed soon ;)

    badge.php?id=1239063037&bid=2518&key=1747635596&format=png&z=547451206

  • Re


    As a quick fix:


    Just before this line: https://github.com/i-MSCP/plug…/backend/CronJobs.pm#L432


    Add


    Perl
    1. $row->{'cron_job_command'} =~ s/%/\\%/g;


    Then, edit and save your cron job.


    After, that works as expected:



    Here, I get a 403 error surely because google don't like wget... ( see http://www.schirmacher.de/disp…earch+with+a+shell+script )

    badge.php?id=1239063037&bid=2518&key=1747635596&format=png&z=547451206

  • I maked a spanish (Argentina) translation to this plugin. Attached file here.


    And a sugestion. I think could be a great idea make "newbie: Intro to cron" link part of translation file, so, each translator can put link in they own language.


    For example: I can put this: http://www.linuxtotal.com.mx/?cont=info_admon_006



    SaludOS/2

    Files

    • es_AR.php.zip

      (3.71 kB, downloaded 30 times, last: )
  • @DAX


    Can you replace


    Code
    1. @translator Laurent Declercq (nuxwin) <[email protected]>


    with your own info?

    badge.php?id=1239063037&bid=2518&key=1747635596&format=png&z=547451206

  • Re;


    I've already committed the file. I'll just add your info ;)


    Thank for your contribution ;)

    badge.php?id=1239063037&bid=2518&key=1747635596&format=png&z=547451206

  • i-MSCP CronJobs plugin version 1.1.0 has just been released.


    Compatible with i-MSCP >= 1.1.21 ( plugin API >= 0.2.15 )


    CHANGELOG

    • Added: Mass permissions feature ( reseller level )
    • Added: Suspend feature ( admin and customer levels )
    • Changed: Plugin configuration is now lazy loaded ( backend )
    • Fixed: Warning from Dovecot about mountpoints which are no longer mounted
    • Fixed: Missing timezone data inside jailed cron environment
    • Fixed: No entropy gathering module inside jailed cron environment
    • Fixed: Percent-signs in cron commands must be escaped
    • Updated: License headers for new year
    • Updated: Translation files


    PLUGIN USAGE


    A small contribution for use of this plugin is requested by doing a donation on my paypal account ( [email protected] ). If you do not want to contribute, you should not use that plugin.

    badge.php?id=1239063037&bid=2518&key=1747635596&format=png&z=547451206