I wanted to add a script in the terminal but the variables are getting lost if i look in the log of the script list.
I'm sorry. I'm new to this hole thing.
If I write the following code in Terminal everthing seems to be normal.
Code: Select all
/system script
add dont-require-permissions=no name=container-run owner=admin policy=\
ftp,reboot,read,write,policy,test,password,sniff,sensitive,romon source="\
\r\
\n:global myCon do={:return};\r\
\n:global containerlist [$myCon];\r\
\n/container start $containerlist;\r\
\n/container shell $containerlist;\r\
\n/delay 1;\r\
\n/container stop $containerlist;"
Code: Select all
:global myCon do={:return};
:global containerlist [];
/container start ;
/container shell ;
/delay 1
/container stop ;
Thank you for your help