Shell Scrip actions

marmelo

New member
Hello all,

So I just bought MD and a really like it, very clean and polished.

One thing I'd like to understand is what are the options you get when you press the 3 dot square in shel scrip and how to use them.
For example, if I select [ip] it outputs "/usr/bin/sh: <stdin>[64]: 192.168.1.105: not found", shouldn't it just output the ip address so it can be used in a variable?
Maybe I'm doing something wrong.
Thanks.
Screenshot_20210305-105050_MacroDroid.jpg
 

marmelo

New member
The output of the set variable action is clean, just the ip address shows on the variable. Why is this?
 

FrameXX

Well-known member
To make it clear for you. With that three dots menu you can acces to list of macrodroid variables.

So if you input [ip] it's like writing there your actual ip adress into command line. For example 192.168.1.35.

If you would input [ssid], it would write name of wifi you are connected to into command line, when the action is executed.

When you put there your ip adress, shell script do not recognize it as any command so he output you an error message.

Of course if you use set variable action and write just [ip] it only sets you actual ip adress as variable value and nothing else.
 
Last edited:

marmelo

New member
Ok, thank you for the explanation, I'm still finding my way around MD.
Documentation about the variables and how to use them with just a few examples would be nice though.
Its fun to explore and try to get macros to work, the app in it self is a lot of fun just to try to understand its way of doing things.
Cheers.
 
Top