Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Commands with ; and # should be able to execute #4

Closed
kirtangajjar opened this issue Jul 20, 2018 · 4 comments
Closed

Commands with ; and # should be able to execute #4

kirtangajjar opened this issue Jul 20, 2018 · 4 comments
Labels
bug Something isn't working

Comments

@kirtangajjar
Copy link
Contributor

kirtangajjar commented Jul 20, 2018

Currently we can't accept commands which have ; or # since our cron scheduler ofelia uses INI sytle config in which everything after ; or # is considered comment.

We have placed validation on it. But such commands are expected to work out of box and hence we must find a workaround

@rahul286
Copy link
Member

@kirtangajjar can we use quotes or escaping?

Like "touch /tmp/a.txt ; touch /tmp/b.txt"
or touch /tmp/a.txt \; touch /tmp/b.txt

@kirtangajjar
Copy link
Contributor Author

It didn't work with single quote. Let me try with double quote and check

@mbtamuli
Copy link
Contributor

I will take a look at ofelia's code and try to see if we can make some modifications to be able to read the acceptable shell commands.

@mbtamuli mbtamuli added the bug Something isn't working label Jul 27, 2018
@mbtamuli
Copy link
Contributor

This is being tracked in #10

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants