![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| 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 |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
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 |
| Display Modes | Rate This Thread |
|
|