$system output

In reply to harsh pandya:

harsh, do you have an idea why calling this command

$system("history 10 > cmd_history")

from modelsim leads to creation of an empty file? when i run it in terminal, everything’s fine