Search Results

Search: Posts Made By: abhijeetkul
2,447
Posted By abhijeetkul
Need a mail from system after healthcheck
I am trying to write a simple shell script which would send me a mail over the network after completing the healthcheck.

I have 10 file systems mounted;each of variuos size (in GB)
if at all ,any...
9,169
Posted By abhijeetkul
ptree Print the process trees containing the...
ptree Print the process trees containing the specified pids
or users, with child processes indented from their
respective parent processes. An argument of all digits
...
9,169
Posted By abhijeetkul
try ptree <PPID> & then kill PID's in...
try

ptree <PPID>

& then kill PID's in first column.

regards
abhijeet
5,409
Posted By abhijeetkul
sh:...
sh: /opt/bea/Wls61/config/devo5/batch_automation/batchPolicy/startBatchPolicy.sh: not found

have this sh being moved or renamed??

post the contents of log & error file

regards
abhijeet
5,409
Posted By abhijeetkul
echo $RUNTIME_OPTIONS $JAVA_HOME/bin/java...
echo $RUNTIME_OPTIONS

$JAVA_HOME/bin/java $RUNTIME_OPTIONS -cp $CLASSPATH com.fits.service.claimservice.batch.policyverification.BatchPolicyVerific
ationMain $1 $2 $3 > logs/batchPolicy.log 2>&1...
5,409
Posted By abhijeetkul
pankaj i can't see any echo or print statements...
pankaj
i can't see any echo or print statements in your script.
what o/p you expect in the log file??

just check your desired o/p has come.

abhijeet
5,409
Posted By abhijeetkul
pankaj, i am talking of the user with which you...
pankaj,
i am talking of the user with which you are executing the script manually or for which you are using cron jobs.

go to that user's home path & search for a hidden file called " .profile"...
5,409
Posted By abhijeetkul
make sure you have write permissions to ...
make sure you have write permissions to
/opt/bea/wls61/config/dev05/batch_automation/batchPolicy/logs directory

also try to source ".profile" of the user (with which the script is to be run)
in...
5,409
Posted By abhijeetkul
keep it removed though. can you post your...
keep it removed though.
can you post your script & complete entry of cron job ?

regards
abhijeet
5,409
Posted By abhijeetkul
opt/bea/wls61/config/devo5/batch_automation/batchP...
opt/bea/wls61/config/devo5/batch_automation/batchPolicy/startBatchPolicy.sh > /opt/bea/wls61/config/devo5/batch_automation/batchPolicy/logs/BatchPolicy.log 2>&1

remove '2>&1' from cron job entry &...
12,926
Posted By abhijeetkul
the problem is resolved. i sourced the...
the problem is resolved.
i sourced the ".profile" of the user & it has worked.
thanks for the support.
12,926
Posted By abhijeetkul
yup script is getting called. i am redirecting...
yup
script is getting called. i am redirecting echo statements in a .txt file.

00 05 * * * /svm_wl1/billing/data/server/log/sqlldr.sh > /svm_wl1/billing/data/server/log/sqlldr.txt

this txt...
12,926
Posted By abhijeetkul
script not working in CRON
guys

i have written a very simple script .it runs manually well.
but when i put it in cron,it doesn't give the desired output.

script looks like this:

#! /usr/bin/sh
#script for loading...
2,410
Posted By abhijeetkul
have you set the TERM & DISPLAY variables? ...
have you set the TERM & DISPLAY variables?
check "echo$TERM" & "echo$DISPLAY"

if DISPLAY is not set ,then
export DISPLAY=<your machine ip address>:0.0
& then try running your script.

regards...
7,335
Posted By abhijeetkul
killing PID's of ptree
gurus,

normally to stop a process ,i need to kill all its child & then parent process.
i do it manually as follows

bash-2.03$ ps -ef | grep bpm|grep -v grep
tibadmin 21882 21875 0 May 27...
4,115
Posted By abhijeetkul
sendmail and message alert
gurus,
i need to know 2 things,
first: how can i send mail over the internet in case of system failures/crash?
second: how can i receive SMS alert on my phone in case of failures?

do i need to...
42,298
Posted By abhijeetkul
hi does that apply for a file like "<file...
hi
does that apply for a file like "<file name>.tar.gz"?

regards
abhijeet
189,590
Posted By abhijeetkul
giving an example here.. #! /usr/bin/ksh ...
giving an example here..

#! /usr/bin/ksh

set -x
ORACLE_HOME=/u101/app/oracle/product/8.1.7
export ORACLE_HOME
LD_LIBRARY_PATH=$ORACLE_HOME/lib
export LD_LIBRARY_PATH...
14,055
Posted By abhijeetkul
OK I got sucess in Test enviroment. Now i...
OK
I got sucess in Test enviroment.

Now i am able to sort & send the files across systems properly.
i am yet to put it in production but i believe it would without any heck-ups.

this is what...
14,055
Posted By abhijeetkul
First of all sorry for writing that last...
First of all
sorry for writing that last scrap...it was badly written.

secondly
i have never used "functions" in shell scripts
so i am not trying it.

i know where error is coming....but why...
14,055
Posted By abhijeetkul
i have modified my script can anyone throw...
i have modified my script
can anyone throw light on this...pls???



# 'POSTPAID' loop starts here

ls $source/home/selectica/Outbox > $source/Log/ox3
grep "New_Ordr_" $source/Log/ox3 >...
14,055
Posted By abhijeetkul
cp: cannot access??
gurus have a look at the following script


#! /usr/bin/ksh
# New order processing script/abhijeet/28-02-2006
# there are two 'for' loops for 'prepaid' & 'postpaid' respectively
# whats new:...
34,286
Posted By abhijeetkul
the scenario is like this i run "cfserver"...
the scenario is like this
i run "cfserver" script which calls "new_orderxml" script
& message i get is

/u02/CFS/bin/new_orderxml.sh:'end of file' unexpected...

here is "cfserver" script...
34,286
Posted By abhijeetkul
'end of file' unexpected
what do u mean by " 'end of file' unexpected "?

i am running a script called "s1" which internally calls "s2"
now s1 starts running & at a point (where it is suppose to call "s2")
i get a...
21,100
Posted By abhijeetkul
what problems ? have u set the EDITOR? its...
what problems ?
have u set the EDITOR?

its always better to modify cronjobs via crontab -e..
anyways

regards
abhijeet
Showing results 1 to 25 of 58

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