Skip to main content
Question

Running a script in xterm instead of terminal

  • September 21, 2011
  • 2 replies
  • 11 views

Forum|alt.badge.img+24

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

2 replies

Forum|alt.badge.img+31
  • Honored Contributor
  • September 21, 2011

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


Forum|alt.badge.img+24
  • Author
  • Valued Contributor
  • September 22, 2011

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