Search Results

Search: Posts Made By: Soma Das
6,154
Posted By Soma Das
Thanks it working now.
Thanks it working now.
6,154
Posted By Soma Das
Hi, i used your code. But it is giving me an...
Hi, i used your code. But it is giving me an error
sed: Function s/% allocation cannot be parsed.

do u have any idea how it can be resolve?
6,154
Posted By Soma Das
Yes that is correct. I have wrote down the the...
Yes that is correct. I have wrote down the the script for filesystem full

#!/bin/sh
count1= df -k /home |awk 'FNR == 4 { print $1 }'
if [$count1 -gt 80]
then
echo "file system full"
#mailx...
6,154
Posted By Soma Das
According to the man page "k"or "M" can be used...
According to the man page "k"or "M" can be used for kilobytes and megabytes in -size option.

By default it is byet block if nothing is specified.
I wanna know how to use these "k" or "M" options...
6,154
Posted By Soma Das
I have read the man page of find command. My...
I have read the man page of find command. My intention is to get the files over 100MB from a directory, so i used this code


$ find /prod/logs -type f -size +100M -exec du -k {} \; | sort -rn |...
6,154
Posted By Soma Das
Thanks for the advises. I have done this. to...
Thanks for the advises.
I have done this. to find out larger files in the directory.

find /prod/logs -type f -exec du -k {} \; | sort -rn | head -10

can you tell me how can i modify my search...
6,154
Posted By Soma Das
[Solved] Filesystem getting full. Need a monitoring script
Hi,

I am new to shell scripting in unix HP-UX.

I need to determine how much a perticular file system is full and if it goes over 80% it should notify through mail about which are the files...
1,414
Posted By Soma Das
Thanks. it worked. :)
Thanks. it worked. :)
1,414
Posted By Soma Das
Yes i have used the -c option.. here is the o/p...
Yes i have used the -c option..
here is the o/p and error i am getting


$ sh -x new.sh
+ + date +%a %b %e
today=Tue Jul 24
+ find /prod/logs -name *.log -mtime 0 -exec cp {} /home/hzjnr0/test...
1,414
Posted By Soma Das
Hi Balajesuri, I am getting this error while...
Hi Balajesuri,
I am getting this error while trying with your code


new.sh[8]: test: Specify a parameter with this command.
1,414
Posted By Soma Das
Need a clue to write a IF statement
Hi all, i am writing a shell script in which i got stuck when tried to use a if statement.

This is my code :
#!/bin/sh
today=`date +"%a %b %e"`
find /prod/logs -name '*.log' -mtime 0 -exec cp...
2,371
Posted By Soma Das
rm -rf V_MTX_PMR
rm -rf V_MTX_PMR
1,333
Posted By Soma Das
Thank you very much balajesuri and elixir for...
Thank you very much balajesuri and elixir for your help.
Problem is resolved now.
1,333
Posted By Soma Das
Searching for a string using loop.
Hi i am very new to shell scripting.
I have got stuck on a portion on my script.
Problem :

I have 30 logfiles inside /home/test directory.
I need to find the string "@ended today" in all the...
Showing results 1 to 14 of 14

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