in reply to to write /etc/init.d/ntpd start

To study the output (STDOUT or STDERR) from a system command use backticks or qx

To study the return value of a system command use system