Posted on 09-21-2011 09:22 AM
Hi-
Does anyone know how I might be able to run a script (single command really) in xterm (X11 environment) instead of Terminal? I know I can fire off 'xterm' in Terminal but I can't seem to pipe anything to it or such.
Thanks
j
---
Jared F. Nichols
Desktop Engineer, Client Services
Information Services Department
MIT Lincoln Laboratory
244 Wood Street
Lexington, Massachusetts 02420
781.981.5436
Posted on 09-21-2011 10:42 AM
A simple full path should do it for your shebang.
#!/path/to/xterm
Sorry don't have it installed on any machines currently, but if you use the path to xterm in your shebang the whole script should use that shell instead.
-Tom
Posted on 09-22-2011 05:47 AM
Ah fantastic. How the hell did I not think of that. I should have remembered just what shebang is for...
Thanks
j
---
Jared F. Nichols
Desktop Engineer, Client Services
Information Services Department
MIT Lincoln Laboratory
244 Wood Street
Lexington, Massachusetts 02420
781.981.5436