merci de m'expliquer ce script et me donner l'input et l'ouput:
Code : Sélectionner tout - Visualiser dans une fenêtre à part bash-3.00$ cat Provisionning_Batch_Recharge_All_Today_Queues.shCordialement,
Code : Sélectionner tout - Visualiser dans une fenêtre à part
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
Partager