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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T16:53:52+00:00 2026-06-06T16:53:52+00:00

Background I’m writing an web application so I can control an Ubuntu Server from

  • 0

Background
I’m writing an web application so I can control an Ubuntu Server from a web site.

One idea I had was to run the ‘screen’ application from mono and redirect my input and output from there.

Running ‘screen’ from mono:

ProcessStartInfo info = new ProcessStartInfo("screen", "-m");
info.UseShellExecute = false;
info.RedirectStandardOutput = true;
info.RedirectStandardInput = true;

var p = new Process();

p.StartInfo = info;

p.Start();

var output =  p.StandardOutput;
var input = p.StandardInput;

but running ‘screen’ with the RedirectStandardInput gives out the error:

Must be connected to a terminal

I’ve tried many different arguments and none seems to work with ‘Redirecting Standard Input’

Other ideas for controlling a server will be greatly appreciated

  • 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-06T16:53:54+00:00Added an answer on June 6, 2026 at 4:53 pm

    I think this is the typical question in which you’re asking how to implement your solution to a problem, instead of asking how to solve your problem. I don’t think you should do hacky things like making a web app that tunnels the user actions to the server via a terminal.

    I think you can bypass all that and, without writing a single line of code, take advantage of what the platform (Gtk+ in this case) already provides you:

    You could run gnome-terminal in the server with the Broadway GDK backend. This way the gnome-terminal app will not run in the server, but open a web server on the port you specify. Later, you can use any WebSockets-enabled browser to control it.

    This is the easiest and less hacky solution compared to the other ones offered so far. If you still are excited about using Mono for web development you still can, and you could embed this access in an iFrame or something.

    (PS: If you don’t want to depend on GTK being installed in the server; you could just use WebSockets in your client part of the webpage to be able to send events from the server to the client, and the library SSHNET to send the user’s input directly through the wire.)

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

Sidebar

Related Questions

Background: Using unix, codeigniter from localhost. I'd like to run a controllers via a
Background Use Ajax to fire an event to the web server when a list
Background Developing a simple web application (Eclipse + JBoss + Apache Tomcat) to generate
Background: writing an automated release script to export changed files between versions from SVN
Background: I've been working on a small proof-of-concept web application in ASP.NET 4.0 with
Background: We're building an application that allows our customers to supply data in a
Background I am working with a monad built of a stack of transformers one
Background The main application where I work is based heavily on the MUMPS-esque Caché
Background I am writing code in VS 2010, .NET 4, C#. Also, in case
Background info: We are currently 3 web programmers (good, real-life friends, no distrust issues).

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.