Questions tagged [interactive-shell]
74 questions
1
vote
1 answer
History/partial search with up-arrow on scala shell
How can I make the scala interactive shell program behave this way (using the up-arrow to go to the last command if I haven't typed anything or go to the last command given in the shell beginning with what I typed) instead of the reverse-i-search?

gsmafra
- 2,434
- 18
- 26
1
vote
0 answers
Using Plink to run multiple remote commands in interactive shell session
Sudo Python code to connect to remote server but I am not getting any output. I am able to connect to remote using pexpect but on windows it does not work.
from subprocess import Popen,PIPE
command = "plink.exe -ssh test@test.com -pw root123"
sh =…

tempuser
- 1,517
- 3
- 11
- 15
1
vote
1 answer
How to get sentiment via stanford corenlp interactive shell?
I have been trying to get the sentiment value from the stanford corenlp, but it seems in the interactive shell, the sentiment is not given as an output.
I have specified the annotators using the command given in the official website.
java -cp "*"…

Vivek Anand
- 621
- 1
- 7
- 15
1
vote
1 answer
How to continue in nested loops (after 2nd innerloop) in BASH?
Would like kindly to ask for you advice.
I'm building interactive bash script with nested loops using while true, read and case. My problem is that after second innerloop (when choosing 'loop 1.3') I'd like to continue script with another inner…

LinenG
- 109
- 3
- 14
1
vote
0 answers
How to avoid global vars (/abuse of builtin): Sharing data between modules/classes (Python3)
I wish to have an interactive shell that allows me to perform data manipulation using a series of modules defined in my package. For example, I want to be able to type:
$ Input('data.csv')
$ GroupBy('key')
$ Output('data.csv')
Where Input, GroupBy…

Dave White
- 321
- 1
- 3
- 13
1
vote
0 answers
Start pig grunt shell and execute commands using c#
I am working on achieving the execution of commands on pig grunt shell using c#. I am able to start the grunt shell through c# program using the following code:
proc = new Process {StartInfo = new ProcessStartInfo
{
…

Athiram
- 116
- 8
1
vote
1 answer
How to run manage.py in Eclipse Pydev Interactive Console
I am trying to run
manage.py to validate models (as: manage.py validate) in the Interactive Shell of a Django project (called djangonew) using Pydev
The PYTHONPATH is set to include /djangonew ... so import djangonew and then dir(djangonew)…

dowjones123
- 3,695
- 5
- 40
- 83
1
vote
1 answer
Change save path of PHP interactive shell history
I once found a way to disable session logging by php -a, php's interactive shell. How do I turn it back on? Is there a way to send logging to another, file besides ~/.php_history? I think I may have sent the output to /dev/null.
edit: It apparently…

jonavon
- 893
- 7
- 11
0
votes
2 answers
how to compile php with the --with-readline option
I recently asked this question about a PHP interactive shell, similar to python's. after viewing this page it looks like what I need to do is compile PHP with the --with-readline option. The problem is, on Windows, I don't know how to do that. …

ewok
- 20,148
- 51
- 149
- 254
0
votes
1 answer
google interactive shell
I'm practically new to Google App Engine, but i have a homework to create some app with it.
I'm trying to debugging my app offline using google interactive shell. http://localhost:8080 looks fine, but when i tried to open http://localhost:8080/shell…

Alwin Tyanto
- 3
- 1
0
votes
1 answer
How to quickly restore the cursor at the previous position were it was before the command execution in a shell?
This is the situation that I'm finding in regularly: I'm crafting a long command in a shell (here fish but could be bash or anything) with a bunch of flags and arguments, so I go back and forth in the command. At the end, my cursor is located just…

lefuturiste
- 87
- 1
- 7
0
votes
1 answer
What is the difference between "bash -i myscript.sh" vs "bash myscript.sh"?
According to bash man page, it says -i is for interactive mode of shell.
I tried example code to find out what -i option does.
interactive.sh is script that needs user input, which means interactive script.
The default bash option is non-interactive…

myoldgrandpa
- 871
- 7
- 21
0
votes
0 answers
neovim: pwntools process automatically stops when trying to invoke interactive shell
I'm using python pwntools.
I'm using python 3.10.x
This line of code should open a shell for me:
io.interactive()
But while running this file from vim using
!./% it doesn't open the shell doesn't invoke as it was supposed to be. The process stops…

NobinPegasus
- 545
- 2
- 16
0
votes
2 answers
Powershell - Spawn a remote interactive shell from script
This is part of a homework assignment. As part of an administration script, one of the tasks is to open an interactive Powershell prompt on a remote computer using preset credentials from the script. Opening one from the regular interactive shell…

erikha
- 1
- 2
0
votes
0 answers
Make bash automatically present successive interactive commands, but keep the interaction manual
I need to run the $ aspell -c file.txt command on about 300 files. I want bash to run the aspell -c for me for each file in the list, but allow me to do the interaction. So, for example:
Bash presents $aspell -c file1.txt
I interact with…

user81371
- 91
- 1
- 10