autostart an xshell command line?


Forum: HD Install
Topic: autostart an xshell command line?
started by: fitzbean

Posted by fitzbean on May 31 2005,18:54
Hey all ..Here's a quick q...

When I autostart an command line program, the actual xshell
does not open on the desktop - is there a way to force it to open?  The command line program I am running requires input, and it's not catching the input because the actual window is not open.

Thanks in advance!
Brad

Posted by mikshaw on May 31 2005,19:15
Try starting the command like this:
rxvt -e <command>

This will launch the program in rxvt so that you can use an interactive commandline program in X.
The rxvt window will close automatically when the program ends.

Posted by fitzbean on May 31 2005,19:36
thanks mike ...  i actually figured it out in the 20 minutes between my posting and your relpy.. what I didn't know was that the command rxvt existed! :)  Then i noticed it in the xshell right click menu. :)

Anyway, here's what I did to autoboot this program in an rxvt window...

make a script file in /etc/init.d/ that changes to the program directory, then runs the program:
i.e.:
cd /path/to/program
./program_file_name


then, I edited .xinitrc in my home directory, and added:
sudo rxvt -e /etc/init.d/name_of_script_file &
right above the fluxbox command

thanks for replying so quickly mike... 'preciate it.

brad

Powered by Ikonboard 3.1.2a
Ikonboard © 2001 Jarvis Entertainment Group, Inc.