Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7805643
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T02:17:17+00:00 2026-06-02T02:17:17+00:00

I am using php to execute an expect script which telnets to a remote

  • 0

I am using php to execute an expect script which telnets to a remote server.
The problem is
I am encountering a lot of ‘more’ prompts from the server that usually occurs when the screen is full.
Is there a way to fool the server by advertising my screen size to be large?

Please note that I am not running php from cli, hence not sure how stty can be used here.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-02T02:17:18+00:00Added an answer on June 2, 2026 at 2:17 am

    Recently I had the same need. After a lot of googling, reading a sources of telnet and expect manual page I have found a solution. You can set your desired pseudo-terminal (pty) size to 10000×200 for example like this:

    set stty_init "rows 10000 cols 200"
    spawn -nottycopy telnet 192.168.1.1
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to execute a TCL script from PHP. I am using PHP's
I am trying to execute a command from php script using php exe function.
How do I execute a query like this using PHP: SELECT [name] FROM [items]
I want to execute remote function by using php soap.The web service is created
How can I sync local and remote folders using rsync from inside a php
I'm trying for a while to execute a php script in my website using
Using PHP, exec('php test.php'); will execute a separate PHP script on the command line.
I have a jar file that I would like to execute using PHP, but
I'm using php 5.3.2 and when i execute a curl it display the result
Im using Debian testing, i have installed php-cli and when i try to execute

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.