Savoir l'input et l'ouput
merci de m'expliquer ce script et me donner l'input et l'ouput:
Code:
bash-3.00$ cat Provisionning_Batch_Recharge_All_Today_Queues.sh
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14
| #!/bin/sh
USERORA="alpha1"
PASSORA="alpha?2010#"
BASEORA="BSCPROD"
STATERR=$1
Old=`cat all.$1.logg`
Result=`sqlplus -s $USERORA/$PASSORA@$BASEORA <<EOF
set head off pagesize 0 echo off verify off feedback off
select count(*) from cap.request_cust_charge_singl_hist where sncode = $STATERR ;
EOF`
a=`expr $Result - $Old`
echo $a |
Cordialement,