| Author |
Message |
flamesage

Joined: 01 Jul 2005 Posts: 214
|
Posted: Fri 22 Jul 2005, 23:06 Post subject:
Automaticly run a console comand on boot-up. |
|
You see, I am running a shoutcast server currently, how do I, when the computer boots up.
Automaticly tell it to load up two consoles (rxvt)
With..
./root/sc_trans_040/sc_trans_linux
(and then another console)
/usr/local/shoutcast/sc_serv
(And also, if it wouldn't be too much trouble, would there be a way to automaticly put them in my tray?)
|
|
Back to top
|
|
 |
dvw86

Joined: 04 May 2005 Posts: 636 Location: Washington State
|
Posted: Fri 22 Jul 2005, 23:57 Post subject:
|
|
You could try the litte start-items Rox-App that I wrote.
http://www.murga.org/~puppy/viewtopic.php?t=18&start=209
|
|
Back to top
|
|
 |
GuestToo
Puppy Master
Joined: 04 May 2005 Posts: 4078
|
Posted: Sat 23 Jul 2005, 00:35 Post subject:
|
|
i haven't tried start-items yet ... it sounds like a very useful app
you could write a script (i think with Puppy 1.0.4, you can right click on a rox window and click New Script) ... something like:
#!/bin/sh
rxvt -e /root/sc_trans_040/sc_trans_linux &
rxvt -e /usr/local/shoutcast/sc_serv &
and run the script from /etc/profile, probably put the line just before exec xwin, like this:
/root/shoutcast/run-shoutcast
exec xwin
if you called the script run-shoutcast and put it in /root/shoutcast
if you run Icewm, you can have a tray icon for rxvt if you put this line in /root/.icewm/winoptions:
rxvt.tray: 1
but there will be a tray icon for ALL rxvt windows
you could make a symlink or 2 to rxvt, so rxvt runs with a different name
for example, you could drag rxvt from /usr/local/bin/ with the middle mouse button to /root/shoutcast/ and click Link ... rename the link to shoutcast1 ... if you like, you can make another link, and rename it shoutcast2
then your run-shoutcast script could be:
| Code: | #!/bin/sh
/root/shoutcast/shoutcast1 -iconic -sl 32000 \
-e /root/sc_trans_040/sc_trans_linux &
/root/shoutcast/shoutcast2 -iconic -sl 32000 \
-e /usr/local/shoutcast/sc_serv & |
and you could put this in .icewm/winoptions:
shoutcast1.icon: eyes24
shoutcast1.tray: Minimized
shoutcast1.workspace: 3
shoutcast2.icon: fishy24
shoutcast2.tray: Minimized
shoutcast2.workspace: 3
(as an example ... you can pick better icons)
set up this way, the 2 shoutcast rxvt windows should start running automatically on boot, minimized, in workspace 4, with tray icons (one a fish and the other icon eyes), and there will be no button on the task bar when it's minimized
(-iconic starts rxvt minimized, -sl 32000 saves 32000 lines in the rxvt window that you can scroll through)
like this picture:
|
|
Back to top
|
|
 |
GuestToo
Puppy Master
Joined: 04 May 2005 Posts: 4078
|
Posted: Sat 23 Jul 2005, 00:38 Post subject:
|
|
icewm manual:
http://www.icewm.org/manual/icewm-14.html
|
|
Back to top
|
|
 |
Lobster
Official Crustacean

Joined: 04 May 2005 Posts: 15109 Location: Paradox Realm
|
Posted: Sat 23 Jul 2005, 00:47 Post subject:
|
|
Can someone who feels they would like to have a go at adding data to the wiki please add G2's data to the wiki
Let us know where you put it and how you get on
_________________ Puppy WIKI
|
|
Back to top
|
|
 |
flamesage

Joined: 01 Jul 2005 Posts: 214
|
Posted: Sat 23 Jul 2005, 00:47 Post subject:
|
|
Well.. I tried that auto-start manager thing.
I "think" it runs, but whenever it loads it just exists back out again.
(I used the same technique as I did with Dream Seeker (a few posts back.))
|
|
Back to top
|
|
 |
Flash
Official Dog Handler

Joined: 04 May 2005 Posts: 9910 Location: Arizona USA
|
Posted: Sat 23 Jul 2005, 01:21 Post subject:
|
|
| Lobster wrote: | Can someone who feels they would like to have a go at adding data to the wiki please add G2's data to the wiki?
Let us know where you put it and how you get on  | Do you mean, put this post in the Wiki somewhere, and add an entry in the Wiki index pointing to it?
|
|
Back to top
|
|
 |
Lobster
Official Crustacean

Joined: 04 May 2005 Posts: 15109 Location: Paradox Realm
|
Posted: Sat 23 Jul 2005, 02:14 Post subject:
|
|
You got it flash - but the index entry is not required (though indexing is also worth considering) - that is automated - you will see an index at the top of the wiki
- so worth doing a hunt around there . . .
Using a wiki (and Puppy is developing one of the best) is useful - it is concentrated info
_________________ Puppy WIKI
|
|
Back to top
|
|
 |
|