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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T01:28:59+00:00 2026-05-18T01:28:59+00:00

I have a locked down kiosk terminal server. This terminal server has a perl

  • 0

I have a locked down “kiosk” terminal server.

This terminal server has a perl script as its .Xsession, and launches a Tk interface. When that Tk interface is done, the perl script launches “process2” and lets the user interact with “process2” (which is a graphical application).

If a user tampers with “process2”, and make it crash, the user might be able to access the underlying desktop, therefore I would want to check if “process2” is running, and if “process2” is not running on $display, I would want to just execute logout (which would logout the display the perl script is currently running as).

Since the system is running 10 instances of “process2” to 10 different users simultanuosly, I cant just check if “process2” is running on the system with “ps” or someting like that. I need to check if “process2” is running under that specific display $display.
Note that all 10 users log on as the same username in all sessions, so I cannot check all processes run by a specific user, that would return all 10 instances too.

Like:

system("process2 &");
while(1) {
  sleep(1);
  if (is_it_running("process2", $display) == false) {
    system("logout &");
  }
}

Its the function “is_it_running” that I need to get to know how it should look.
$display can either contain the raw display number, like this: “:1.0”, or it can contain the display number parsed out, like this: “1”.

  • 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-18T01:28:59+00:00Added an answer on May 18, 2026 at 1:28 am

    I solved it after many attempts.

    Did a piped open

    $pidofcall = open(HANDLE, "process2|");
    

    Then I did whatever I did need to do, and I made the server send a signal to me if it loses connection with process2. If I did need to bang out, I simply did a “goto killprocess;” Then I simply had:

    killprocess:
    kill(9,$pidofcall);
    close(HANDLE);
    $mw->destroy;
    system("logout");
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a ubuntu server which I've locked down to only HTTP, HTTPS and
I have a ASP.NET MVC site that is locked down using Forms Authentication. The
I have multiple logos of various companies in various formats that needs to be
I have a situation I'm trying to cope with involving my company's SVN server.
I have a web application that once signed in, personalizes almost all pages. I
We have a suite of programs that check for new versions at startup, and
I have a web application (.NET, if it matters) where when one of the
I have a shared MS Sql 2008 database with my hosting provider and MS
I'm tasked with obtaining a code signing certificate. Our application actually consists of 2
I want to run some system commands (to fix things) before running an executable.

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.