Community discussions

MikroTik App
 
rocknight13
newbie
Topic Author
Posts: 45
Joined: Sun Dec 25, 2011 8:08 pm
Location: Iraq
Contact:

redirect output to file

Sat Jun 13, 2015 1:24 pm

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
 
Clbh
just joined
Posts: 20
Joined: Tue May 12, 2015 5:22 am

Re: redirect output to file

Sun Jun 14, 2015 12:12 pm

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 ?
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 :)
 
rocknight13
newbie
Topic Author
Posts: 45
Joined: Sun Dec 25, 2011 8:08 pm
Location: Iraq
Contact:

Re: redirect output to file

Sun Jun 14, 2015 4:12 pm

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

Who is online

Users browsing this forum: behrooz, Google [Bot], Maggiore81 and 191 guests