![]() |
|
|
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 |
| KSH script eval(?) to set variable | tksol | Shell Programming and Scripting | 4 | 04-28-2009 10:23 PM |
| bin/sh eval variable assignment | blasto333 | Shell Programming and Scripting | 2 | 02-21-2009 08:07 PM |
| How to assign eval value as Variable.. | neruppu | Shell Programming and Scripting | 3 | 12-01-2008 09:32 AM |
| Urgent-Reading eval result in a variable | kaaakrishna | UNIX for Advanced & Expert Users | 1 | 06-14-2008 10:03 AM |
| eval a variable that has a . | ttshell | Shell Programming and Scripting | 3 | 06-11-2007 03:44 PM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Passing eval value to a variable
Hello, I have a script that does an scp to a server and then gets the number of process running on that server, the o/P should be stored in a variable for further processing Code:
eval `echo "ssh -q $Infa_user@$host 'csh -c $CMD '"`
where
CMD="ps -ef | grep -i ${INFA_REPO} | grep -v grep | wc -l"
the eval command works fine in the script and o/P the no of processes however when i put it a variable, i get an errror i.e Code:
STATUS=`eval `echo "ssh -q $Infa_user@$host 'csh -c $CMD '"`` results in error : not found [No such file or directory. Any idea's how to do that ? |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|