Sponsored Content
Full Discussion: Need unix/linux command
Operating Systems Linux Need unix/linux command Post 302664185 by Mani_apr08 on Friday 29th of June 2012 08:10:52 AM
Old 06-29-2012
Thank you Kamaraj... below metioned cmds also worked ...

Code:
sar | awk 'NR>2 {$2=$3=$5=$8="";}1' | tr -s '  ' '\t'

thanks once again

---------- Post updated at 07:10 AM ---------- Previous update was at 04:22 AM ----------

Hi one more doubt about sar command. could you please advice on this

Code:
nohup sar -u 10 $COUNT |  awk 'NR>2 {$2=$4=$7="";}1' | tr -s '  ' '\t' 2>/dev/null >sar.out &

i have execute above line from shell script .. but sar.out is created with ZERO bite size..

Help on that what is the problem here

Last edited by Scrutinizer; 06-29-2012 at 09:13 AM.. Reason: code tags
 

9 More Discussions You Might Find Interesting

1. Programming

writing your own command in unix/linux

Hi I am very new to Linux programming,otherwise I have exposure to Linux. Was thinking about something like writing my own commands for Linux. Any ideas where to start, any useful links and what I need to know before I start with this. Thanks :) Sidhu (3 Replies)
Discussion started by: Amardeep
3 Replies

2. UNIX for Dummies Questions & Answers

How to convert this linux command to Unix AIX?

How to convert this linux command to Unix AIX? I have tried this command and work in CentOS: tail --line=0 --retry -f --follow=name --max-unchanged-stats=1 logFile.log But in AIX, the tail haven't "--retry" "--follow=name" option. Thanks in advance. (1 Reply)
Discussion started by: chris13work
1 Replies

3. UNIX for Dummies Questions & Answers

su command difference between unix and linux

Hello all the su with -l option is running normal with linux but when i try to run it on unix AIX 5.2.7 it's not working with -l option any help (6 Replies)
Discussion started by: islam.said
6 Replies

4. Shell Programming and Scripting

Stress testing php files at Unix/Linux Command line

Hi, Your great help is very appreciated. I am looking for any Unix command or tool for doing Stress/Load test of php files at command prompt. I tried torture.pl but it is not working after20 concurrent threads/users. as it is very urgent for me..please suggest ur ideas asap. thanks (5 Replies)
Discussion started by: Malleswari
5 Replies

5. UNIX for Dummies Questions & Answers

install command flag Linux/Unix issue

Hi all, I was trying to install from source USB_ModeSwitch on my Mac. I have always had success with the basic ./configure, make, make install commands in terminal so don't know how, why or what. The issue I came across is that the makefile.conf uses the -D flag while installing and on UNIX... (0 Replies)
Discussion started by: jprokos
0 Replies

6. HP-UX

Linux to UNIX command

Hi, I have the below command for Linux find -iname '*.ear' -o -iname '*.war' | xargs grep -R org.apache.log4jWhat is the HP-UX equivalent of this ? (4 Replies)
Discussion started by: mohtashims
4 Replies

7. Fedora

Which is the better platform to learn UNIX/Linux (Kali Linux Vs. Red Hat or other)?

I just started a new semester and I started my UNIX class yesterday. I've already decided to use python along with my learning process but what I really want to use with it is Kali as my UNIX/Linux platform to learn off of since I already wanted to learn Cyber Sec. anyways. I just wanted to know if... (12 Replies)
Discussion started by: ApacheOmega
12 Replies

8. Shell Programming and Scripting

How to use expect and send command in UNIX/Linux?

Hello Everyone, I am executing a unix script which logs into 50+ servers (netapp servers) and runs some commands and captures output locally. Below is the code snippet. file1.txt has names of all the remote servers where I am logging in. #!/bin/ksh #!/usr/bin/expect touch... (1 Reply)
Discussion started by: rahul2662
1 Replies

9. UNIX for Beginners Questions & Answers

Simple sed command not working; could be a Mac/Linux vs. PC/Linux issue

Hello, I am on a Mac and trying to clean up some monthly files with a very simple SED: sed '3,10d;/<ACROSS>/,$d' input.txt > output.txt (from the input, delete lines 3 - 10; then delete from the line containing <ACROSS> to the end of the file) then output to output.txt Even when I try... (2 Replies)
Discussion started by: verbatim
2 Replies
CTRLALTDEL(8)						       System Administration						     CTRLALTDEL(8)

NAME
ctrlaltdel - set the function of the Ctrl-Alt-Del combination SYNOPSIS
ctrlaltdel hard|soft DESCRIPTION
Based on examination of the linux/kernel/sys.c code, it is clear that there are two supported functions that the Ctrl-Alt-Del sequence can perform: a hard reset, which immediately reboots the computer without calling sync(2) and without any other preparation; and a soft reset, which sends the SIGINT (interrupt) signal to the init process (this is always the process with PID 1). If this option is used, the init(8) program must support this feature. Since there are now several init(8) programs in the Linux community, please consult the documentation for the version that you are currently using. ctrlaltdel is usually used in the /etc/rc.local file. OPTIONS
-V, --version Output version information and exit. -h, --help Display help and exit. FILES
/etc/rc.local SEE ALSO
init(8) AUTHOR
Peter Orbaek <poe@daimi.aau.dk> AVAILABILITY
The ctrlaltdel command is part of the util-linux package and is available from Linux Kernel Archive <ftp://ftp.kernel.org/pub/linux/utils /util-linux/>. util-linux August 2011 CTRLALTDEL(8)
All times are GMT -4. The time now is 02:17 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy