LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-10-2009, 05:21 PM   #1
dn1203
LQ Newbie
 
Registered: Sep 2009
Posts: 2

Rep: Reputation: 0
Xterm with script command


I am using xterm with the -e switch to run multiple commands and having problem with the script command. The command follows the script command does not executed until the script command exits.

xterm -e "script filename ; ls ; csh"

Is there any way to run the ls command while the script command is not terminated yet.

Thanks,
Duc
 
Old 09-10-2009, 05:25 PM   #2
karlatLQ
Member
 
Registered: Sep 2009
Posts: 67

Rep: Reputation: 19
They are executed sequentially. You could add the "ls" command into the script, then it would execute before the script exits.
 
Old 09-10-2009, 08:01 PM   #3
dn1203
LQ Newbie
 
Registered: Sep 2009
Posts: 2

Original Poster
Rep: Reputation: 0
It does not help with the ls in the shell script. I also see the same problem when running the script in the shell environment without using xterm -e.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Executing another script from xterm Chets Programming 5 11-01-2007 06:40 AM
Xterm command line scrolling dah328 Linux - General 2 04-27-2006 04:32 PM
help with command copy in xterm harys Linux - Software 1 04-07-2006 11:58 AM
how to log user commands in xterm without using "script" command lilachb Linux - General 2 08-28-2005 02:08 AM
how is black xterm background in IceWM when issue a xterm command? BRAHmS Linux - Software 1 02-14-2005 04:51 AM


All times are GMT -5. The time now is 10:33 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration