cron에서 실행되고 파일로 출력되는 bash 스크립트가 있습니다. 하지만 내 스크립트에서는 파일로 출력하도록 설계된 다른 명령을 실행하고 있지만 그렇지 않습니다.
세게 때리다
/opt/SP/php7/bin/php /var/httpd/domain/domain.com/scripts/cli-worker-manager.php processQueueAggregateFlows >> /var/httpd/domain/domain.com/scripts/logs/cli-worker-processQueueAggregateFlows.log 2>&1 &
# ps aux | grep cli-worker- | grep php | grep processQueueAggregateFlows
wwwadm 18141 0.0 0.1 456160 29524 ? S Mar05 0:08 /opt/SP/php7/bin/php /var/httpd/domain/domain.com/scripts/cli-worker-manager.php processQueueAggregateFlows
>> /var/httpd/domain/domain.com/scripts/logs/cli-worker-processQueueAggregateFlows.log 2>&1
보면 빠진 것이 무엇인지 알 수 있다ps
내가 실행한 cronjob이ps
# ps aux | grep cli-worker- | grep "cli-worker-aggregateFlows.sh"
wwwadm 5620 0.0 0.0 117304 1752 ? Ss 15:19 0:00 /bin/sh -c . ~wwwadm/.bash_profile; /var/httpd/domain/domain.com/scripts/cli-worker-aggregateFlows.sh -e test >> /var/httpd/domain/domain.com/scripts/logs/cli-worker-processQueueAggregateFlows.log 2>&1