in reply to System command

im running a system command in my cgi file. the script is very simple. i want to start a service im using 2 ways @args = ("service","ipsec","restart"); system(@args) and system("service ipsec restart"); none of them is working. while it works on the shell successfully. please let me know.