Skip to main content
2 of 2
added 1 character in body
steeldriver
  • 83.9k
  • 12
  • 124
  • 175

The outer double quotes should be removed, and it's an error to use both & and ; to terminate a statement - see for example Using bash "&" operator with ";" delineator?

As well, cron runs jobs using /bin/sh by default which doesn't support brace expansion or the &> combined redirection - so either replace those with POSIX equivalents:

* * * * * usertorunas  for i in $(seq 1 6) ; do curl -s 'https://www.example.com/path' >/dev/null 2>&1 & done

or set SHELL=/bin/bash before the job

SHELL=/bin/bash
* * * * * usertorunas  for i in {1..6} ; do curl -s 'https://www.example.com/path' &>/dev/null & done
steeldriver
  • 83.9k
  • 12
  • 124
  • 175