Community discussions

MikroTik App
 
MarcFumi
newbie
Topic Author
Posts: 32
Joined: Mon Aug 28, 2006 1:15 pm

Problems with script

Fri Oct 06, 2006 3:28 pm

Hi, i have a problem when i make this script:

system script add name=ap source="/ip address print
/ip address set [/ip address find interface=ether1] address=192.168.1.155/24"

OS returns this message:
invalid argument name

But if i enter this script manually via winbox this script OK
 
changeip
Forum Guru
Forum Guru
Posts: 3824
Joined: Fri May 28, 2004 5:22 pm

Fri Oct 06, 2006 8:53 pm

you can remove the first line, since your using find already ... no need to print in script as its probably hanging it up.
 
Fumi
Frequent Visitor
Frequent Visitor
Posts: 97
Joined: Fri Jul 28, 2006 10:12 am

Fri Oct 06, 2006 10:25 pm

yeah :D ,it's also giving me error without the print command
:? , i belive that the problem is command find, it doesn't let me use [find] on a script

And if i write
system script add name=ap source="/ip address print
/ip address set 0 address=192.168.1.155/24"

OS accept this sript, but when i run the script not work

any idea?

Thanks,
Marc[/img]

Who is online

Users browsing this forum: No registered users and 36 guests