#2060 Problems with % character

1.200
closed
5
2005-04-27
2005-04-25
Anonymous
No

A ``%'' character in a cron job added with Webmin is automatically
escaped with a ``\''.

As a result, the cron job can't be executed.

When editing manually the crontab with crontab -e and removing the
escape characters, cron job works fine but webmin's crontab
interface does not display the entire line.

dob@xalp.org

Discussion

  • Nobody/Anonymous

    Logged In: NO

    PS: I run Webmin 1.200 on FreeBSD 5.3

     
  • Jamie Cameron

    Jamie Cameron - 2005-04-27

    Logged In: YES
    user_id=129364

    Escapeing the % character is necessary, as Cron uses it as
    the separator between a command and it's input. For example,
    a Cron job like :
    cat >/tmp/foo%hello world
    will write hello world to /tmp/foo . On my Linux system,
    putting a \ before the % to indicate a literal % in the
    command works fine ..

     
  • Jamie Cameron

    Jamie Cameron - 2005-04-27
    • status: open --> closed
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks