Results 1 to 4 of 4
Hi
wonder if anyone can help.......
I have Redhat ES4 installed and am trying to run the following commands
set CMD="ksh - eval $Pfile -csh"
$CMD
$Pfile is a script
...
- 03-08-2010 #1Just Joined!
- Join Date
- Jan 2010
- Posts
- 5
eval command not installed
Hi
wonder if anyone can help.......
I have Redhat ES4 installed and am trying to run the following commands
set CMD="ksh - eval $Pfile -csh"
$CMD
$Pfile is a script
and it get the error
ksh: eval: No such file or directory
also, there are no man pages for eval
- 03-08-2010 #2Linux Guru
- Join Date
- Apr 2009
- Location
- I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
- Posts
- 8,974
eval is a bash shell builtin command. It doesn't exist in ksh. You can create your own version for ksh. Here is the documentation for eval from the bash man page:
Code:eval [arg ...] The args are read and concatenated together into a single command. This command is then read and executed by the shell, and its exit status is returned as the value of eval. If there are no args, or only null argu- ments, eval returns 0.Sometimes, real fast is almost as good as real time.
Just remember, Semper Gumbi - always be flexible!
- 03-08-2010 #3Just Joined!
- Join Date
- Jan 2010
- Posts
- 5
Thanks for the reply
So using eval , how do I run the script $Pfile in linux ?
- 03-08-2010 #4Just Joined!
- Join Date
- Jan 2010
- Posts
- 5
Just for further clarification the line;
set CMD="ksh - eval $Pfile -csh"
appears in a script which is running in csh.
If it is a bash command what do I need (bash wise) to invoke it ?)
thanks for your help !


Reply With Quote