Running Ferret thro CNSRUN
The cnsrun utility provides the ability to start and run a database utility from a
script.
/* ferret - showfsp */
cnsrun -utility ferret -commands '{enable scriptmode} {output over /tmp/showfsp.out}
{scope vproc 0}
{showfsp -r 200 } {Y} {quit}' -debug 1
/* ferret - packdisk for selective table*/
cnsrun -utility ferret -commands '{enable scriptmode} {output over /tmp/packdisk.out}
{scope table "dbName.tableName" 0}
{packdisk fsp=15}
{Y} {quit}' -debug 1
script.
/* ferret - showfsp */
cnsrun -utility ferret -commands '{enable scriptmode} {output over /tmp/showfsp.out}
{scope vproc 0}
{showfsp -r 200 } {Y} {quit}' -debug 1
/* ferret - packdisk for selective table*/
cnsrun -utility ferret -commands '{enable scriptmode} {output over /tmp/packdisk.out}
{scope table "
{packdisk fsp=15}
{Y} {quit}' -debug 1
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home