LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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
 
Thread Tools
Old 11-12-2008, 06:51 AM   #1
linuxdoniv
Member
 
Registered: Mar 2008
Posts: 63
Thanked: 0
xterm window


[Log in to get rid of this advertisement]
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.
linuxdoniv is offline     Reply With Quote
Old 11-12-2008, 10:47 PM   #2
nilleso
Member
 
Registered: Nov 2004
Location: ON, CANADA
Distribution: ubuntu, RHAS, and other unmentionables
Posts: 365
Thanked: 2
example:
Code:
xterm -e top
cheers
nilleso is offline     Reply With Quote

Reply

Bookmarks


Thread Tools

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
X Window/Xterm from Fedpra egurski Solaris / OpenSolaris 2 06-27-2005 10:17 PM
Xterm window Font Cort Linux - Newbie 8 09-18-2004 02:56 PM
X Window/Xterm from Fedora egurski Fedora 1 09-15-2004 04:13 PM
New XTerm Window in C palbert Programming 1 11-24-2003 03:12 AM
xterm in root window symphony_in_c Linux - General 2 07-02-2002 03:15 PM


All times are GMT -5. The time now is 08:30 PM.

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
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration