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

halloffame’s picture

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

dqd’s picture

Issue summary: View changes
Status: Active » Closed (outdated)

Due to the Drupal core life cycle policy and security support advisery, Drupal 6 is no longer supported. So issues for Drupal 6 cannot be longer maintained. The project maintainer has asked for closing all D6 issues to clean up the issue queue. Feel free to reopen the issue if required or set it to "needs to be ported" and latest D8 dev version, if the issue discusses a still missing feature which can be implemented in the D8 version.