The UNIX and Linux Forums  


Go Back   UNIX e Linux Forum > Inizio Forum > Shell scripting e di programmazione
.
google unix.com



Shell scripting e di programmazione Pubblica domande su KSH, CSH, SH, Bash, Perl, PHP, sed, awk e da altri script di shell e linguaggi di scripting shell qui.

Più di UNIX e Linux Forum Argomenti potreste trovare utili
Filo Thread Starter Forum Risposte Ultimo Post
Script per simulare processo pendente brendan76 Linux 4 09-16-2008 07:25 AM
Aiuto con script EXPECT appesa markus2008 UNIX for Dummies Domande & Risposte 0 03-11-2008 03:44 PM
Hanging porta? NycUnxer UNIX for Dummies Domande & Risposte 1 01-09-2008 02:21 PM
script appesi - remsh vivsiv Shell scripting e di programmazione 2 07-09-2006 04:41 PM
appesa script SQL Inquirer UNIX for Dummies Domande & Risposte 4 12-26-2001 10:11 PM

 
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Cerca in questo Thread Rate Thread Modalità di visualizzazione
  #1 (permalink)  
Old 11-18-2008
rakeshsr12 rakeshsr12 is offline
Utente Registrato
  
 

Iscriviti Data: novembre 2008
Interventi: 1
Scritto è appesa

Ciao,

Ho il seguente script di shell e quando i esecuzione, mantiene sospesi e non succede nulla

Please let me know.

Requisito è quello di leggere i dati da file e passarlo a SQL e creare file come mostrato in figura.

codice


Codice:
/********
#!/bin/sh
while read user.dat
do
echo "user = $1 email = $2"
done

sqlplus -S /NOLOG << EOF
connect username/pwd@schema
select user_name,count(*) from apps.fnd_user
where 1=1 and user_name ('$1') and email_address ('$2')
group by user_name;
EOF
if $? -ne 0
then
% cat > user_exist
else
% cat > user_notexist
fi 
exit 0
*******/

File di dati
rsreenivasa null

Ultimo a cura di DukeNuke2; al 11/18/2008 01:57 PM.. Motivo: aggiunto tag del codice per una migliore lettura
 

Segnalibri

Thread Tools Cerca in questo Thread
Cerca in questo Thread:

Ricerca Avanzata
Modalità di visualizzazione Vota questo thread
Vota questo thread:

Distacco regolamento
Tu non può post nuovo thread
Tu non può inviare una risposta
Tu non può postare allegati
Tu non può modificare i tuoi post

BB codice è Su
Smilies sono Su
[IMG] codice Su
Codice HTML è Chiuso
Trackbacks sono Su
Pingbacks sono Su
Refbacks sono Su




Tutti gli orari sono GMT -4. La data di oggi è 02:46 PM.


Powered by: vBulletin, Copyright © 2000 - 2006, Jelsoft Enterprises Limited. Traduzioni Powered by .
vBCredits v1.4 Copyright © 2007 - 2008, PixelFX Studios
UNIX e Linux Forum Content Copyright © 1993-2009. Tutti i diritti Reserved.Ad di gestione da RedTyger

Contenuti pertinenti URL da vBSEO 3.2.0