Getting Started, Documentation, Tips & Tricks

sharity light, automount while booting?

Hey :)

I am using sharity light for mounting my pc folders on my octane2, in shell i use a command like this:
/shar/shlight //192.168.0.198 /sgishared /pcshared -f 777 -d 777 -n
And it works great! :)

However, currently i have to login as root to do this manually each time, so, how do i add this to the boot sequence?
Is there a file somewhere that i could just add this text and then it would run automatic next time it boots up?

/etc/fstab does not seem to do it btw!

Any help is greatly appreciated ;)

_________________
Image Image
how about put in /etc/cshrc and /etc/profile? :)

_________________
:Octane: (Sakura) :O2: (Sasuke) :1600SW: (Naruto) ... lil Jesse! (O2 laptop)
“Imagination is more important than knowledge.“ – A. Einstein
you know this? cause these files look like script files..
how do i know where to put this command, and will it need a "run" or "start" command infront of it?
i really have no clue myself...

but i think it should be ALOT easier than this...afterall its one simple command to write in shell...
is there no "autoexec.bat" type of file somewhere that would be able to run this simple command as a root-user at the end of the boot sequence? :?

_________________
Image Image
Lars1355 wrote:
but i think it should be ALOT easier than this...afterall its one simple command to write in shell...
is there no "autoexec.bat" type of file somewhere that would be able to run this simple command as a root-user at the end of the boot sequence? :?


Its called run level scripts.

Try to learn the first thing about UNIX. First the firmware of the machine loads a kernel file, the kernel file loads and runs init, init fork()s itself and runs deamon processes in the run level scripts...
Each exec is basically a fork so the init process is the parent of everything.

This is basic basic UNIX concepts.
http://techpubs.sgi.com/library/tpl/cgi ... /ch03.html

Here is what you do with your limited knowledge, stick the commands in one of the run level directories, get sick of the machine and stick in the cupboard for a couple years, then take it out and give it to someone who doesn't have the same network and the and thus the share your are trying to automount won't exist on the network so the machine hangs like 5 minutes or longer at boot and thus is "broken".

R.

_________________
死の神はりんごだけ食べる

アレゲはアレゲ以上のなにものでもなさげ -- アレゲ研究家

:Tezro: :Tezro: :Onyx2R: :Onyx2RE: :Onyx2: :O3x04R: :O3x0: :O200: :Octane: :Octane2: :O2: :O2: :Indigo2IMP: :PI: :PI: :1600SW: :1600SW: :Indy: :Indy: :Indy: :Indy: :Indy:
:hpserv: J5600, 2 x Mac, 3 x SUN, Alpha DS20E, Alpha 800 5/550, 3 x RS/6000, Amiga 4000 VideoToaster, Amiga4000 -030, 733MHz Sam440 AmigaOS 4.1 update 1. Tandem Himalaya S-Series Nonstop S72000 ServerNet.

Sold: :Indy: :Indy: :Indy: :Indigo:

Cortex ---> http://www.facebook.com/pages/Cortex-th ... 11?sk=info
Minnie ---> http://www.facebook.com/pages/Minnie-th ... 02?sk=info
Book ----> http://pymblesoftware.com/book/
Github ---> https://github.com/pymblesoftware
Visit http://www.pymblesoftware.com
Search for "Pymble", "InstaElf", "CryWhy" or "Cricket Score Sheet" in the iPad App store or search for "Pymble" or "CryWhy" in the iPhone App store.
Ha ha good one Regan, zing! :mrgreen:

The brief and expurgated version is that the Irix bootup scripts are located in the /etc/init.d directory. Proper Unix etiquette would be to have a script named "local" (or some such, in Linux it's rc.local for example) that you would put commands specific your machine, although I don't think it would hurt anything if you put them in network (the file, er, shell script named "network"), as that is where Irix tends to all of it's NFS duties already...
Lars1355 wrote:
you know this? cause these files look like script files..
how do i know where to put this command, and will it need a "run" or "start" command infront of it?
i really have no clue myself...

but i think it should be ALOT easier than this...afterall its one simple command to write in shell...
is there no "autoexec.bat" type of file somewhere that would be able to run this simple command as a root-user at the end of the boot sequence?
hi lars! yes i know about this files coz i put some path variable setting there :) and for you, you just put the same line of command of what you put on the command prompt to mount the directory coz the script can contain raw unix commands? but i think for this kind of task you should heed what PS and vishnu advice to follow proper unix etiquette to avoid future mess :)

_________________
:Octane: (Sakura) :O2: (Sasuke) :1600SW: (Naruto) ... lil Jesse! (O2 laptop)
“Imagination is more important than knowledge.“ – A. Einstein
Lars, perhaps my old page can help you get a grounding in things:

http://www.sgidepot.co.uk/admin/

Ian.

_________________
SGI Systems/Parts/Spares/Upgrades For Sale: http://www.sgidepot.co.uk/sgidepot/
[email protected] , [email protected] , +44 (0)131 476 0796, check my auctions on eBid!