I'm trying to use a bash file to execute a loasdScript file in geth console on a private blockchain. How can I do this?
I have tried:
\\Bash file $ geth --exec 'loadScript("/path/to/file/filename.js")' attach ipc:/path/to/ipc
But it doesn't worked.
\\Bash file geth --preload "/my/scripts/folder/utils.js,/my/scripts/folder/contracts.js" console
But, not worked also.
Hope someone could help me with this.