Saturday, February 6, 2016

centos - What does this line mean in my cronjob tab?



*/5 * * * * /usr/local/bin/php somephpfile.php>> /dev/null 2>&1



What exactly does the dev/null 2 mean?



Thanks


Answer




It's redirecting STDER (Standard Error) to go along with STDOUT (Standard Out). In short, both of them are redirected to /dev/null, meaning no output from the program is ever displayed.


No comments:

Post a Comment

linux - How to SSH to ec2 instance in VPC private subnet via NAT server

I have created a VPC in aws with a public subnet and a private subnet. The private subnet does not have direct access to external network. S...