Find the answer to your Linux question:
Results 1 to 2 of 2
Hello, I am fairly new to this site and am new at studying unix/linux OS. Recently I had an assignment involving finding a script that had run an administrative task ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Oct 2010
    Posts
    1

    checkfs script


    Hello, I am fairly new to this site and am new at studying unix/linux OS. Recently I had an assignment involving finding a script that had run an administrative task such as checking file systems periodically. With it, I had to take each line and describe in my own terms what each line was doing. I am actually stumped at the moment and could use any guidance or reference in any direction as to how to proceed and successfully finish in defining each line of script.

    For example, I know that the line outputing -- PN=`basename "$0"` is stating that it assigns a value to the variable PN the tick marks, `, will execute a shell command, and in this statement, store the results in the variable named PN. The basename command is used to change a filename extension

    I am not sure about the rest.

    attached you ind the script
    Attached Files Attached Files

  2. #2
    ved
    ved is offline
    Linux User ved's Avatar
    Join Date
    Jan 2008
    Location
    New Delhi
    Posts
    309
    i suggest you read more about Linux Shell Scripting and first search in google you get may answers or wait for a guru to read your script reply .
    Linux Shell Scripting Tutorial - A Beginner's handbook
    Advanced Bash-Scripting Guide
    Take risks: if you win, you will be happy; if you lose, you will be wise.
    New Users : Read This First

Posting Permissions

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