Comments (6)
@wolf-li :
When you edit the script by Visual Studio Code, it is possible that the last line does not have CRLF.
To resolve this problem , two methods exist.
- Append the empty line after
end
. - Try the new version: Release v0.6.1 ยท hymkor/expect.
where I fixed the bug that When a script did not end with CRLF, the last line was ignored.
Would you try one of these methods ?
from expect.
Yes. Thanks for your work.
from expect.
@wolf-li :
When you edit the script by Visual Studio Code, it is possible that the last line does not have CRLF.
To resolve this problem , two methods exist.
- Append the empty line after
end
.- Try the new version: Release v0.6.1 ยท hymkor/expect.
where I fixed the bug that When a script did not end with CRLF, the last line was ignored.Would you try one of these methods ?
Good job, All of these solutions can solve the problem.
But I recommend using the second method. If the script is written incorrectly, the session will not get stuck as shown in the figure below.
Many thanks to the author for his work.
from expect.
Thank you for reporting.
Would you append CRLF at the last line of sample.lua ?
On my environment, when I remove CRLF from the last line of the script, I see the error message you reported.
from expect.
Thank you very much for your reply. I tried the method you said, but it didn't work. As shown in the figure below .
Using expect-v0.6.0-amd64.zip and v0.5, It's the same problem.
from expect.
I'm glad the problem is solved .
Can I close this issue ?
from expect.
Related Issues (20)
- Support to log the output/errors to a file when running lua script HOT 1
- Not working on git bash terminal HOT 5
- How to insert date/time into script? HOT 5
- Any other way of simulating the Enter key? HOT 10
- Help me ssh Auto input password with Expect HOT 4
- Redirect output? HOT 1
- Distribution via Chocolatey HOT 1
- issue using "scp" accept only single quoted arguments (instead of double quoted) HOT 1
- scp and ssh seems to impact earlier sendln commands HOT 5
- Please consider signing exe file so it can be used under Windows without complains HOT 1
- `The handle is invalid.` is output when using in GitHub Actions PowerShell. HOT 4
- loop condition for expect HOT 4
- How to pass batch variables to expect script? HOT 6
- how to suppress output lines works HOT 5
- Provide installers for package managers such as Scoop and Chocolatey HOT 3
- Capture output from program into LUA varaible? HOT 3
- Timeout seems does not work properly HOT 3
- How use another port in ssh? HOT 8
- Automatic logout happening? HOT 6
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 expect.