Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
 

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: autostart an xshell command line?< Next Oldest | Next Newest >
fitzbean Offline





Group: Members
Posts: 9
Joined: Mar. 2005
Posted: May 31 2005,18:54 QUOTE

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
Back to top
Profile PM 
mikshaw Offline





Group: Members
Posts: 4856
Joined: July 2004
Posted: May 31 2005,19:15 QUOTE

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.


--------------
http://www.tldp.org/LDP/intro-linux/html/index.html
Back to top
Profile PM WEB 
fitzbean Offline





Group: Members
Posts: 9
Joined: Mar. 2005
Posted: May 31 2005,19:36 QUOTE

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
Back to top
Profile PM 
2 replies since May 31 2005,18:54 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

 
reply to topic new topic new poll
Quick Reply: autostart an xshell command line?

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code