tobold.org

correct • elegant • free

△ comp.unix.shell △

◅ how to set up arrow keys in CSH

Bourne Shell question ▻

add quotas within a shell script

In article <38ea6002$0$53616@SSP1NO17.highway.telekom.at>,
 <schel@aon.at> wrote:
>Does someone know how to add quotas within a shell script?

You can use `ed' to do this.

    EDITOR=ed export EDITOR
    edquota "$user" <<EOF
    /export\/home/
    s/soft = 0,/soft = 200000,/
    s/hard = 0)/hard = 200000)/
    w
    EOF

Tim.
--
Tim Goodwin   | "If you don't know what closures are, you probably don't
Leicester, UK | want to know what closures are." -- Larry Wall

Original headers:

From: tjg@star.le.ac.uk (Tim Goodwin)
Newsgroups: comp.unix.shell
Subject: Re: add quotas within a shell script
Date: 5 Apr 2000 11:57:51 +0100
Message-ID: <8cf685$rfo$1@ltpcg.star.le.ac.uk>
References: <38ea6002$0$53616@SSP1NO17.highway.telekom.at>

△ comp.unix.shell △

◅ how to set up arrow keys in CSH

Bourne Shell question ▻