The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Command display output on console and simultaneously save the command and its output satimis UNIX for Dummies Questions & Answers 7 01-25-2009 08:27 PM
Run a command on new created shell sushantnirwan Shell Programming and Scripting 2 08-29-2008 07:04 AM
Execute the Output kousikan Shell Programming and Scripting 2 03-21-2007 02:07 PM
Execute the output of one liner print umen Shell Programming and Scripting 1 02-15-2006 12:40 PM
output and execute gammaman UNIX for Dummies Questions & Answers 2 06-30-2005 11:12 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 Search this Thread Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1 (permalink)  
Old 09-19-2008
Arkadiusz Masny Arkadiusz Masny is offline
Registered User
  
 

Join Date: Sep 2008
Posts: 1
Execute command created from sql output

Hi,

I've would like to create kill statement from sqlplus output.

So, I've modified somoene's script :

mud_kill_stmt=`sqlplus -s / as sysdba <<EOF
select 'kill -9 ' || p.SPID || ';' statement from $process_view p, $session_ ......... and so on
exit;
EOF`
$mud_kill_stmt | tr ';' '\n'

when i've ran it i have folloving output :

./kill_processe_oracle.sh: line 32: kill: 19819;: arguments must be process or job IDs
./kill_processe_oracle.sh: line 32: kill: kill: arguments must be process or job IDs
./kill_processe_oracle.sh: line 32: kill: (-9) - No such process


when i've echo'ed last command to a screen i do have following content on screen :

kill -9 19819
kill -9 21990
kill -9 21427

What is wrong ?

Best Regards Arek Masny




 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 12:01 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0