I need to execute few lldb commands in sequence using bash script. In my script, it opens lldb in terminal but do not execute rest commands.
Asked
Active
Viewed 252 times
0
-
1`In my script, it opens lldb` Show your script. – KamilCuk Jan 05 '21 at 09:06
-
2`lldb <
– Barmar Jan 05 '21 at 09:08 -
The same way you feed multiple lines of input to any other command. – Barmar Jan 05 '21 at 09:09
-
1Note you can also use lldb's `-o` options to issue your commands on the lldb run line. You can repeat the -o as many times as you want, lldb will execute all the commands in order. Just make `-o quit` the last command. That's sometimes easier than having to deal with HERE directives, and it's nice for development because you can just copy the command from your script and run it directly on the command line. – Jim Ingham Jan 08 '21 at 01:10