Re: 'cd' ing inside a shell script

2006-11-07 Thread dgmm
On Tuesday 07 November 2006 14:37, Grant Peel wrote: > Hi all, > > Some of my webmail users are using lots of disk space. > > I want to make a shell script, like so: > > cd /home/webmail/public_html/cgi-bin/etc/users ; du -h -d1 | grep M | sort > -nr -k1 > > and run it daily in a cronjob, mailing t

Re: 'cd' ing inside a shell script

2006-11-07 Thread Bill Campbell
On Tue, Nov 07, 2006, Grant Peel wrote: >Hi all, >Some of my webmail users are using lots of disk space. >I want to make a shell script, like so: >cd /home/webmail/public_html/cgi-bin/etc/users ; du -h -d1 | grep M | sort >-nr -k1 >and run it daily in a cronjob, mailing the results to my assist

'cd' ing inside a shell script

2006-11-07 Thread Grant Peel
Hi all, Some of my webmail users are using lots of disk space. I want to make a shell script, like so: cd /home/webmail/public_html/cgi-bin/etc/users ; du -h -d1 | grep M | sort -nr -k1 and run it daily in a cronjob, mailing the results to my assistants. with the 'cd' at that start of the scr