Date: Tue, 7 Nov 2006 09:37:11 -0500 From: "Grant Peel" <gpeel@thenetnow.com> To: <freebsd-questions@freebsd.org> Subject: 'cd' ing inside a shell script Message-ID: <00ff01c7027a$36263dd0$6501a8c0@GRANT>
next in thread | raw e-mail | index | archive | help
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 script have any adverse affect on the = rest of the system or cronjobs? OK, will the scripot just complete and = exit, with the 'cd' having no affect? -Grant
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?00ff01c7027a$36263dd0$6501a8c0>