clacker
Group: Members
Posts: 570
Joined: June 2004 |
|
Posted: May 23 2005,23:35 |
|
SuperLou, yes you can do what you want to do. You need to use bash as the program that rxvt is running, then use bash's init file to take you the rest of the way. The *.lnk line would look like this:
Code Sample | Command: rxvt -rv -T "Test Case" -e /bin/bash --init-file /home/dsl/burble |
The burble file would look like this:
Code Sample | PS1='\u@\h:\w\$ ' export PATH=$PATH:/opt/shoutcast-1-9-5-linux-glibc6 /opt/shoutcast-1-9-5-linux-glibc6/sc_serv |
The PS line sets the prompt of the bash shell. I copied it from the default bash init so it looks the same.
The export line sets the PATH variable to include the directory where the conf file is (it sounded like shoutcast had trouble finding it, so why not let it know where to look?). The last line runs you program. When it's done, the window stays open because bash is still running. This is nice for debugging since you can work in that window if you want.
You can put the special bash init file anywhere and call it anything you want, as long as you put the path to it in the command.
|