redirect output to file

Dear Sir,
This is an really old question and don’t know why did not done till now …
simply why mikrotik command line not support redirect output to a file as linux command “>” to great output file or as “>>” to update exist file ?
This really need all your attention mikrotik staff. and can help all developer to create and use good ideas with script
hope can be done as soon as possible
regards

Sending command output to a file is possible. Just use the file parameter, as in the following example:

[admin@Mikrotik] > /interface print file=foo.txt

That being said, I’ll admit that appending to a file is not supported behaviour, unless there’s a special trick I’m not aware of :slight_smile:

Dear Clbh,
file parameter is not applicable for all commands I can list more than ten commands like wireless scan . I am asking for common command or procedure can be used with all commands to send all results to a file or append exist file. as exist in linux with “>” and “>>”
please any one can support with me this option
regards