Sudo to execute script without passwd[solved]

Hi

Hope someone can sched some light i'm trying to execute a script via sudo but i don't want to be prompted for a password when i run the script using sudo

my sudo entry does work in that the script gets executed but i'm having to give a password, my current entry is given below

user1 host1=NOPASSWD: /user1/source/test.sh

This is on rhel environment

Chers
Duckegg

---------- Post updated at 06:26 AM ---------- Previous update was at 05:39 AM ----------

Got it working by adding spaces between the = sign