Assuming the seq program (or something like that) is available,
parallel prog ::: $(seq 1 $x)
If not, you can fake it:
parallel prog ::: $(for ((i=1; i < x; i++)) do; echo $i; done)
As Ole points out, if $x large, then the resulting sequence of numbers may be too large to fit on the command line. In this case, use one of the two methods above to supply arguments to parallel through standard input:
seq 1 "$x" | parallel prog for ((i=1; i<x; i++)) do; echo "$i"; done | parallel prog
source share