Search Results

Search: Posts Made By: Sheethal
3,316
Posted By Sheethal
Need help to kill parent and all of its sub processes
Hi,

I am writing korn shell script. My requirement is, i have to kill the parent process and all of its child processes. Can some one please help me on this?

Thanks in advance for your help..
5,884
Posted By Sheethal
Hi, Thanks for your brief explanation.
Hi,

Thanks for your brief explanation.
5,884
Posted By Sheethal
Hi radoulov, Thanks for your help. ...
Hi radoulov,

Thanks for your help.

Since i have lot of files under the directory, i have modified the command like the below,

dbalog=/apps/tmp
if [ -d "$dbalog" ]
then
find $dbalog/*...
5,884
Posted By Sheethal
Hi, Thanks for your quick reply 1) when i...
Hi,
Thanks for your quick reply
1) when i execute the command,

find . -maxdepth 1 -name \*.log -mtime +13 -exec rm "{}" ;

I am getting the syntax error,

find: bad option -maxdepth
find:...
5,884
Posted By Sheethal
Need help to find the files under a directory
Hi,

I wanted to delete all the files under a directory "/apps/tmp/" which are two weeks older. But i should not delete the sub-directories and the contents of sub-directories.

I also have...
4,075
Posted By Sheethal
Error while running the script through cron jobs .Please help me on this
Hi Everyone,

I have written a korn shell script to shutdown my documentum docbase server and to restart it automatically on a weekly basis. My script is,



When i execute this script...
14,883
Posted By Sheethal
Hi wempy, Thanks for your explanation. My...
Hi wempy,

Thanks for your explanation. My requirement is to run the script at 10 AM daily, so it should be

0 10 * * * /export/config/run_process.ksh >/export/config/test.out 2>&1 as you have...
14,883
Posted By Sheethal
Hi, Thanks for your reply. * 10 * * *...
Hi,
Thanks for your reply.

* 10 * * * /export/config/run_process.ksh >/export/config/test/out 2>&1

Can you please tell me that if i modify the statement like the above,that is if I route the...
14,883
Posted By Sheethal
Hi, Thanks a lot for quick response. I was able...
Hi,
Thanks a lot for quick response. I was able to edit my crontab and save it to back to the server.
Can you please tell me that whether by default cron jobs sends an email to the user account...
14,883
Posted By Sheethal
Help needed to edit my crontab
Hi,
I am new to Unix. I have written a script in Unix. I wanted to schedule this script in cronjobs which has to be run daily at 10AM.
Already i have some cron jobs running on my unix server. In...
2,236
Posted By Sheethal
Hi, Thanks for your quick response. I...
Hi,

Thanks for your quick response.

I am using SunOS 5.8 version. I have tried as you have suggested like

df -k | awk '($6 ~ /^\/export\/home1/) && (sub(/%/, "", $5) >= 48) {
print...
2,236
Posted By Sheethal
Hi , I tried as you have said but it is not...
Hi ,

I tried as you have said but it is not printing anything,

df -k | awk '$6 ~ /^\/export\/home1/ && $5+0 >= 48 {print "Warning: "$6 " space is " $5 " running out of space"}'

so just to...
2,236
Posted By Sheethal
Problem in checking space of mount.Please help me
Hi everyone,

I am writing a script. As a part of this script, I wanted to check the space of few mounts, If the space usage percentage of the mount crosses over a certain limit then i wanted to...
1,535
Posted By Sheethal
Help needed in deleting the files
Hi,

I wanted to check whether any files are available under the path /usr/app/logs/. If the files are available under this path then i have to delete all the files except the files system.log,...
5,718
Posted By Sheethal
Hi bakunin, As you have specified the...
Hi bakunin,

As you have specified the space-char after the "=" is wrong. I have corrected the space and changed the variable "test" to some other variable name and executed the script.
For eg,...
5,718
Posted By Sheethal
Error while deleting a file
Hi,
I want to delete the files under a particular path automatically. TO implement it i have written a script. The following is the script,

#!/bin/ksh
DM_DBA=/apps/user/dba
cd $DM_DBA
...
3,840
Posted By Sheethal
Hi, Unfortuantely this code is not working, ...
Hi,

Unfortuantely this code is not working,

cat /apps/documentum/dba/log/test1.txt | mailx -a uuencode /apps/documentum/dba/log/test.log test.log -s "successful completion" mailaddress

When...
3,840
Posted By Sheethal
I have some problem in sending an email, please help me.
Hi,

I am writing a kornshell script, once the successful completion of the script
I need to send an email with body of a text along with an attachment. But i couldnt able to send an email with...
5,166
Posted By Sheethal
Hi, Now it is working, i have changed the...
Hi,


Now it is working, i have changed the code to

for pid in `ps -ef|grep doc| grep -v '...........'|grep -v grep|awk -F" " '{print $2}'`
do
echo $pid
if [ $pid ]
then
echo "inside if"...
5,166
Posted By Sheethal
Hi, I have tried using for loop also but...
Hi,

I have tried using for loop also but still the issue exist for eg,

for pid in `ps -ef|grep doc| grep -v '/apps/documentum/epic5.1/bin/sun4r5/adeptlmd -s180 -e...
5,166
Posted By Sheethal
Hi royalibrahim, I tried your both...
Hi royalibrahim,

I tried your both solutions,

kill -9 `ps -ef|grep doc| grep -v '...'|grep -v grep|awk '{print $2}'`

and

ps -ef | awk '$0~/<process-name>/&&$0!~/awk/{print $2}' | xargs...
5,166
Posted By Sheethal
Hi, But if i execute this command ps...
Hi,

But if i execute this command ps -ef|grep doc| grep -v '/apps/documentum/epic5.1/bin/sun4r5/adeptlmd -s180 -e /apps/documentum/epic5.1/'|grep -v grep|awk '{print $2}'| xargs kill -9 ...
5,166
Posted By Sheethal
While killing the process, Script gets hanged. Please help me on this.
Hi Everyone,

I have written a script to automate the docbase cleanup process on every weekly basis. That is in this script i have to shutdown the docbase and then kill all the process that are...
17,113
Posted By Sheethal
Hi, Thank you for your help. I am very new...
Hi,

Thank you for your help.
I am very new to unix.
can you please explain me the below code and the logic you had used.


$CAL $MON $YEA |
awk '
NR == 1 { next }
NR == 2 { next }
NF <= 5...
17,113
Posted By Sheethal
I wanted to get the date of the first monday of a month.
Hi,

I need to display the date of the first monday of a month.

Can any one please help me on this.

Thanks in advance.
Showing results 1 to 25 of 28

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