Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
The doc says that scripts can be executed with : geth --exec 'loadscript("script.js")' attach, but in the example script they give right after, they say to use geth js script.js 2>>geth.log.
geth --exec 'loadscript("script.js")' attach
geth js script.js 2>>geth.log
What is the difference between the two ?
You can reference this document for most of your Geth command line needs.
Required, but never shown