Comments (4)
@rymka1989 - that is actually regex for matching the end of line and before a return if a multiline input. There isn’t a literal match for the string $.
from paramiko-expect.
As @y-me-y explained, this is a regular expression, the $
is the end of line, not a literal. More likely there's something happening on your prompt before the end of line is matched.
from paramiko-expect.
Hi!
I'm running Centos and there is no $ symbol in prompt, it has # instead.
In other operations, e.g. changing user password, there are no symbols ($, #) at all.So, may be it should better not to include such symbols in re_strings in expect method?
After I've removed + '$' everything works fine.
I realized something :)
If i login with root, i have # at the end of the prompt, if i login with another user, i have $.
But previous comment, i think, is still actual (we don't need hardcoded $)
from paramiko-expect.
@rymka1989 - that is actually regex for matching the end of line and before a return if a multiline input. There isn’t a literal match for the string $.
As @y-me-y explained, this is a regular expression, the$
is the end of line, not a literal. More likely there's something happening on your prompt before the end of line is matched.
I'm very sorry! I understood, that i was wrong.
Thank you very much for your replies!
from paramiko-expect.
Related Issues (20)
- 0.3.0 version not available on pypi mirror HOT 6
- 0.3.0 expect match issue when channel receives multiple lines of strings at the same time. HOT 1
- EXCESS TIME RECV_READY TIMEOUT, did you expect() before a send() on offical sample. HOT 6
- socket.timeout() raises AttributeError Exception HOT 1
- Paramiko Timeout issue HOT 1
- Unsupported operand type(s), line 164 in expect HOT 4
- IndexError with ANSI codes
- sdist is missing on pypi for 0.3.2 HOT 1
- SSHClientInteraction's current_output_clean is not clean HOT 1
- How to put the output we get from expect prompt in a file HOT 2
- take_control always times out HOT 3
- Check whether channel is closed before checking recv_ready() HOT 1
- add term support to SSHClientInteraction , to pass onto invoke_shell HOT 7
- Error : Undefined symbol "SSLv3_client_method" HOT 2
- Issues with paramiko-expect while interacting with prompt of a remote ssh server
- Issue while sending very big command HOT 2
- expect always fails with "EXCESS TIME RECV_READY TIMEOUT, did you expect() before a send()" error HOT 9
- Moving this repo into its own organisation HOT 3
- Maintainers required HOT 7
- Paramiko expect on windows 2019 vms is giving a lot of residue output HOT 11
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from paramiko-expect.