Answer the question
In order to leave comments, you need to log in
CRON not working: /bin/sh: 1: Syntax error: Bad fd number. Where to dig?
Goodnight.
Instruction: /usr/bin/php file.php >/dev/null 2>&1
The mail comes: /bin/sh: 1: Syntax error: Bad fd number
The error is visible in the output redirection, namely &1, but how to fix it I don't understand. I put SHELL=/bin/bash at the beginning - I get: /bin/bash:1: ambiguous redirect
Yasha and Google say little, except for dumb manipulations with rm /bin/sh.
Please, help. I lifted everything (seemingly), but the kroner does not work in any way.
Thank you.
Answer the question
In order to leave comments, you need to log in
so your script rises without a terminal, therefore neither STDERR nor STDOUT are created. What are you redirecting?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question