alseambusher / crontab-ui

Easy and safe way to manage your crontab file
https://lifepluslinux.blogspot.com/2015/06/crontab-ui-easy-and-safe-way-to-manage.html
MIT License
2.85k stars 476 forks source link

Log commands and use Environment Variables when using running commands manually #137

Closed AndreiArdelean1 closed 3 years ago

AndreiArdelean1 commented 3 years ago

When running a command manually from the UI it is not logged to file, only to crontab-ui stdout. Also, the Environment Variables are not passed to the command.

tuxuday5 commented 3 years ago

You mean 'Run Now'? This doesn't seem to use cron. That's why its not logging to any files. If you want in logs, have to do it explicitly.

AndreiArdelean1 commented 3 years ago

Yes, 'run now' doesn't use crontab, but even so, it should use the environment variables and should log the output otherwise the crontab and the 'run now' would have different behaviors.

tuxuday5 commented 3 years ago

Agree with environment vars. For o/p you can do the re-direction by yourself and check. Will look into env vars and check whether it can be fixed quickly! But please do clarify what you mean by environment vars.

tuxuday5 commented 3 years ago

Ignore. See that you had modified per your requirement and raised a PR.

alseambusher commented 3 years ago

I have merged this https://github.com/alseambusher/crontab-ui/pull/138