While starting bench iam getting error like-->

11:43:39 schedule.1 | Traceback (most recent call last):
11:43:39 schedule.1 | File “/usr/local/bin/bench”, line 8, in
11:43:39 schedule.1 | sys.exit(cli())
11:43:39 schedule.1 | File “/usr/local/lib/python3.10/dist-packages/bench/cli.py”, line 135, in cli
11:43:39 schedule.1 | frappe_cmd()
11:43:39 schedule.1 | File “/usr/local/lib/python3.10/dist-packages/bench/cli.py”, line 201, in frappe_cmd
11:43:39 schedule.1 | os.execv(f, [f] + [“-m”, “frappe.utils.bench_helper”, “frappe”] + sys.argv[1:])
11:43:39 schedule.1 | OSError: [Errno 8] Exec format error

can anyone give solution for this error?

Do you have any custom apps?
There’s a link here which indicates a missing SHEbang causes this