Hi guys!
First of all - thanks for replies...
It is just mistake in cut and paste... In code it is $rc... any way - I also see - that command fails (xterm do not open) an , when I run it as root - it works... An no - I do not use any redirection - it is just test script with 4 lines of code... Of cause problem appeared in much more complicated program, but I succeed to isolate it on 4 lines example... It also do not matter - what is a command, xterm or ls , or something else...