LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 03-10-2006, 06:34 AM   #1
RDPrinty
LQ Newbie
 
Registered: Jan 2006
Location: Orlando, FL
Posts: 1

Rep: Reputation: 0
Starting a process in a new terminal window


I am writing a daemon that uses XML-RPC to receive method calls to start processes that are identified in the XML-RPC method parameters. Everything is up and running but I cannot figure out how to start a process (given the command line) in a new terminal window. I need to do this in order to provide user interaction with each process that gets started.
 
Old 03-10-2006, 03:49 PM   #2
taylor_venable
Member
 
Registered: Jun 2005
Location: Indiana, USA
Distribution: OpenBSD, Ubuntu
Posts: 892

Rep: Reputation: 43
Strictly speaking, starting a command in another terminal window is fairly easy: xterm -e /path/to/command. However, the problem you'll likely run into will be X client authentication. If your daemon is running as root, it wouldn't be hard to fork off a child process that takes on the client user's identity and sets up the necessary environment to use the user's existing X client, and then spawns the xterm. (You could probably use either fork() or exec() for the xterm, depending on how you want it to run.) But if you daemon will be running with lower privileges, building an environment where you can launch an xterm on the user's X client connection may be (should be) impossible.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Terminal cmd for starting Matlab M-file editor without starting matlab fubzot Linux - Software 2 02-15-2005 06:49 AM
Terminal Process creation gmh04 Linux - General 0 01-25-2005 11:46 AM
Start up process in terminal vitaliiluchka Linux - General 1 10-18-2004 11:21 PM
Diassociating process from control terminal beginner16 Programming 0 01-18-2004 09:02 AM
How does one launch programs 'out of process' in a terminal window? DKnight Linux - General 5 06-07-2003 10:11 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 03:23 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration