On Wed, Aug 19, 2009 at 09:36, Raheel Hassan<raheel.has...@gmail.com> 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. snip
There error message says "mysqld", but on the commandline you are saying "service mysql start". It looks like your problem is a typo in the Perl script. -- Chas. Owens wonkden.net The most important skill a programmer can have is the ability to read. -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/