Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Fri 28 Nov 2014, 08:10
All times are UTC - 4
 Forum index » House Training » Beginners Help ( Start Here)
Automaticly run a console comand on boot-up.
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [8 Posts]  
Author Message
flamesage


Joined: 01 Jul 2005
Posts: 214

PostPosted: 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
View user's profile Send private message 
dvw86


Joined: 04 May 2005
Posts: 636
Location: Washington State

PostPosted: 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
View user's profile Send private message 
GuestToo
Puppy Master

Joined: 04 May 2005
Posts: 4078

PostPosted: 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
View user's profile Send private message 
GuestToo
Puppy Master

Joined: 04 May 2005
Posts: 4078

PostPosted: Sat 23 Jul 2005, 00:38    Post subject:  

icewm manual:
http://www.icewm.org/manual/icewm-14.html
Back to top
View user's profile Send private message 
Lobster
Official Crustacean


Joined: 04 May 2005
Posts: 15117
Location: Paradox Realm

PostPosted: 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 Smile

_________________
Puppy WIKI
Back to top
View user's profile Send private message Visit poster's website 
flamesage


Joined: 01 Jul 2005
Posts: 214

PostPosted: 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
View user's profile Send private message 
Flash
Official Dog Handler


Joined: 04 May 2005
Posts: 11164
Location: Arizona USA

PostPosted: 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 Smile
Do you mean, put this post in the Wiki somewhere, and add an entry in the Wiki index pointing to it? Confused
Back to top
View user's profile Send private message 
Lobster
Official Crustacean


Joined: 04 May 2005
Posts: 15117
Location: Paradox Realm

PostPosted: 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

Smile

_________________
Puppy WIKI
Back to top
View user's profile Send private message Visit poster's website 
Display posts from previous:   Sort by:   
Page 1 of 1 [8 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » Beginners Help ( Start Here)
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0581s ][ Queries: 12 (0.0052s) ][ GZIP on ]