0

I have found the following entry in a user crontab:

*/5  * * * *  ~/bin/php /path/to/phpscript &> /path/to/logfile

What is the meaning of the & (ampersand) here? Has it still the meaning of running in background? Does it make sense in a cronjob?

muru
  • 72,889
hellcode
  • 742

1 Answers1

0

Thanks to @Stephen Kitt. Found the answer at What are the shell's control and redirection operators?:

command &> out.txt

Both standard error and standard output of command will be saved in out.txt, overwriting its contents or creating it if it doesn't exist.

hellcode
  • 742