Search Results

Search: Posts Made By: pankajkrmishra
8,980
Posted By pankajkrmishra
Following error I recieve when I execute andryke...
Following error I recieve when I execute andryke code

$ ./space_test_new.sh
./space_test_new.sh[2]: bdf: not found
./space_test_new.sh[3]: test: argument expected
SPACE IS UNDER TIGHT CONTROL...
8,980
Posted By pankajkrmishra
Space Clean Up Activity In Unix
Hi

I am trying to develop a script so that whenever used % reaches 90% it will send an alert mail. Following is the script whic I am tryiing to implement but it show some error.

code:
#!...
3,944
Posted By pankajkrmishra
Crontab Mail message
Hi

When I make change in crontab entries , I get below message as a mail. Can any one tell me what this indicates?

*********************************************
From wlsdev05 Fri Sep 22...
13,211
Posted By pankajkrmishra
Creation of log file under dynamic date folder
HI

I want to create a date folder and then a log file under it, which will hold all output of shell script. Say shell script abc.sh runs every day and I want to redirect the output of abc.sh >...
5,293
Posted By pankajkrmishra
Crontab Related problem
Hi

Following is the script which runs from command prompt....... but when I schedule it in crontab , its showing some error ( mentioned after this piece of code)

#!/bin/ksh
...
3,320
Posted By pankajkrmishra
Job dependent on other job
Hi All

I am trying to run one command ie grep but I want it should execute only after the completion of a shell script has finished.

eg

Following is my script :

java -mx64m $JAVA_OPTS...
15
7,325
Posted By pankajkrmishra
Hi Thanks a lot !!!!! But out of two...
Hi

Thanks a lot !!!!!

But out of two option only one is working........ other have some problem

This is not working
mailx -s "[`date`] Failure: Error in UPDATE_BSU_SYU_TO_NJU.sql" ...
15
7,325
Posted By pankajkrmishra
Hi I am not able to send a mail using...
Hi

I am not able to send a mail using following command command.

$ mailx -s "HI" pankajkumar.mishra@kmgin.com
^C
(Interrupt -- one more to kill letter)

It got hang and then I tried ctrl+c...
15
7,325
Posted By pankajkrmishra
Hi I tried and it worked But mail part...
Hi

I tried and it worked But mail part seems to be not working

Also if u can make me understand about following addition that u made I will be really obliged :


grep -i "BUILD FAILED"...
15
7,325
Posted By pankajkrmishra
Hi Great Idea !!! But I think I need to...
Hi

Great Idea !!! But I think I need to check the abs.log for the string FAILED.

If not found then only execute the dependent shell script ie . /ags/hsf/trf/jkyt/abc.sh

If Found should send...
15
7,325
Posted By pankajkrmishra
Grep
Hi

Even this does not served my pupose. Let me explain my problem in details

First I have to check for a string in a file called abs.log as follows :

grep -i "Failed" ./databaselog/abs.log ...
15
7,325
Posted By pankajkrmishra
Grep
Hi

If I have to find three strings from a file . Lets say strings are Exception , Failed, and error. How can we use grep command to find those strings from the file.

I am using following...
6,870
Posted By pankajkrmishra
Ant & Unix
Hi

How can we call ant script in Unix shell script. My purpose is to call ant script which uses sql tag for getting connection to database and then run sql statements in the database. Once sql...
7,660
Posted By pankajkrmishra
Hi Thanks a lot Suppose above code is...
Hi

Thanks a lot

Suppose above code is wrapped in a file called all.sh , I have another sh script ( reject.sh ) which is dependent on all.sh.

reject.sh should only be fired if all.sh has...
40,579
Posted By pankajkrmishra
Passing Date as parameter with sh script
Hi

I need to pass a date argument with my shell script. Can any one send me code for the same.

eg For 15th Aug 2006. Iwant to pass parameter like this

./startenv.sh 08/15/2006.

Everyday...
7,660
Posted By pankajkrmishra
Sequential execution of job in cron
Hi

I have a file say xyz.sh, whose contents are as follows :

***************************
#! /bin/ksh
set -x

. /a.sh

. /b.sh

. /c.sh
*****************************
Now will this...
6,576
Posted By pankajkrmishra
Hi Can anyone tell me what does following...
Hi

Can anyone tell me what does following line signify :

X=`sqlplus -s user/pwwd@domain<<eof


Thanks & Regards

Pankaj
19,155
Posted By pankajkrmishra
Hi THanks for your reply , but commenting...
Hi

THanks for your reply , but commenting will not serve my purpose, as I have 15-16 job entries in crontab, & commenting each would be a cumbersome job.

Also if any one can tell about the...
11,800
Posted By pankajkrmishra
Hi !!! I solve this seeing previous...
Hi !!!

I solve this seeing previous posts........ Anyway thanks a lot

Regards
Pankaj
19,155
Posted By pankajkrmishra
Suspend Cron job temprory
Hi

Is there any way to suspend cron job without ommitting crontab entries??

I have a no of entries in crontab, which runs daily.......... what if I want to suspend all process in cron one...
11,800
Posted By pankajkrmishra
Hi I exported the vi EDITOR also in...
Hi

I exported the vi EDITOR also in .profile file, but again its showing some no when I issue $ crontab -e


Do we need to add magic line( #! /bin/sh ) in this file too

Please suggest
...
11,800
Posted By pankajkrmishra
Hi I checked the setting by echo command ...
Hi
I checked the setting by echo command

$echo $EDITOR
vi

It shows it is vi, still crontab -e is not working .. it give some no like 2764

but when i do like this I am able to change the...
11,800
Posted By pankajkrmishra
Editing Crontab
Hi

I am not able to edit crontab.

Following is the comand that is being issued

$crontab -e
2764 ............ This is what I am able to see

But when I do
$crontab -l
List of all the...
3,549
Posted By pankajkrmishra
Hi Its working now. Actually one jar file...
Hi

Its working now. Actually one jar file called mail.jar has to be put before weblogic.jar........

Thanks A lot for your help
3,549
Posted By pankajkrmishra
Hi 25 09 * * * . $HOME/.profile &&...
Hi

25 09 * * * . $HOME/.profile && /opt/bea/wls61/config/dev05/batch_automation
/MBPSBatch/vendorfeed_concentra.sh > /opt/bea/wls61/config/dev05/batc...
Showing results 1 to 25 of 55

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