[K12OSN] How about a scripting question :-)

Dan Young dyoung at mesd.k12.or.us
Thu Nov 9 22:14:34 UTC 2006


Jim Kronebusch wrote:
> For some reason the "if [-f" for removal wasn't working, I got a "line 2: [-f:
> command not found".  So for testing purposes I just dumped that portion for
> simpler method.  Should the command just be "if [/etc/mailusers]; then rm -f
> /etc/mailusers; fi"?

Just a dumb typo on my part, should be "[ -f /etc/mailusers ]".
                    I missed the space --^

-- 
Dan Young <dyoung at mesd.k12.or.us>
Multnomah ESD - Technology Services
503-257-1562




More information about the K12OSN mailing list