LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 12-06-2004, 04:34 AM   #1
jnusa
Member
 
Registered: Jul 2004
Location: Denmark, Aarhus
Distribution: Ubuntu, Suse
Posts: 98

Rep: Reputation: 15
script + multiple terminals


I'm looking for a way to start 4 terminals, that each tail -f a specific log file? Is there any way to write a script, that will do this?
psedo code
xterm tail -f /log/1.log
xterm tail -f /log/2.log
...

Thanks in advance.
/Jnusa
 
Old 12-06-2004, 05:18 AM   #2
webgovernor
LQ Newbie
 
Registered: Jun 2004
Distribution: Ubuntu 8.04 LTS, Gentoo (various)
Posts: 28

Rep: Reputation: 15
That could be rather usefull,
I wish I could help.

sorry...just a newb.
 
Old 12-06-2004, 05:19 AM   #3
theYinYeti
Senior Member
 
Registered: Jul 2004
Location: France
Distribution: Arch Linux
Posts: 1,897

Rep: Reputation: 61
You're so close to the answer, that I'm not sure this is the answer you want...
Code:
xterm -e tail -f /log/1.log &
xterm -e tail -f /log/2.log &
xterm -e tail -f /log/3.log &
xterm -e tail -f /log/4.log &
Or why not simply tail all files at once?
Code:
xterm -e tail -f /log/*.log &
Yves.
 
Old 12-06-2004, 05:47 AM   #4
jnusa
Member
 
Registered: Jul 2004
Location: Denmark, Aarhus
Distribution: Ubuntu, Suse
Posts: 98

Original Poster
Rep: Reputation: 15
That works.. must have missed the -e option in man pages. Thanks.
Btw, how is that ITX board working out for you? What do you use it for (ftp, stream/video server, video player ect?). Is it sufficient to run divx/xvid codecs? And how is hw compatibility. I'm thinking about getting a itx board, because of the passive cooling - no noise.
 
Old 12-06-2004, 07:11 AM   #5
theYinYeti
Senior Member
 
Registered: Jul 2004
Location: France
Distribution: Arch Linux
Posts: 1,897

Rep: Reputation: 61
Hi,

I use this box for:
- watching DVDs,
- getting/renaming/browsing pictures and videos from the digital camera,
- burning (and browsing again ) pictures and videos on CD-R,
- watching TV (not very usefull, as it is plugged to a real TV).

Intended further use:
- rotate pictures and videos,
- record TV,
- burn (for later viewing) recorded TV programs,
- receive and send faxes,
- receive and send e-mail (SMTP, IMAP).

I know my way in Linux, and making this VIA stuff work was VERY FAR from easy. See:
http://perso.club-internet.fr/yves.gablin/ LINUX (in English) > Hardware.

Yves.
 
  


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
DISCUSSION: Some fun with terminals : script and screen tools keefaz LinuxAnswers Discussion 2 06-15-2005 03:35 AM
Multiple terminals one computer Fice Linux - Hardware 2 05-11-2005 08:13 PM
Multiple NICs, virtual terminals? Ned2 Linux - Networking 6 02-27-2005 04:44 PM
Adding Multiple Terminals to Linux thesam Linux - Networking 3 12-31-2001 05:15 AM
Multiple X terminals? zhenwu Linux - General 8 11-19-2001 02:37 PM


All times are GMT -5. The time now is 08:35 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
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration