in reply to simple iterate and run cmd script

I'm not sure, as you might want to put in <code> tags, but: do you need/have root permissions to go into /root directory

Might read: How do I post a question effectively? for some ideas on posting

Updated: code tags allowed better read so removed last suggestion and changed link per PodMaster, thanks Pod

"Pain is weakness leaving the body, I find myself in pain everyday" -me