It is supposed to create in Radiance a surface with different parameters and then print it into the next course $1 "_" $4 "_adjust.rad-file automaticly. (It is getting $1, $4 and $7 from runde.txt, that is just a table-file with numbers).
The problem is that on one side it is performing the gensurf-command, but still it is just printing out the result on screen and it is also creating the files automatically with the right name, but they are empty.
Does anyone has an idea how to solve it? Maybe connecting strings? I have no idea.
Thanks a lot for your answer Franklin52. That is exactly what I was searching for. Unfortunately it is still not working. Is it maybe possible to explain how '/' and // ar working? I cannot find anythin in my books or internet for escaping metacharacters in shell. I just found something about execve(), but this is not defined on my system.
Secondly I tried already something with &, / and +, but I didn't get anywhere. I know that this is very special. I just want to automate my evaluation and am actually dying at this point.
I think it is not possible what I want to do because of responding to a variable in system(). Do you know wether there are other possibilities responding a variable ($7) or connecting the strings between $7. Because this one worked already with printing the whole true command into the files:
it is an awk variable, I think. Actually a good question.
I am piping every number in column 7 of runde.txt to awk to use it for befehl1.
(So because gensurf is supposed to create a surface I'll get in the end for example ten different surfaces created and saved into ten different files if I have ten different numbers a line in column 7 - thats my goal)
But dealing with the command like this system() is not able to perform the command. Because it is not able to connect the first part before $7 ("gensurf...") with the second one ("\\*t'\'' 1 1 \\> ").Thats the problem.
And if I dont' just put " before and behind $7 it is telling me that there is an unexpected character (the $-sign). and i even don't think that system would interpretate it anymore as a variable.
That is actually the reason I was asking you for connecting the both strings (before and behind $7)? Or piping it somewhere else and then using it...