If that is the whole content of you "shell script" it's missing the shebang line.
""" #!/bin/sh chmod 777 /root/testfile """ You're still missing a PATH variable, so this script is still a mess. You should write a proper test script. HTH, Felix On 05/20/2011 10:36 AM, Sumith Sudhakaran wrote: > Thanks for your reply > > No, I just create a shell for testing with following content. > > chmod 777 /root/testfile > > Nothing else. > > > On Fri, May 20, 2011 at 1:00 PM, Denmat <tu2bg...@gmail.com > <mailto:tu2bg...@gmail.com>> wrote: > > Hi, > > What is the exit code of the script when you run manually? Does it > exit with 1? > > Cheers, > Den > -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.