On Sun, 20 Jan 2002 22:05:14 -0600 Chad and Doria Skinner <[EMAIL PROTECTED]> implied:
> > > Use rxvt instead with the -C option. Or xterm with -C (if it does > > transparency, which I think it does not). Eterm might have this > > option too, maybe. > > I downloaded this and it works fine, but I would like the window to be > non-interactive...Do you know if it is possible to just have the > console messages displayed without having a bash shell prompt in the > term window? I downloaded a file called logmon that let's you have one ror more logs viewable in a single term window (I have 7) at once. I think I got it on freshmeat. I then wrote a script that sets a terminal window with the attributes I like (size, color scheme, etc), then it uses sudo and calls logmon with all of the logs I want tailed, placing it all in a single window. Basically, the call goes something like this: #!/bin/bash xterm -geometry 180x64+80+0 -fg yellow -bg black -ls +si -sk -sl 2048 -title log mon -e ~/bin/logmon & This makes the window and calls the second script. Since it's calling another script, I had to force this script into the background, which is why I added the ampersand (&) at the end of the line. In my second script (~/bin/logmon, or in it's actual path either $HOME/bin/logmon or /home/kcsmart/bin/logmon) I don't push the file into the background because I use sudo and need the window to be active in order to pass my password. In that script I call use sudo to call logmon and pass the parameters for the logs I want to view. You can do the same thing for a single file by replacing the second line with something like this: xterm -geometry 180x64+80+0 -fg yellow -bg black -ls +si -sk -sl 2048 -title log mon -e sudo tail -f /var/log/messages In this case, you don't want to push it into the background. This is because using sudo you'll need to give the password. If you force it into the background it won't be active and can't get the password, though it may or may not give a prompt for one. This will tail the /var/log/messages file in the xterm. You could use other terminals (Eterm, rxvt, etc) as long as the appropriate options are used to replace the xterm. I believe they can all use the -e option for the same function I used here (making the window stay open while the file is displayed and close automatically once the display is killed). Naturally, this is a BIG window and might not be what you want. But, it can be tailored in both size and color scheme. You can also make the title anything you want. If using logmon, a "q" will quit it and close the window. If using it as in my second illustration, a CTRL-C is needed to kill the operation and close the window. I haven't added this to my startup script for when I log into X, but I see no reason it wouldn't work. The only thing that prevents me from doing it that way is I think I had an issue with widow focus when I first start X (it's been a long, long time and don't recall for sure what the reason was). I instead have mine on a hotkey combination that I use when I decide to bring it up. -- Press every key to continue, any other key to quit. _______________________________________________ Redhat-list mailing list [EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/redhat-list