Joined: 08 Jun 2005 Posts: 4001 Location: Arizona, U.S.A.
Posted: Wed 21 Apr 2010, 18:43 Post subject:
No it doesn`t, the only thing being run to null is std. out.
Try it... 2> gets the error but outputs a screen full of info ( 1> ) if there`s no error.
So if the Xwin. title is good 1> sends the Xwin. info to the trash to keep the screen clean.
It`s writing the file every time now, but again... It works fine in Xterm but the script errors.
I took my error message out and now it doesn`t error any more... Weird!
The echo command seems to be the problem, it`s returning back to the function call!
But the if statement should end the script with " exit 7 ;fi" after that! But it never gets there!
Joined: 08 Jun 2005 Posts: 4001 Location: Arizona, U.S.A.
Posted: Wed 21 Apr 2010, 19:10 Post subject:
I solved it...
I moved the test out of that function and put it in it`s own function that`s called normally..
It seems running a function while evaluating it means it evaluates everything as it`s being run,
not just evaluating the returned values as you might expect..
The script works great now... I`ll show what I`m doing in a little bit.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum