Raheel Hassan wrote:
When i am running this command *service mysql start* at command line it gives OK but when calling it in perl script it print *$mysqld: unrecognized service* in the output file. Therefore the variable result gets NOK and it prints NOK. This does not work because it should print OK.
How are you calling the script? Is it a CGI? If it is being called under a different user, there could be a permissions problem.
-- Just my 0.00000002 million dollars worth, Shawn Programming is as much about organization and communication as it is about coding. I like Perl; it's the only language where you can bless your thingy. -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/