-   Linux - Software (
-   -   script + multiple terminals (

jnusa 12-06-2004 04:34 AM

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.

webgovernor 12-06-2004 05:18 AM

That could be rather usefull,
I wish I could help.

sorry...just a newb.

theYinYeti 12-06-2004 05:19 AM

You're so close to the answer, that I'm not sure this is the answer you want...

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?

xterm -e tail -f /log/*.log &

jnusa 12-06-2004 05:47 AM

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.

theYinYeti 12-06-2004 07:11 AM


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: LINUX (in English) > Hardware.


All times are GMT -5. The time now is 01:17 PM.