10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
I am new to UNIX and want to execute oracle script from unix script.
I have written below script but i am getting below error.
#!/bin/bash
file="/home/usr/control/control_file1"
while read line
do
#$line=@$line
#echo $line
sqlplus tiger/scott@DB
@$line
exit
#echo "$line"
done... (3 Replies)
Discussion started by: vipin kumar rai
3 Replies
2. UNIX for Dummies Questions & Answers
Hi i wrote a script which dosent exists after executing any help
#!/bin/bash
netstat -ptlen | grep 10000
if ; then
echo "Hive Thrift server is running"
exit 0
else
echo "Hive Thrift server is down Trying to Bring up the service" | mail -s "ALERT" team@domain.com
`nohup hive... (7 Replies)
Discussion started by: vikatakavi
7 Replies
3. Shell Programming and Scripting
Script test
#! /bin/csh -f
echo checking the sset command
if( -e /home/user/project/runtest/testdir/ts ) then
echo ts script present
set cmd = "/home/user/project/runtest/testdir/ts a 1 b 2 c 3"
else
echo script not present
endif
echo $cmd
echo done
script ts
#!/bin/csh -f
set... (1 Reply)
Discussion started by: animesharma
1 Replies
4. Shell Programming and Scripting
Hi,
I have a script get_DB_var.ksh which do a data base call and get some variables as below:
sqlplus -silent $user/$pass@dbname <<END
select col1,
col2,
col3
from table_name where col4=$1;
exit;
END
Now I want to access all these variables i.e.... (9 Replies)
Discussion started by: dips_ag
9 Replies
5. Debian
Hi all
I installed Debian and i have a few scripts that outputs what is happening.
The wierd part...after fresh install all works ok but after i open or edit Crontab it stops executing the scripts...and scripts runs manually so its not a problem with scripts...what happens is that i usually... (3 Replies)
Discussion started by: ro0t3d
3 Replies
6. UNIX for Advanced & Expert Users
I need to execute a shell script kept in unix machine from windows. User id, password area available.
For eg.
There's a shell script wich moves all the logs kept in my home directory to a directory named LOGS.
Now i need to get this done through windows; either using a batch file, or java... (4 Replies)
Discussion started by: rajneesh_kapoor
4 Replies
7. UNIX for Dummies Questions & Answers
Hi everyone
In an existing crontab script for the root user, I've added 5 new lines of code, however for some unknown reason, these lines of code were not executed.
Here is what I did
30 0 * * * ./usr/people/atlab/jamesgoh/disk_reader/disk_reporter /picnic
30 0 * * *... (6 Replies)
Discussion started by: JamesGoh
6 Replies
8. UNIX for Advanced & Expert Users
Hi,
if I launche this at commande line It is OK :
$ /home/oracle/anaschxt_A01_5_15_25_plemae.sh
but if I put it in crontab :
Like this :
I have this error :
/home/oracle/anaschxt_A01_5_15_25_plemae.sh: sqlplus: not find.
The script is :
+17 ... (2 Replies)
Discussion started by: big123456
2 Replies
9. Shell Programming and Scripting
Hi
I have written a shell script(in Solaris) in which following logic is there.....
i=1
while read control
do
key=`echo $control | awk -F$DELIMITOR '{ print $1 }'`
echo "Key Values" ${key}
i=`/usr/bin/expr $i + 1`
done < $CONFPATH/$CONFFILE
when i execute it at prompt it... (4 Replies)
Discussion started by: Amardeep
4 Replies
10. Shell Programming and Scripting
I do not have the luxery of a server that i can try on, so i had to post my qn here.
Say i have two jobs in the cron table, the jobs are scheduled 2 mins apart. Assuming the first jobs does a lot of operations and takes > 2 mins. Will the second job be executed? Will Unix actually have a queue... (3 Replies)
Discussion started by: new2ss
3 Replies