[Cosmo] Like the simple SQL wrapper
jared at wordzoo.com
Wed Jan 4 21:20:53 PST 2006
It'd be cool to see a quick example or useful hack in bin or elsewhere
that preserves this pattern, recently removed by a patch:
-# generate the list of users in the user db
-echo "Writing list of user accounts to $USERFILE"
-java -jar $TOMCATLIB/hsqldb-184.108.40.206.jar \
- --rcfile "$SQLTOOL_RC" --noinput \
- --sql 'select limit 0 0 username from user order by upper(username);' \
- cosmo-0.2 > "$USERFILE"
Granted, this was only in the code for a couple hours, but it was
certainly educational to see fly by, and savvy sysadmins who can do
this but can't write something like
org.osaf.cosmo.ops.HomeDirectoryRecoverer would be happy to find this
hack in a script somewhere.
Jared Rhine <jared at wordzoo.com>
More information about the Cosmo