Results 1 to 2 of 2
I am currently try to solve a problem in a script I am doing under bash shell. I have a script named Runlevels with a menu in a while loop ...
- 11-27-2008 #1Just Joined!
- Join Date
- Nov 2008
- Posts
- 1
Bash script help needed
I am currently try to solve a problem in a script I am doing under bash shell. I have a script named Runlevels with a menu in a while loop with 7 options.
1st option: rc0.d, 2nd rc1.d, etc.. till rc6.d and a Back option which goes to previous menu in another script. I want to show the user(root)only which i did a validation, the /etc/rc.0d folder contents by filtering the output with ls -l {S,K} when pressed the option1 and do the same for all the runlevels. All i want to do is give an access to the folders, see what services are running and give the option after showing the services to deactivate or activate a service..
Dont know if my way of doing this is correct. however i tried to use a wildcard in the script and is not working properly. when I am running the wildcard in the bash shell it works.
Ah.. I forgot to mention that I want to activate/deactivate the services by removing the Symbolic links which they are in /etc/ and pointing to /etc/init.d
Sry for my english as I am not a native english speaker
I will appreciate any guidance
Thank you
- 11-27-2008 #2
Can you show us your script ?
Men occasionally stumble over the truth,
but most of them pick themselves up
and hurry off as if nothing had happened.
Winston Churchill
... then the Unix-Gods created "man" ...


Reply With Quote