When resaving a cron job a / is added

When editing a cron job a back slash () is added to the 'Command' and to the 'Description'.

Status: 
Closed (fixed)

Comments

Could you give us an example of the exact command this is happening for?

pixel_paul's picture
Submitted by pixel_paul on Thu, 01/28/2010 - 04:37 Pro Licensee

the command is:

php /home/mailout/public_html/_site/send_messages.php

Ok, that looks fine to me ..

What does it get transformed to after saving?

Also, did you enter anything in the "Input to command" box?

pixel_paul's picture
Submitted by pixel_paul on Fri, 01/29/2010 - 03:36 Pro Licensee

transformed into:

php /home/mailout/public_html/_site/send_messages.php \

Nothing entered into "Input to command" box.

If, for example I were to save it again you get:

php /home/mailout/public_html/_site/send_messages.php \ \

It looks like an escaping issue as if I put two words into the "description" box, and then save the job, I get Cron\ job

You are right, this looks like an escaping issue ..

Which browser are you using there?

pixel_paul's picture
Submitted by pixel_paul on Mon, 02/01/2010 - 03:02 Pro Licensee

I'm using Firefox 3.6 on Windows Vista.

Wierd, I just can't re-produce this.

Does this happen for all cron jobs, or just that one?

pixel_paul's picture
Submitted by pixel_paul on Fri, 02/05/2010 - 05:58 Pro Licensee

This is happening on just this one cron job.

when i recreate the cron job i cant reproduce it.

All I can guess is that there is a hidden character in the cron job command, like a null byte. I'd suggest just deleting and re-creating it.

pixel_paul's picture
Submitted by pixel_paul on Tue, 02/09/2010 - 09:00 Pro Licensee

deleted the job and re-added. no trailing \

Ok .. I think we can close this bug then.

I am actually experiencing this exact same thing as well. I've deleted the cron job and recreated it from scratch with no copy/pasting. Same issue. Each time I save it adds a new trailing "\" after the cron job command. /usr/bin/php5 -q /home/xxx/public_html/cron_bs.php --run=/cron/test --server=www.xxx.com becomes /usr/bin/php5 -q /home/xxx/public_html/cron_bs.php --run=/cron/test --server=www.xxx.com \ and then resaving adds an extra space and another slash like /usr/bin/php5 -q /home/xxx/public_html/cron_bs.php --run=/cron/test --server=www.xxx.com \ \

Another similar issue is happening with the description. Any place there is a space it appears to escape it, and then reescapes upon each save adding new slashes.

So if I enter "Cron test" for the description and save I get "Cron\ test". If I save again without doing anything, I get "Cron\\ test".

VM 4.01 pro

Tried in Firefox and also Chrome, same results creating the job from scratch manually typing it in

For those who are seeing this issue - which Linux distribution and version are you running?

Actually, I see the bug here now - it only triggers for cron jobs that have a date range set.

This will be fixed in the next webmin release.

Automatically closed -- issue fixed for 2 weeks with no activity.

Automatically closed -- issue fixed for 2 weeks with no activity.