General :: Viewing ONLY The "header" Of The Top Command?
Feb 6, 2011
I'm trying to create a cron job that displays ONLY the "header" from the Top command. So, I'd like to see this.
Code:
top - 09:14:09 up 270 days, 3:05, 1 user, load average: 5.65, 4.74, 4.53
Tasks: 425 total, 2 running, 420 sleeping, 0 stopped, 3 zombie
Cpu(s): 35.6% us, 8.6% sy, 0.0% ni, 51.7% id, 4.1% wa, 0.0% hi, 0.0% si
Mem: 8306036k total, 6798252k used, 1507784k free, 475028k buffers
Swap: 15626944k total, 5044k used, 15621900k free, 5283860k cached
I've got the cron set up to do exactly what I want. It runs Top and uses sendEmail to shoot the information to me via email once every morning. It sends the whole output and that's great.
Problem is, when it sends to my mobile email, I can't read it. The formatting is FUBAR'ed so I'd like to see ONLY the header.
How can I make this happen? All I need is the command to display the header of Top, nothing more, nothing less.
View 3 Replies
ADVERTISEMENT
Apr 14, 2010
When we view multiple files using less, how to go on to the next file? I gave these two commands:
Code:
[root@localhost log]# ls -lt boot.log*
-rw------- 1 root root 0 Apr 11 04:02 boot.log
-rw------- 1 root root 0 Apr 4 04:02 boot.log.1
-rw------- 1 root root 0 Apr 1 19:14 boot.log.2
-rw------- 1 root root 0 Mar 21 04:02 boot.log.3
-rw------- 1 root root 0 Mar 14 04:02 boot.log.4
[root@localhost log]# less boot.log*
This is what I got:
Code:
boot.log (file 1 of 5) (END) - Next: boot.log.1 <RETURN>
(END) - Next: boot.log.1
I could not view boot.log.2.
View 3 Replies
View Related
Apr 22, 2011
where can i get socket.h header file? will copy pasting this header file in 'incl' directory allow me to use it in the my program?
View 1 Replies
View Related
Jan 6, 2011
I have windows 7 and ubuntu 9.10 installed in my system. I want to view my linux drive in windows. Is there anyway to do that?
View 4 Replies
View Related
Oct 26, 2010
I'd like to know how to see which files have been printed on the printer. I can see which print jobs have run and who submitted them using the following command:
Code:
$ lpstat -W completed -o
but it doesn't show me the names of the files that printed.
Is there a way to set a retention policy to have it hold the job in the queue even after it's finished printing? Or a command to view the details of jobs that have already run? I'm looking for something similar to the output of the lpq command.
View 1 Replies
View Related
Aug 21, 2010
I dual boot winxp and fedora. Though i can view ntfs partitions using fedora, windows doesnt recognize ext3fs partitions.
I have tried few softwares but they support ext2fs only.
View 4 Replies
View Related
Jan 28, 2010
i want to know how to view tamil websites in redhat linux EL5.pls assist to know the detail.
View 5 Replies
View Related
Oct 26, 2010
I backed up my Laptop with a script, as follows:
Code:
#! /bin/bash
sudo
growisofs -Z /dev/dvd -dvd-compat -r -v /home
I then installed a new version of Ubuntu 10.04 from disk and copied the files in /home from the cd to the hard. I am able to open, view etc. all the files in most directories except those in /home/documents. There are text files created by gedit, OOWP and several PDF files. I cannot open or view these files, depending: gedit and pdf files gets a Err.Msg. "Don't recognize file type" (it is clearly marked PDF) . The OO files look like rows of 'high bits' and a dialogue box opens giving me the options to change Char. Set, Font, Language, Paragraph break.
View 6 Replies
View Related
Nov 16, 2009
Is there a way to view all the crontab files, owned by root, users, and other system accounts, that exist on a system simultaneously rather than having to go the individual accounts? The distribution in question here is the Debian 4.0 release.
View 2 Replies
View Related
Aug 9, 2009
I created a password file for use with ncsa_auth in squid. Firstly, is there a way to view the passwords in the file or are they all encrypted? Secondly, is there a way to get squid to reauthenticate the user after 24 hours?
View 9 Replies
View Related
Aug 19, 2010
I'm configuring a CentOS 5.4 workstation. I have been able to apply most of the security that is required. I have met all but one logging requirement. How do you get the count of old passwords associated with users? I don't need to see their passwords just how many times they have changed them. I have set remember to 24 in the /etc/pam.d/system-auth file. I don't know where the file is that contains this information.
View 1 Replies
View Related
Feb 19, 2010
I have indexnew.html file in /var/www/html. I have to view this file in the browser within the network and without using Apache server. Because, my Apache server gets the request to my application. I used http://localhost/indexnew.html to open the file, but it gets to my application.
View 5 Replies
View Related
Mar 20, 2011
I dont know if terminal is what im after, but here is my situation: This is a follow up to this thread on not some graphics issues with my linux install: [URL] I have finally managed to get a full install complete, but im still getting this screen on boot (prior to this screen i DO get the kubuntu loading screen) [URL]
So in the GRUB at start i have choosen Linux - recovery mode, to see what options that gave me, and i tried FailSafe mode, but i get an error and it just goes back to the recovery menu. My question is how do i get to the terminal style screen as its too quick for me to see the error, and i cant photograph it as its too fast. i cant see it being an issue with the graphics because of the properly displayed kubuntu loading screen beforehand
View 4 Replies
View Related
Apr 25, 2011
I use Ubuntu, and Google Chrome mostly. How can I kill these HTTP headers, so that my browser caches this data? I believe it is XHR. Here are the relevant HTTP response headers:Cache-Control:no-cache, no-store, must-revalidate Pragma:no-cache.I also have Firefox, is there a plugin or something I can use to not respect "no-cache"?
View 1 Replies
View Related
Aug 27, 2010
I'm trying to add a header to many .cpp files in a directory (or directory tree).
My attempt was:
Code:
If I put part of the command inside quotes the substitution occurs, but then I get other errors like:
Code:
cat:
No such file or directory
I could just write a small program to do it.
View 3 Replies
View Related
Mar 25, 2010
I am trying to rearrange header in apache but i have run into some problems. i was able to write some with mod_header but i cannot set some headers like last modified and content length. this is what i want to do,
Firstly we have a company that can only read our xml request if the headers are in a certain order and our application doesnt send the headers in that order.
This is how the headers should look like:
And this is how it is right now:
I have used the apache to unset and set most of the but i cannot get all of them to work.
View 1 Replies
View Related
Jan 30, 2011
I'm trying to install vmware tools in mint.
All goes well until I get to this -
What is the location of the directory of C header files that match your running kernel? [usr/src/linux/include]
When installing the vmware tools it says to just hit enter and the default will be used.
Hitting enter just keeps giving me the error message- The path "usr/src/linux/include" is not an existing directory.
View 14 Replies
View Related
Mar 16, 2011
I'm interested in viewing the owners of files on a Windows Server 2003 share (mounted on a Linux computer). These "owners" would be users in Active Directory. If it's not possible to see the username, I wonder if it will at least show a unique identifier. Currently it says all files are owned by root with an "ls -l".
View 4 Replies
View Related
May 17, 2010
I have a Haupagge WinTV 1300MCE capture card,what is the best program to use for viewing Television and recording in Ubuntu 10.04 LTS or what programs are common with this card, best used.
View 1 Replies
View Related
Apr 12, 2010
I have been trying to view streaming video ([URL]) on my LCD TV (Sony KDL-40V5100). The video is dropping frames when I view in full screen mode. I am currently running with Ubuntu 9.10 and have installed both the Adobe plug-ins.
View 3 Replies
View Related
Jun 25, 2010
I am getting '+'symbol (-rw-r-----+) while viewing the file permission of exim_mainlog files.Please let me know the reason for this '+' symbol.-rw-r-----+ 1 mailnull mail 648448492 Jun 25 10:27 exim_mainlog
View 2 Replies
View Related
Mar 10, 2011
I would like to make Firefox view text files not in its internal editor, but in the external editor (namely EmacsClient).Is it possible to change this default behavior of Firefox?I beg your pardon for being inconcise, I'll try to state the matter once again. First thing to mention is that I use the Linux version of Firefox. That means that unlike the Windows version the contents of the application bindings dialog is very scarce.
When I click on the link to a text file (be it remote or local) by default Firefox opens it in the internal browser. I've tested, somehow it looks at file extension - when for example I make a file with .mpg extension, the behaviour is as it should be - the dialog with "Open With..." and stuff. When the file has unknown extension (unknown to /etc/mime.types), in my case it's .out, pure text format - the default behaviour is to open it in a Firefox window.
View 2 Replies
View Related
May 19, 2010
Is there any software in Linux to view huge .txt files, say, over 10 megas? I'm now using default "gedit", version 2.28.0, which seems to not be able to open huge .txt files. It's the same case for Windows default .txt browser, but in Windows, "Win Word" seems to work fine. software under Linux to browse huge .txt files?
View 5 Replies
View Related
Mar 22, 2010
I mean, isn't that exactly how normal home users can visit search engines such as Google or Bing and search for information?
View 7 Replies
View Related
Jun 10, 2010
I am new to Linux, these type of forums and open source programs other than Firefox. I am not sure that this is the proper place to ask this question. If not, I apologize and ask that you please direct me to the proper location. I look forward to being able to leave MS but would like to have documents that I create viewable by the Windows Word programs.
I am using Linux Mint 8 as a dual boot setup with Vista on my Presario lap top. When I am operating with Mint8 and create a simple doc and save it as a word 2000 document and place it in a folder I can locate and open it using Mint 8 very nicely. But, when I try to access it using Vista and Word 2000 it does not appear in the folder when I try to view "all files". Conversely, Not all of the documents, which were created using windows and already exist in my folders, jpeg files for sure, are visible when I look in a folder using Mint8 and try to view "all files". I did add to a doc that was created by Vista/Word using Mint8 Open office and those edits were viewable using either Vista/Word 2000 or Mint8 open office.
View 3 Replies
View Related
Jan 22, 2011
Why doesn't this work?:
View 1 Replies
View Related
Oct 15, 2010
How can I extract 5th column from a file without the header.
View 5 Replies
View Related
Feb 13, 2010
I am using Ubuntu 9.04 with kernel version 2.6.28-11-generic.I want to compile the foll. file but i get <linux/slab.h> no such file or directory.
The kernel headers are installed in my system at /usr/src/linux-headers-2.6.28-11-generic/ directory. During compilation i specified as follows:
Why gcc is unable to find the linux/slab.h header file?
View 1 Replies
View Related
Jan 14, 2011
I recently (and accidentally) wiped a hard-drive which should NOT have been formatted. PhotoRec was able to recover some of the most important files from the disk.
Part of those files include a large music collection of flac files. I've placed these in a folder named 'FLAC' that looks like this:
[Start of FLAC Folder]
f11655088.flac
f11698672.flac
... (around 2,000 files total)
f291142600.flac
[End of FLAC Folder]
I'm running a livecd to rescue this data. I have access to a standard terminal in Ubuntu 10.10. I've noticed that the music player in linux will display the song title when I open any of these songs.
My goal is to automatically extract the song title from these files and update their names from f12313512.flac to 'Libera - Rebirth.flac'
View 1 Replies
View Related
Jun 5, 2011
I'm working with a GuruPlug...maybe you've heard of them.I'm trying to get EasyCap DC60 drivers installed on it(easycap_dc60.0.9.tar.gz), but in the README file I see that the "header files" must be present.nfortunately they are not. This little wall wart runs Debian/Lenny, probably some server oriented build.uname -r reports:2.6.32-00007-g56678ecIt boots to RunLevel 2 and stays there, incidentally.I tried apt-get install linux-headers-$(uname -r) but I am told "file not found" or something similar
View 5 Replies
View Related