Search Results

Search: Posts Made By: Masanamuthu
Forum: Solaris 10-12-2009
3,289
Posted By Masanamuthu
apache installed or not
How to check out apache is installed in unix box ?

i don't have execute for httpd -v command and also i don't have 'apache' directory under /usr/local but i could able to see many httpd processes...
10,638
Posted By Masanamuthu
awk '(NR != 1 && NR != 2) {print $0}' < filename>...
awk '(NR != 1 && NR != 2) {print $0}' < filename> , it should be &&
8,810
Posted By Masanamuthu
If you don't use nohup , whatever output is being...
If you don't use nohup , whatever output is being generated by the script you executed will be thrown to your terminal that will disturb your work when you do something in the prompt. So, It is...
15,114
Posted By Masanamuthu
find . -type d -mtime +4 -exec rm -rf {} \; ...
find . -type d -mtime +4 -exec rm -rf {} \;

For more infos : Unix find command helper (http://find.unixpin.com)
Forum: Solaris 10-07-2009
9,827
Posted By Masanamuthu
1 Processes ordered by cpu usage : ps -eo...
1 Processes ordered by cpu usage :

ps -eo pcpu,pmem,args | sort -k 1 –nr | more

2 Processes ordered by memory usage :

ps -eo pcpu,pmem,args | sort -k 2 -n
14,593
Posted By Masanamuthu
chmod 2710 <filename> Try this.
chmod 2710 <filename>

Try this.
2,400
Posted By Masanamuthu
cat filename | paste - - - - Try this.
cat filename | paste - - - -

Try this.
3,547
Posted By Masanamuthu
Try this comm -13 a1 a2 | sed '/^$/ d'
Try this

comm -13 a1 a2 | sed '/^$/ d'
Forum: HP-UX 07-08-2009
38,530
Posted By Masanamuthu
You can find some CPU infos in "machinfo"...
You can find some CPU infos in "machinfo" command
8,113
Posted By Masanamuthu
This may be simple and will work if you have only...
This may be simple and will work if you have only two "WARNING" keywords in the file

#!/usr/bin/sh
start=`grep -n WARNING file1 | cut -d":" -f1 |head -1`
end=`grep -n WARNING file1 | cut -d":"...
4,949
Posted By Masanamuthu
You can try ckyorn binary.... #!/usr/bin/ksh...
You can try ckyorn binary....

#!/usr/bin/ksh
echo "test"
VAR=`ckyorn -d y -p "Do want to process it"`
if [ $answer = "y" -o $answer = "Y" ] then
cat/etc/passwd
who | who -l
ps -e | wc -l...
3,173
Posted By Masanamuthu
sed 's/\(mfr\)/\1ttmmpp/g' a1 | sed...
sed 's/\(mfr\)/\1ttmmpp/g' a1 | sed 's/\(ppp\)/mfr/g' | sed 's/\(mfrttmmpp\)/ppp/g'

It may also work
3,023
Posted By Masanamuthu
You can design a common script which inculdes...
You can design a common script which inculdes your condtions to call consecutive scripts and put that common script in cron.

Or In cron, Mention && operator to execute a job if the first job gets...
Showing results 1 to 13 of 13

 
All times are GMT -4. The time now is 06:11 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy