General :: Clear A Terminal Screen While Tailing A File?

Aug 30, 2011

I'm looking for something identical to what command-k does in a terminal window on a Mac.

clear / ^L does not work.

View 1 Replies


ADVERTISEMENT

Programming :: Highlight Some Key Words As Tailing A Log File Using A Perl Script

Oct 21, 2010

I'm trying to highlight some key words as tailing a log file using a perl script; about my case: I want to search for a keyworrs just once and highligt all occurrence of them. I want just highlit the keywords but not the whole line but the problems are that perl just catches the first keyword in a line and skip checking for other occurrence. for example if a line like "Error: some exception happen, Unable to process" it just highlight the error and do not process the remain part of the line where it should hilight the word "exception" and "Unable"

2-How can I do some action if for exapmle at least 4 time "unable" message appear ( not just in one line but diffrent line)in below is how I use perl search and replace : Code: s/(?:(unable|exception|warning))/e[1;31$&.......

View 2 Replies View Related

General :: Clear Screen Command For BASH Shell

Jan 21, 2010

I am unable to use clear or cls command on bash shell. I have recently installed Cygwin and am using that for practicing unix commands.

I see that I can use Ctrl + L to clear the screen. I created an alias in my .bashrc to do the same as
alias cls='^L'

This is how i defined other aliases e.g.

And they work. Hence I assume cls will work too but this is what I get when I try to give cls on command prompt. Am i missing something? Is there a way to do this?

Then someone suggested, You cannot alias keystrokes to commands or vice versa. You could just alias cls to an echo command: echo -en "x0c"

And I added the following to .bashrc,

Sourced the .bashrc file. No errors but cls still does not clear the screen. Infact when I typed the echo -en "x0c on command prompt as well, nothing happened. What does this command do?

View 3 Replies View Related

General :: Can't Make Clear On Most Manpages - Can't Simply Usebzip2 File?

Feb 5, 2010

What they don't make clear on most manpages is that you can't simply usebzip2 thisfile.xxx that gives bzip2 free rein to include the original extension in the filename. You must use the -c tag (and better than that, the -c and -k tags, the latter of which leaves the original file untouched post-compression), then -if you wish- the level of compression to apply to a file (in the range of 1-9, with 1 being next-to-no compression and 9 the highest level of compression), followed by the filename/s to compress, then after a single space, a right-hand carat (">"), then another single space and the name you want to give the compressed bzip2 file, remembering to add the extension ".bzip2" (no quotes) to your filename.

Sounds pretty obvious, doesn't it? Well, I thought so too once I read a particular manual page and reasoned it out. Then I remembered the 15 or so minutes it took me to Google myself to that manpage, and I decided it was good Net citizenship to put up a little step-by-step like this one on an appropriate forum on which I was already a registered member.

It isn't just the C++ heads or the Python jockeys who need things broken down to their simplest bits for them from time to time. Newbies and near-newbies do, too. I took it as read that was the reason for this subforum, so here I went.

View 1 Replies View Related

General :: User Passwords Display In Log File In Clear Text?

Apr 21, 2010

Running SunGard Banner software on RHEL 4.2 x86-32 bit Linux server Oracle Application 10.1.2.3 samba enabled. Users run processes/reports that are logged in a daily log file. In our daily job submission log files the user password shows up as clear text.The password shows up as $PSWD (sample from the logfile):

$JOB
$BANUID
$PSWD

[code]...

View 1 Replies View Related

General :: Launch A Terminal By Clicking On The Terminal Icon At The Top Of The Screen

Apr 22, 2010

I have a favorite REXX program called fv2. When I was a Windows user I had an icon for fv2 on the Quick Launch bar. Click that icon, and the program ran. Now, as a Linux (Ubuntu) user it is necessary to go through several steps to run fv2.

1) Launch a terminal by clicking on the terminal icon at the top of the screen. What's that area called? The GNOME panel?
2) Enter: ~/Desktop/RexxScripts
3) Enter: regina fv2

I run fv2 several times per day and would really like to have the convenience of a clickable icon.

View 3 Replies View Related

OpenSUSE Install :: Terminal Root Login In Clear?

Jul 12, 2010

So when I write my password in a terminal the letters occur in clear not ***(star). what shall I do that enetering the password to work right.I want to say if I push key f for example the system to show me one *.I know it's easy but really I forgot .

View 9 Replies View Related

OpenSUSE Install :: Clear Terminal When Booting And Logging Out?

Dec 3, 2010

I've noticed on other Linux distributions that after boot up and logging off the console screen clears and provides basic information like the Linux distribution and then under it the login prompt. How can I do this for openSUSE 11.3?After I install or reboot I still have all the boot up stuff shown and when I logout after performing some work my commands are still shown. I boot the system to runlevel 3 and barely use the GUI but would like the screen to clear everything after boot up and logging out.

View 6 Replies View Related

General :: Terminal Proxy Or Screen Without Terminal Emulation?

May 26, 2010

How can I make terminal applications immune to terminal emulator close, but still able to use all virtual terminal features?

egin{UPDATE}I want my terminal application remain alive and accessible if I accidentally close terminal emulator. This functionality is provided by screen and tmux, but they have issues with colors and they flush screen.Yes,I can run the shell inside screen, but I do not want the shell remain alive unless there is some other program running.

end{UPDATE}I see this must be something like screen, but without VT100 terminal emulation, something which will just apply whatever application does with "terminal proxy"'s terminal (like outputting something to stdout/stderr or using stty to set terminal options) to the terminal this proxy runs in.

// I know about screen and altscreen on, but it makes either this (screen with TERM=screen):

or this (screen with TERM=rxvt-unicode):

while I want this (rxvt-unicode without screen):

I have figured out that everything looks fine if I compile rxvt-unicode with USE=-xterm-color (in fact vim looks like on the second picture even without screen if I add this USE flag) and set TERM=screen-256color, but I do not like this workaround because it actually changes colors and I can't be sure that it will always change them only this way:

View 4 Replies View Related

General :: 10.10 Booting To Terminal - Black Screen Instead Of The Normal Purple Screen

Dec 8, 2010

i am fairly new to Ubuntu. i was using it fine for a month, but today, when i booted my computer up, it came up with a black screen instead of the normal purple ubuntu screen. the black screen had white text on it, and asked for my username and password. from there, it was a terminal prompt. i have been google searching for a while, and have tried typing "startx", "sudo apt-get install ubuntu-desktop", "sudo gdm", and i have also tryed uninstalling xorg, and reinstalling, and none of these things wanted to do anything for me.

View 4 Replies View Related

Software :: Clear Screen On Logout Using Pam

Jun 24, 2011

If I logout on terminal, old contents are still possible to be read. I was trying to get it to work using pam_exec, by adding

Code:

Code:

This however didn't do antyhing. How to make it work using pam? I know that i can simply add some control codes to /etc/issue to get basically the same effect, but i wanted to do it using pam.

View 1 Replies View Related

Software :: Redirect ALL Terminal Output To File And Screen (for Entire Session)?

Jul 6, 2010

Is there one command that will let me record an entire terminal session (with any possible errors) to a text file while also seeing all output on screen too? I know it can be done for individual commands, but I'm looking to do this for an entire session where the individual commands will be normal (i.e., not piped into tee, etc.). It would be even better if the command prompt is captured too. The obvious utility of this makes me think someone surely has come up with a solution long ago (probably in the 60's).(I'm sure it goes without saying, but subsequent output in that session should be appended to the file. The file should contain the full history, with all output and errors, of the session.)

View 9 Replies View Related

Programming :: Bash Script Trying To Remove A Leading 'and A Tailing'?

Mar 28, 2010

I have a script that calls for a file description on a core file. I then pull the name of the process that caused the core file.
unfortunately, the process name is pulled with a leading ' amd a tailing'. I would like to remove the leading char and the last char.

code:

VAR=`file /tmp/core.1432 | awk '{ print $14}'`
echo "Process Name: $VAR"

output:

Process Name: 'ProcessName'

Results I need:

Process Name: ProcessName

I tried sed, but it seems to not like using the special char '.

View 14 Replies View Related

Debian Multimedia :: Booting Screen Not Clear

Sep 20, 2010

Debian 60 (squeeze, testing) 64-bit. The window for selecting kernels at startup is NOT clear.

View 9 Replies View Related

Debian :: Boot Screen For Selecting Kernel NOT Clear

Sep 20, 2010

Debian 60 (squeeze, testing) 64-bit

The window for selecting kernels at startup is NOT clear.

View 1 Replies View Related

Programming :: Found 1 Or 2 On Environment But The Screen/pictures Are Not Clear

Jun 20, 2010

I have been googling around for Java VIDEO tutorial on Linux environment running command lines (on Editor NOT IDE). However most of them found are on Windows environment running IDE. I only found 1 or 2 on Linux environment but the screen/pictures are not clear.

View 2 Replies View Related

Fedora :: Inhibit The Clear Screen Before Login Prompt ?

Aug 10, 2010

The mingetty --noclear parameter is failing with my current Fedora 13 installation. In the past this parameter would inhibit the clearing of the screen before prompting for the login name on the console. At present even with the parameter it clears the screen.

My /etc/inittab (which always worked past versions) contains:

Code:

Can someone tell me if I might be doing something wrong, or was this parameter dropped in the current version? Does anyone know of a workaround?

I understand the security purpose of the clear screen. But the particular computer is in a secured location. I prefer to look at the content of the previous screen for debugging and other chores.

View 4 Replies View Related

OpenSUSE Install :: KDM Black Screen - Need To Clear All Config Files

Apr 19, 2011

No more than 15 hours after a breezy installation and setup I somehow managed to stop the desktop manager from displaying. Once you boot into Suse, the loading bar goes across, a white flash, then a blank screen forever. I figured it was KDM once I booted into x11safemode and tried to boot the desktop manager, it recreated the situation.

I've tried un-installing and installing KDM again, however it seems to reuse the same config file. I'm thinking about deleting the config file mentioned, but I'm not sure what will happen when I install the desktop manager, if there's any setting up to get it to work with my setup, or even if that will fix the situation.

View 3 Replies View Related

General :: Read .gz File Direct On Shell/terminal Without Decompressing The File?

Dec 9, 2008

How can I read .gz file direct on shell/terminal without decompressing the file?
satimis

View 5 Replies View Related

Ubuntu :: Migrating Quad-boot Setup - Console Screen Doesn't Even Clear

Mar 13, 2010

I know that these forums aren't M$ support forums, but any mention of Linux and open source there just ends up in "don't use Linux"-type replies, so i figured i should ask it here. I have a quad-boot setup (Win7x64-Win7x64-K9.10x64-K9.10x64). I am in the process of migrating this setup to another (bigger) HDD. The Win7 system partitions were cloned using 3rd paty imaging software, Linux system partitions were cloned directly (cat /dev/sda5 > /dev/sdb5), data partitions were freshly created and populated with files copied from old partitions.

As the hard drive is bigger than previous one, i decided to add a little more space to Win7 system partitions. So when creating new partitions, i left 5GB unallocated space between them in order to grow the partitions later. I cloned the new partitions, ran the chkdsk with all options on to make sure the resulting partition survived the migration, then checked if it is readable under Linux (it was), used KPartitioner to grow the partition to the new size, again booted into Win7 Recovery, ran chkdsk with all options on, removed bootloader and made a new one using bcdboot.

Now, my Linuxes boot OK (there was some wankery involved but nothing too serious), but neither of my two Win7 can. I checked the bootloader, fiddled with different settings (e.g. removed setting the root by UUID), even tried to manually boot it from commandline - to no avail. After "chainloader +1" and "boot" it just does nothing. No error messages, nothing at all - the console screen doesn't even clear.

View 2 Replies View Related

Red Hat :: File System Corruption - Super Block Could Not Be Read Or Don't Describe A Clear Ext2 File System

Jul 12, 2010

My Redhat Enterprise Linux 4 with 6x partitions (/, /boot,/home, /usr, /var, /tmp) of 6.0 GB IDE Hardisk was working quite fine. I decided to create LVM on /home and /var partitions but due to some errors occured and I delete the /home partitions. That's why partition table altered. I then delete 4,5,and 6th partitions (/home, /var, /tmp) partitions and now try to create one by one but following error is coming:-

[Code]....

The Super block could not be read or do not describe a clear ext2 file system. E2fsck b 8193 <device> I have tried following commands,but could not successful:- e2fsck -p /dev/hda7 (where hda7 was created but afterthat it was deleted) e2fsck -a /dev/hda7

View 2 Replies View Related

Debian :: Clear The Epiphany Download File?

May 16, 2011

How do I clear the epiphany download file?

View 2 Replies View Related

Server :: Lighttpd Access.log File Is 73 GB - How To Clear It Partially

May 19, 2010

I have an Ubuntu server running with lighttpd.

The file, access.log has utilized 73GB at: logs/lighttpd/, which contains data since 3 to 4 years (approx.)

So, i need to have only last 6 months logs in the file and the rest to be cleared.

View 4 Replies View Related

Ubuntu :: Can't Turn On Terminal Bell In Gnome-terminal Using Remote Screen Session With Irssi

Nov 6, 2010

I'm using 10.04, and gnome-terminal GNOME Terminal 2.30.2 . I have irssi running on screen session on remote host. And I've been struggling for quite many days to configure it to produce either visual feedback or ring terminal's bell when I receive a private message or one of those that are highlighted.

My compiz settings window in General tab has 'Audible bell' checked.

My GNOME terminal has 'Terminal bell' checked.

I also added 'set bell-style audible' to my ~/.inputrc

And I also tried to manually load pcspkr module into my kernel.

No of the above helped or at least I haven't been able to notice any difference.

I also used some commands for irssi to produce bell sign.

View 2 Replies View Related

Ubuntu :: Clear History In Recent File Folder Under Dash?

May 22, 2011

i am using natty 11.04. can you please guide me how to clear recent history in dash under search files folders?also tell me how to customize dash application menu etc...

View 1 Replies View Related

General :: Locking The Screen From Login Terminal?

Dec 29, 2010

So I've got this home file server, and I want to display certain stuff using:

top
who
a tcpdump of snort logs, scrolling in real time

I want it to display on the screen using a split terminal screen, so all of the information shows on one display, but I do not want it to be vulnerable to a local attacker. Is there any way I can have these things start up at login, but prevent that user from doing anything other than viewing this information?

View 1 Replies View Related

General :: Send Command To Another User's Screen Terminal

Mar 22, 2011

I have two users; user1 and user2. I have a bash script run by user1, that needs to run a command on a screen terminal started by user2.

View 1 Replies View Related

General :: How To 'find' Text Listed On Terminal Screen?

Dec 21, 2010

Since I see on my Centos 5 system, when using the Gnome Terminal, there is no 'Find' feature, do I use grep to search the output on Gnome Terminal?

I see grep syntax is:grep search-term file

But what do I use as the 'file' when what I want to search is the contents of the gnome terminal screen?If there is a good terminal program that does have a 'find' feature, let me know.

View 2 Replies View Related

General :: Launch Screen As First Program When Opening Terminal?

Jun 14, 2011

I want to launch the screen program by default and automatically every time that I open the bash terminal. How can I set this in terminal? I'm using lxterminal - terminal for lxde desktop environment.

View 2 Replies View Related

General :: LiveCD - Terminal Like Screen Asking For Local Host Login

May 12, 2010

I have loaded the LiveCd successfully on 3 laptops, now I'm at my daughters new Toshiba & and getting a "Terminal" like screen asking for "Local Host" Login, never had this experience before.

View 6 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved