How do you shell_exec() in a computed field? Or is this even allowed?

$command = "some_command_here";
$node_field[0]['value'] = shell_exec($command);

Does not seem to work...

Comments

Tried a direct approach but still...
$node_field[0]['value'] = shell_exec('some_command_here');