Problems with script

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

you can remove the first line, since your using find already … no need to print in script as its probably hanging it up.

yeah :smiley: ,it’s also giving me error without the print command
:confused: , 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]