Note that the method you suggest has serious security problems if $message has something like " command name " in it...