ps aux output in cronjobs

Hello there, Going trough an ad-hoc cronjob for checking an existing process I’ve hit a weird case that the command itself was working well when ran from the terminal, but failed miserabely when the cronjob ran it. The command was something along the lines of: 1 ps aux | grep 'php artisan a_specific_command --with-some-long-parameters-that were generated' | grep -v grep The thing that I’ve completely forgotten is that by default ps’s output is limited by the number of $COLUMNS....

22 September, 2018 · 1 min · 161 words · Alexandru Bucur