AIX - Calling Nice command (process priority) from action script

(imported topic written by SystemAdmin)

Hello,

Very new to AIX, and having trouble getting the syntax to call the Nice command to set the process priority of a script to deploy.

I know the Nice command exists in /bin, and have tried several variations to call it but the script never runs although shows completed. Some of the commands used:

wait /bin nice -n 20

wait /bin/ksh nice -n 20

wait /bin/nice -n 20

Also tried the default of “nice” with the above and same thing, but removing any call to Nice and the script runs successfully.

I have to think my syntax is off. Any ideas?

Thanks!

(imported comment written by SystemAdmin)

Disregard. nice isn’t a script so the shell won’t know what to do with it. Changing it to:

wait nice -n 20 /bin/ksh

Gets it to work.

(imported comment written by NoahSalzman)

Nice.