Find the answer to your Linux question:
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 ...
  1. #1
    Just Joined!
    Join Date
    Nov 2008
    Posts
    1

    Question 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

  2. #2
    Linux User dxqcanada's Avatar
    Join Date
    Sep 2006
    Location
    Canada
    Posts
    259
    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" ...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...