I obfuscated the title since I’m not sure if it’s a good idea for search engines to bring that kind of traffic. If this is still a concern, delete this post, I’ll understand.
For a while I was maintaining scripts in both PowerShell and Linux Bash to execute a.d.b commands on my FreTVs and Fre Sticks. I got sick of maintaining the same script in two different languages, of which I’m not particularly fond of. Both are arguably powerful in their own rights, but the syntax is ugly (especially Linux Bash) and very different. I decided to write the scripts into an Odin program so that there is only one language and place to maintain updates. Plus the parsing is much faster. This also serves as a place to store a.d.b commands I’ve learned and found useful. Additionally, some of the less than trivial commands perform some useful parsing of the data, hence the “scripting” part.
I create two aliases on both my Windows and Linux machines. One for just the command so I can print the help and other things. The other alias is a shortcut that includes the connection to my living room tv so I can quickly execute what I want. Note that in windows, alias definitions cannot have parameters. To work around that create an alias to a function that accepts parameters and then executes the command.
Feedback and requests welcome.
i.e. (on linux)
- alias tv=‘command_name’
- alias tvl=‘command_name -c LivingRoomTVIP’
Then I can do the following to list running (3rd Party) user packages, kill all of them, launch the music app, output the system disk space usage, and output the disk space usage of the music app:
tvl -r -k all -l com.amazon.bueller.music -s system -s com.amazon.bueller.music