I am running the below script to call an already existing concurrent program using the CONCSUB utility.
Code:
#!/bin/ksh
echo "=================================================="
echo "Beginning program " `date "+%m/%d/%y %H:%M:%S"` "\n"
echo "================================================="
#
datadir="path/data";
archdir="path/archive";
userid=apps
pwd=apps
respid=AR
respname='"Responsibility"'
ora_user=SYSADMIN
app_prog_name=AR
conc_prog_name=ARGFL
#
cd $datadir
ls -lrt *.txt | awk '{print $9}' | while read fname
do
echo The file to be passed to importing program is $fname
conc_request=`CONCSUB $userid/$pwd $respid $respname $ora_user WAIT=N
CONCURRENT $app_prog_name $conc_prog_name $fname 'Yes' 'Code' '0''ABCDEFGH''
echo "NEW concurrent request job details: $conc_request"
echo "New concurrent program submitted Request_id : $conc_id"
ok_status=`echo $conc_request'
echo "ok_status(1-Succesful, all other values-Not Successful) : $ok_status"
if [ $ok_status -eq 0 ]
then
echo "Program Unsuccessful. Check log file concurrent request: $conc_id "
v_status=1
else
mv $fname $archdir
v_status=0
fi
done
exit $v_status
I am getting the following output. The script is only partially executed.Its not using the CONCSUB utility, so the concurrent program is not getting submitted..Can anyone please help??
Code:
==================================================
Beginning program 02/21/08 16:41:15
=================================================
The file to be passed to importing program is A1.txt
NEW concurrent request job details: CONCSUB $userid/$pwd $respid $respname $ora_user WAIT=N
CONCURRENT $app_prog_name $conc_prog_name $fname Yes ARGFL 0ABCDEFGH
New concurrent program submitted Request_id :
ok_status(1-Succesful, all other values-Not Successful) : echo $conc_request
./ftnew1.sh[33]: $conc_request: unknown test operator
mv: path/archive/A1.txt: rename: Permission denied
The file to be passed to importing program is A2.txt
NEW concurrent request job details: CONCSUB $userid/$pwd $respid $respname $ora_user WAIT=N
CONCURRENT $app_prog_name $conc_prog_name $fname Yes ARGFL 0ABCDEFGH
New concurrent program submitted Request_id :
ok_status(1-Succesful, all other values-Not Successful) : echo $conc_request
./ftnew1.sh[33]: $conc_request: unknown test operator
mv: /path/archive/A2.txt: rename: Permission denied
The file to be passed to importing program is A3.txt
NEW concurrent request job details: CONCSUB $userid/$pwd $respid $respname $ora_user WAIT=N
CONCURRENT $app_prog_name $conc_prog_name $fname Yes ARGFL 0ABCDEFGH
New concurrent program submitted Request_id :
ok_status(1-Succesful, all other values-Not Successful) : echo $conc_request
./ftnew1.sh[33]: $conc_request: unknown test operator
mv: path/archive/A3.txt: rename: Permission denied
Hi,
I don't understand why the below code gave me error message:
worked: not found
I am using ksh program.
worked =`/usr/ucb/echo "scale=2; ($logend-$logstart)/3600" | bc`
Thank you very much for your help! (1 Reply)
Hi,
i am facing an error in the following script in the korn shell but in bash it is working , can any help me to convert the below script to korn shell script without errors.
echo 123.4566 | bc -l | awk -F '.' '{ print $1; exit; }'
Thanks in advance
kamal (5 Replies)
Hi,
i am facing an error in the korn shell by executing the following script, can anyone help me out in solving the error..
Note: /root/kamal is a directory
size_dir=$(du -s /root/kamal | cut -f1)
echo $size_dir
error: invalid $ at ( in size_dir
Thanks &... (2 Replies)
Hi ALL,
i am so much confused y the following script is not working in the korn shel which works in bash shell. please solve the error that i am facing.
i want to extract the format of the size from a variable i.e. GB or KB or MB or B or BYTES
code:
--------
size_dir_pass=1.2gb... (2 Replies)
I have 'translated' selection sort from java to KSH, here is my code
#1. get the inputs and put into arr
print "Enter the integers (separated by a space):"
read integers
set -A arr $integers
#2. start sorting process, using selection sort
min=0
tmp=0
i=0
while test $i -lt... (2 Replies)
hi,
When I try to go to het ksh shell i get het errror below.
Deleting, reinstalling via apt-get does'nt work.
Manually deleting and then reinstalling also does'nt work.
Any seen this error before?
ksh
ksh: error while loading shared libraries: libdll.so: cannot open shared object file:... (1 Reply)
Hi All
I am quite new to Unix. Following is a shell script that i have written and getting the subject mentioned error.
#!/bin/ksh
#-------------------------------------------------------------------------
# File: ang_stdnld.ksh
#
# Desc: UNIX shell script to extract Store information.... (3 Replies)
while ;do
check=`psu|grep -i ASP |grep -v grep|wc -l`
if ] ;
then
ASP_SH 101
sleep 10
else
echo "Process is running"
fi
done
Getting error
else ./testDaemons.sh: syntax error at line 13 : `else' unexpected
can any one please help me out!!! (4 Replies)
Hi all,
Anyone know why I get the error below under ksh?
$ EXCLUDES=( $(< "$EXCLUDES_FILE") )
sh: syntax error: `(' unexpected
I'm trying to use the above line in a script and it's not working. The guy that gave me the script was running in a linux environment, so I'm thinking this might... (1 Reply)
while ];do
first=${hat}
echo "${first}"
b=$((b+1))
a=$((a+5))
done
I'm trying to append values from the indicated index of one array to other, but it gives me an error with while loop....suggesting that .......
In the hat array, it contains many values... (2 Replies)
Discussion started by: TestKing
2 Replies
LEARN ABOUT DEBIAN
radeapclient
RADEAPCLIENT(1) FreeRADIUS Daemon RADEAPCLIENT(1)NAME
radeapclient - send EAP packets to a RADIUS server, calculate responses
SYNOPSIS
radeapclient [-c count] [-d raddb_directory] [-f file] [-h] [-i source_ip] [-q] [-s] [-r retries] [-S file] [-t timeout] [-v] [-x] server
{acct|auth} secret
DESCRIPTION
radeapclient is a radius client program. It can send arbitrary radius packets to a radius server, then shows the reply. Radeapclient dif-
fers from radclient in that if there is an EAP-MD5 challenge, then it will be responded to.
radeapclient is otherwise identical to radclient.
The EAP-Identity attribute, if present is used to construct an EAP Identity message.
The EAP-MD5-Password attribute, if present is used to respond to an MD5 challenge.
No other EAP types are currently supported.
OPTIONS -c count
Send each packet count times.
-d raddb
Set dictionary directory.
-f file
Read packets from file, not stdin.
-r retries
If timeout, retry sending the packet retries times.
-t timeout
Wait timeout seconds before retrying (may be a floating point number).
-h Print usage help information.
-i id Set request id to 'id'. Values may be 0..255
-S file
Read secret from file, not command line.
-q Quiet, do not print anything out.
-s Print out summary information of auth results.
-v Show program version information.
-x Enable debugging mode.
EXAMPLE
A sample session that queries the remote server with an EAP-MD5 challenge.
( echo 'User-Name = "bob"';
echo 'EAP-MD5-Password = "hello"';
echo 'NAS-IP-Address = marajade.sandelman.ottawa.on.c';
echo 'EAP-Code = Response';
echo 'EAP-Id = 210';
echo 'EAP-Type-Identity = "bob";
echo 'Message-Authenticator = 0x00';
echo 'NAS-Port = 0' ) >req.txt
radeapclient -x localhost auth testing123 <req.txt
SEE ALSO radclient(1)AUTHOR
Michael Richardson, <mcr@sandelman.ottawa.on.ca>
08 September 2003 RADEAPCLIENT(1)