Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Question for major Senior - or any other linux-guru

Marco Spoonhammer
Registered User
Join date: 23 Feb 2006
Posts: 42
06-06-2006 15:36
I am working on something here, please don't ask me for details, as soon as I have it working you will all be the first to know.

I am trying to design a bash shellscript to launch 2 processes (SL and a little something I am hacking together) simultaneously.

For example:
-------------------
secondlife

sudo /blah/blah/blah

------------------

however I dont want bash to wait until secondlife has exited before it continues to run the second process.

Make any sense?

Any suggestions?
Theora Aquitaine
Registered User
Join date: 12 Feb 2006
Posts: 266
06-06-2006 16:01
From: Marco Spoonhammer
I am working on something here, please don't ask me for details, as soon as I have it working you will all be the first to know.

I am trying to design a bash shellscript to launch 2 processes (SL and a little something I am hacking together) simultaneously.

For example:
-------------------
secondlife

sudo /blah/blah/blah

------------------

however I dont want bash to wait until secondlife has exited before it continues to run the second process.

Make any sense?

Any suggestions?


It is a really arcane and very little known piece of bash wizardry :p

I think what you are looking for is ./secondlife &

sorry if I am not too hopeful about this amazing thing you are working on when you have to ask such questions tho!!! LOL.. ;)

No seriously, it is great you are doing something. I look forward to it. I would be happy to help if I can.
Marco Spoonhammer
Registered User
Join date: 23 Feb 2006
Posts: 42
Thanks
06-06-2006 16:11
I just couldn't recall it.

Much appreciated. I have my head so far up Java and J2EE tomcat's a55 day and night with work, that I can't think straight when I get home.

Thanks again. If this works. Happy days for all of us.
Marco Spoonhammer
Registered User
Join date: 23 Feb 2006
Posts: 42
okay new question
06-06-2006 18:19
How can I get a script to run as root at startup.

definitive answers only, no sarcasm. (/etc/init???)


ta
Marco Spoonhammer
Registered User
Join date: 23 Feb 2006
Posts: 42
Kde
06-06-2006 18:23
PS: startup script: KDE btw
Merrick Moose
Registered User
Join date: 20 Oct 2005
Posts: 191
06-06-2006 18:25
From: Marco Spoonhammer
How can I get a script to run as root at startup.

definitive answers only, no sarcasm. (/etc/init???)


ta


new entry in /etc/init.d and-or /etc/rc*.d or /etc/rc.local

probably you are after /etc/init.d/* as anything from there runs as root. Becareful what you do here, linux is like a shotgun with the muzzle taped to your foot and this is playing with the trigger.
Theora Aquitaine
Registered User
Join date: 12 Feb 2006
Posts: 266
06-07-2006 00:10
From: Merrick Moose
new entry in /etc/init.d and-or /etc/rc*.d or /etc/rc.local

probably you are after /etc/init.d/* as anything from there runs as root. Becareful what you do here, linux is like a shotgun with the muzzle taped to your foot and this is playing with the trigger.


This is a distro-specific question. The above is true for red hat based distros.

In debian based systems you write the script in /etc/init.d and make a symbolic link to it in /etc/rcS.d/
Theora Aquitaine
Registered User
Join date: 12 Feb 2006
Posts: 266
06-07-2006 00:48
From: Marco Spoonhammer
I just couldn't recall it.

Much appreciated. I have my head so far up Java and J2EE tomcat's a55 day and night with work, that I can't think straight when I get home.

Thanks again. If this works. Happy days for all of us.


Sounds really exciting! Good luck!