On Tue, 2014-07-15 at 15:22 +0530, siddheshwar chopra wrote: > Dear Sir, > > the script is working perfectly fine now. I had to just change > "ecutrho" to "$ecutrho". > > So now it becomes $ecutrho= $ecut*8
This seems rather awkward and it should definitely fail! If the variable ecutrho is not defined, the shell will expand the "$ecutrho= $ecut*8" into "= value*8", where the "value" is the value of $ecut variable. Check your generated input file! As mentioned by others, the script must be written in such a manner that the expression $ecut*8 gets evaluated, which can be either achieved by ecutrho=$[$ecut*8] (for bash only) or ecutrho=`echo $ecut*8| bc -l` (for general Bourne shell) Regards, -- Anton Kokalj J. Stefan Institute, Jamova 39, 1000 Ljubljana, Slovenia (tel: +386-1-477-3523 // fax:+386-1-477-3822) Please, if possible, avoid sending me Word or PowerPoint attachments. See: http://www.gnu.org/philosophy/no-word-attachments.html
