Page 1 of 1

Need help with script to launch MC in terminal (Solved)

Posted: Sat 30 Jul 2005, 19:27
by Bancobusto
Hey, this should be an easy one for someone knowledgable to answer.

Despite the fact that there's a dot-pup of Midnight Commander, I recently downloaded the 1.05alpha release of Puppy and am experimenting with compiling programs.

So, I have installed MC from source, and was wondering what I should put in a script to lauch MC in a terminal without having to first open the terminalk, then type "mc".

Something like (and i'm guessing here, i know that it's not correct)

Code: Select all

{xterminal emulator} mc
Please help this fumbling newbie, can't seem to help myself today....

Any help deeply appreciated :)

EDIT:
I know that to run a program like XMMS, which isn't dependent on a terminal to run, I could write

Code: Select all

#!/bin/sh
xmms
...but MC seems dependent on the xterm or whatever.... hmmm

Posted: Sat 30 Jul 2005, 21:00
by doopdoop

Code: Select all

xterm -e mc
should do the trick

Posted: Sat 30 Jul 2005, 21:08
by Bancobusto
Doopdoop, that worked, thanks a bundle. :lol:

I had seen that somewhere before, but couldn't seem to use my powers of recollection or searching prowess to find the answer myself...

Thanks! :D