Click to See Complete Forum and Search --> : batch/symbolic link


frank754
08-12-2001, 04:45 PM
I used to know how to do this, but got rusty, since I havent done it in a year.

What I want to do is create a bash file with
2 commands, so that I don't have to type
them in the terminal each time I boot up.
such as pppstart which would contain
the 2 commands. I would like a non root
user to be able to use this too.
Which directory should I put this file in,
/usr/bin? and would I need to create a
duplicate of it in /bin and create a second
symlink to it?
This should
be an easy one, I searched the posts and my
notes, guess I just plain forgot...
Thanks

undef
08-12-2001, 04:52 PM
i guess you could add it to your /etc/../rc.local file so that it runs everytime you boot. you'll have to chmod the file to allow normal users to run it.

slapNUT
08-12-2001, 06:22 PM
undef I dont think frank is wanting this to run automatically at bootup. I think he wants to be able to type the command in a terminal and wants all users to be able to run the script also.

frank
Put the script in either /bin or /usr/bin and do this:
chmod a+x /usr/bin/<prog> or /bin/<prog>
No symlinks are needed as both directories are in the users path by default.

[ 12 August 2001: Message edited by: slapNUT ]

frank754
08-12-2001, 07:13 PM
slapnut you are right, I may not always
want to start the daemon.
Anyway will do what you said. I
just wasnt sure of the permissions, since
it's been a while since I did it last time