1

Make some of the /scripts more useful by incorperating proper exit statuses

view story
linux-howto

http://forums.cpanel.net – The scripts: /scripts/whoowns/scripts/gethomedir ...return with a successful 0 instead of an unsuccessful value when given a bad value. These scripts would be much more useful for incorporating into site-specific shell scripts if they gave non-zero values if an entry was invalid. Steps to reproduce: Code: [root@gator1000 /home]# /scripts/whoowns example.com && echo "Hello, world" Hello, world [root@gator1000 /home]# /scripts/gethomedir goofus && echo "Hello, world" 1 Hello, world I'm not even sure what the '1' is supposed to mean th (HowTos)