disk quotas shell script
Hello.. I wrote the following shell script to run disk quotas for assigning limits to users. I need to know the partition which the user has created and mount it. So i copied the partitions (which will be displayed after running fdisk -l) and separted the last line from it and cut the required partition name from it. Then this should be passed to the next line (using mount). Here I am facing the problem.. It is returning the error "device not found", that means the variable "$part" is not giving the partition name..
The following is my code: Code:
VSIZE=100m; |
I'd advise you to put a
Quote:
|
Thanks for ur reply.I tried it,it is printing required value ( partition name) itself.But its not working in mount statement
|
I mean echo $part to see what is actually being printed after the
Quote:
This command doesnt seem to be working....I thing it should be Quote:
|
Try
Code:
set -xv |
@cbtshare
even this Quote:
|
@Chris
what is meant by Quote:
|
Try it & see ;)
Basically its a form of debugging; it shows you the before and after version (inc results) of parsing each line. A key tool for fixing shell scripts. http://tldp.org/LDP/Bash-Beginners-G...tml/index.html http://www.tldp.org/LDP/abs/html/ |
@chris
Thank you.. Ya it's debugging.. but what is the solution to solve the problem in code?? |
All times are GMT -5. The time now is 08:43 PM. |