Community discussions

MikroTik App
 
marcin
just joined
Topic Author
Posts: 4
Joined: Fri May 05, 2006 12:25 am
Location: Poland

Run script from file?

Thu Jul 20, 2006 2:31 pm

Hi,
i want to ask if there is a possibility to run script which was uploaded through ftp.
This is quite huge file and using winbox i cannot do this...
 
User avatar
Eugene
Forum Veteran
Forum Veteran
Posts: 986
Joined: Mon May 31, 2004 5:06 pm
Location: Cranfield, UK

Mon Jul 24, 2006 10:33 am

/import <filename>
 
User avatar
fra.iesus
just joined
Posts: 13
Joined: Thu May 25, 2006 4:29 pm
Location: CZ
Contact:

Fri Jul 28, 2006 11:24 am

/import <filename>
is there any way to insert file content into existing script?
(something like "/ip address add < filename")
 
User avatar
Eugene
Forum Veteran
Forum Veteran
Posts: 986
Joined: Mon May 31, 2004 5:06 pm
Location: Cranfield, UK

Fri Jul 28, 2006 12:53 pm

$ ssh -l admin 10.0.0.1 /ip address add address=$address

bash could read from files, too :)
 
User avatar
fra.iesus
just joined
Posts: 13
Joined: Thu May 25, 2006 4:29 pm
Location: CZ
Contact:

Fri Jul 28, 2006 1:31 pm

... so I need another machine with linux inside!
I belive it will be secure using ssh :oD but I'm looking for possibility to do it inside routerboard :o(
 
User avatar
Eugene
Forum Veteran
Forum Veteran
Posts: 986
Joined: Mon May 31, 2004 5:06 pm
Location: Cranfield, UK

Fri Jul 28, 2006 1:52 pm

Having a spare machine with Linux inside® is Good Thing (tm).

Eugene
 
User avatar
fra.iesus
just joined
Posts: 13
Joined: Thu May 25, 2006 4:29 pm
Location: CZ
Contact:

Fri Jul 28, 2006 2:11 pm

may be... but it isn't exactly what I want...
I have program on win32 machine for sending data to router and need to execute scripts with them... so I have no idea, why should I manage this work with 3 comps :o)
 
dana1975
Frequent Visitor
Frequent Visitor
Posts: 94
Joined: Sat Jul 04, 2009 8:32 pm

Re: Run script from file?

Sun Mar 04, 2018 9:22 am

is it possible to export the output of script to a file?
something like /system script scriptname file=filename

Who is online

Users browsing this forum: Amaan and 48 guests