PHP CLI重定向到日志后台操作

I'm getting my butt kicked by this.

I am trying to background execution of a PHP script. Of course, I want the output sent to a log file. I've done this many times in the past, yet I can't get it to work this time.

Command Line Operation without Backgrounding works perfectly:

/app/lca/scripts/create_ss7auto_order.php --process_limit 23 --ss7auto_order_number X --audits_id 53 --clli X --login XXXXXXXX --larg_cnarg cnarg --abbr X >> /tmp/create_order.log

If I try to background the command, the script seems to fail immediately. Instead of taking a while to process, it returns immediately, the backend systems that would receive triggers from this script see nothing and nothing is written to the log file:

/app/lca/scripts/create_ss7auto_order.php --process_limit 23 --ss7auto_order_number X --audits_id 53 --clli X --login XXXXXXXX --larg_cnarg cnarg --abbr X >> /tmp/create_order.log  2>&1 &

Does anyone have an idea what I am doing wrong here?

Could you try running it in a subshell like this

(/app/lca/scripts/create_ss7auto_order.php --process_limit 23 --ss7auto_order_number X --audits_id 53 --clli X --login XXXXXXXX --larg_cnarg cnarg --abbr X >> /tmp/create_order.log  2>&1) &