I am trying to make Mathematica do some plots for me as a part of a script. I have a .m file that basically does Import[] on some data followed by
Export["plot.png", Graphics[...]]
I run this with math -script file.m. However every time I am distracted by a window that appears for a split second when the above command is executed. Obviously this is a source of unnecessary focus loss and delay. I suspect this command is responsible as I did not see it happen when I commented it out. I also believe that a window is not necessary because I can perfectly well run the same script in a text-only runlevel and I get the output plot just fine. How do I reach the same behaviour when running from an X terminal?

Ctrl+Cduring the procedure I get:Interrupt during LinkConnect>in the command line and in a few seconds a message box appears saying "One or more programs are currently using the Wolfram Language front end as a service..." This happens even if I unset$DISPLAYprior to running the command. – The Vee May 18 '16 at 11:01