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 7499125
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T19:42:39+00:00 2026-05-29T19:42:39+00:00

I was thinking the other day about making a web based bash interface and

  • 0

I was thinking the other day about making a web based bash interface and I found out about the backtick operator in php that lets you execute a shell script through bash. However I know that http is a stateless protocol and that if you run a shell script you get the response but if it asks for input from you…you can’t really respond because the next time you send anything to the server it won’t be responding but just executing another command.

My question isn’t very specific but I’m wondering if there is a way to somehow keep track of a “session” in bash or other programs. Any news?

P.S. I’m kind of a n00b so see if you can explain things simply…

  • 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-05-29T19:42:42+00:00Added an answer on May 29, 2026 at 7:42 pm

    There are various admin consoles written in PHP that offer a shell. For one example, see Shell Commander. Wikipedia has a page on Web-based SSH.

    If doing that, you want to keep the state information in PHP. That is, the PHP script would associate the user with a session (with a cookie) and keep track of that user’s session, holding open an SSH connection or instance of bash and remembering that it is associated with that user. I am actually not sure how to keep such an object around across multiple requests in PHP.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

So I was thinking about languages the other day, and it struck me that
This is something I was thinking about the other day. I want to have
I've been developing a web application with PHP and MySQL. The other day, I
Preface: I was thinking the other day about a new database structure for a
I was thinking about this the other day and wanted to see what the
I was thinking the other day on normalization, and it occurred to me, I
Thinking about my other problem , i decided I can't even create a regular
I'm working on a small application and thinking about integrating BLAST or other local
Thinking about a Windows-hosted build process that will periodically drop files to disk to
Thinking about avoiding code replication, I got a question that catches me every time

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.