Timeline for How to write a script to launch Thinkorswim
Current License: CC BY-SA 4.0
11 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Jun 13, 2020 at 3:33 | vote | accept | nswerhun | ||
| Jun 11, 2020 at 5:20 | history | edited | nswerhun | CC BY-SA 4.0 |
Changed the title so people looking for how to write a thinkorswim launching script will find this
|
| Jun 11, 2020 at 5:14 | answer | added | nswerhun | timeline score: 1 | |
| Jun 11, 2020 at 5:07 | comment | added | nswerhun | Nevermind, I solved it, posting the answer. | |
| Jun 11, 2020 at 4:55 | comment | added | nswerhun |
But I have to use the sh program to execute /opt/thinkorswim/thinkorswim. I thought I was using sh, with sudo permissions, to launch /opt/thinkorswim/thinkorswim
|
|
| Jun 11, 2020 at 4:53 | comment | added | Archemar | see also askubuntu.com/questions/147241/execute-sudo-without-password | |
| Jun 11, 2020 at 4:39 | comment | added | muru |
No it's not, sudo is executed on sh in that case.
|
|
| Jun 11, 2020 at 4:29 | comment | added | nswerhun |
In that case, I modified the script to say sudo sh /opt/think..., that way sudo was being executed on the /opt/thinkorswim/thinkorswim.
|
|
| Jun 11, 2020 at 3:27 | comment | added | muru |
Where exactly are you using sudo? If you put username ALL=(ALL) NOPASSWD: /opt/thinkorswim/thinkorswim in sudoers, then you need to be using sudo /opt/thinkorswim/thinkorswim
|
|
| Jun 11, 2020 at 3:26 | history | edited | muru | CC BY-SA 4.0 |
not a quote
|
| Jun 11, 2020 at 3:22 | history | asked | nswerhun | CC BY-SA 4.0 |