Skip to main content
Question

Running a script in xterm instead of terminal

  • September 21, 2011
  • 2 replies
  • 0 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
  • 2721 replies
  • 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
  • 1892 replies
  • 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


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings