Questions tagged [interactive-shell]
74 questions
0
votes
0 answers
Is it possible to paste code into PHP's interactive shell without a tab prompt?
Whenever I've tried to paste large blocks of code (whole classes, long code snippets, etc.), I'm always greeted by this message for each line of code inputted:
Display all 3616 possibilities? (y or n)
I'm pretty sure it's because my code is…

NobleUplift
- 5,631
- 8
- 45
- 87
0
votes
2 answers
scala interactive shell documentation support copy paste
In most programming languages (like Java or Python) we use the "\" character at the end of a line to indicate that the code on the next line of documentation is a continuation of what should be executed as a single line of code. However, in Scala,…

dmohr
- 2,699
- 1
- 22
- 22
0
votes
1 answer
Can I use pyCharm in the same way that I use Canopy? Specifically i miss the "data-analysis environment"?
I have been using Enthought Canopy for Python up until now. I really like that I can run a .py file, and play around with it in the Python Pane (e.g. make a class, and then play around in the Python Pane, trying to learn how it works, and how I can…
user3224363
0
votes
1 answer
Is it possible to redirect Boris output (PHP interactive command line)?
I am using Boris—"A tiny little, but robust REPL for PHP". To be more specific, I am using WP-CLI's implementation of Boris (wp shell—it replaces the $boris command prompt with wp>).
I was wondering if it was possible to pipe the command line output…

JP Lew
- 4,121
- 2
- 32
- 45
0
votes
1 answer
\n displaying in interactive shell
I'm a newbie scriptwriter and I was testing out my script using the interactive shell -i.
This is part of my script:
shelp = "min shows the number of minutes\n\
sec shows the number of seconds\n\
min + [NUMBER] adds…
user2423629
0
votes
2 answers
Bash interactive and non-interactive shell behaviour
I have a hard time with interactive and non-interactive shells. I don't understand which is which.
For example, I have read that non interactive shells usually check for the BASH_ENV variable on their startup and execute whatever it points to.
So,…

darxsys
- 1,560
- 4
- 20
- 34
0
votes
0 answers
Why doesn't the php cli add linebreaks after `echo` commands?
Since upgrading to php 5.4, issuing echo commands no longer includes automatic line breaks. In order to get similar behavior, you must now append your own; otherwise, you get the prompt on the same line as your output.
php > echo "some output";
some…

Bryan Agee
- 4,924
- 3
- 26
- 42
0
votes
2 answers
How to store the current state of InteractiveInterpreter Object in a database?
I am trying to build an online Python Shell. I execute commands by creating an instance of InteractiveInterpreter and use the command runcode. For that I need to store the interpreter state in the database so that variables, functions, definitions…

gibraltar
- 1,678
- 4
- 20
- 33
0
votes
4 answers
Developing an interactive shell
I have an application; to interact with it I have to develop an interactive shell. The shell will take input from user and dispatch it to the server, which will process and return a response.
In the past I have done such things, but they typically…

WeaklyTyped
- 1,331
- 4
- 16
- 31
0
votes
2 answers
How to get to the Mongo shell history file or all history on Windows
This is in ~/.dbshell for Mac, etc.

amitc
- 365
- 1
- 4
- 8
-1
votes
1 answer
Is there a pattern for writing a python program that responds like a shell program
I want to modify a python program I've written to accept commands from the command line and then respond to these commands just like a shell.
Is there a standard pattern or library for doing this, or do I just use something like a while True: and…

David
- 485
- 1
- 5
- 16
-2
votes
0 answers
How do we write a script in python such that it opens a new terminal, executes commands in that terminal(entered in runtime) and saves it to a python?
How do we write a script in python such that it opens a new terminal, executes commands in that terminal(entered in runtime) and saves it to a variable in the python script ?
A solution to my issue as I am unsure how to proceed

Shanaya
- 7
- 7
-2
votes
1 answer
fopen: failed to open stream: No such file or directory - but file/directory exists
Edit: Originally I simplified the original csv file (from com1_webscrapersolution_new_email-10-02-20.csv to products.csv) to minimise/simplify the question, but it turned out the file name is of consequence here and is key to the solution. I have…

user136649
- 59
- 1
- 7
-3
votes
1 answer
How to execute multiple commands in interactive shell
My application works with all kind of shell commands, provided from the console (curl, date, ping, whatever). Now I'd like to cover the case with interactive shell commands (like mongo shell), using os/exec.
e.g. as a first step, connect to…

silent-box
- 1,649
- 3
- 21
- 40