LinuxQuestions.org
Support LQ: Use code LQCO20 and save 20% on CrossOver Office
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
 
LinkBack Search this Thread
Old 11-12-2008, 05:51 AM   #1
linuxdoniv
Member
 
Registered: Mar 2008
Posts: 63

Rep: Reputation: 15
xterm window


Hi,

I am not able to figure out How I can start an xterm window in some arbitrary path and execute a program in that directory.

For example my home directory is /home/linuxdoniv and i have to execute a program in /home/linuxdoniv/temp in one more xterm window.

What parameters should I give for system() system call so that this is done.

Thanks for any help.
 
Old 11-12-2008, 09:47 PM   #2
nilleso
Member
 
Registered: Nov 2004
Location: ON, CANADA
Distribution: ubuntu, RHAS, and other unmentionables
Posts: 372

Rep: Reputation: 31
example:
Code:
xterm -e top
cheers
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
X Window/Xterm from Fedpra egurski Solaris / OpenSolaris 2 06-27-2005 09:17 PM
Xterm window Font Cort Linux - Newbie 8 09-18-2004 01:56 PM
X Window/Xterm from Fedora egurski Fedora 1 09-15-2004 03:13 PM
New XTerm Window in C palbert Programming 1 11-24-2003 02:12 AM
xterm in root window symphony_in_c Linux - General 2 07-02-2002 02:15 PM


All times are GMT -5. The time now is 07:47 AM.

Main Menu
 
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration