Managing ObjectStore

ostest: Testing a Pathname for Specified Conditions

The ostest utility indicates whether a pathname meets a specified condition.

Syntax

ostest [option] pathname
pathname 
The pathname of a database or directory.

Options
-d 
pathname is a rawfs directory.

-f 
pathname is a rawfs database.

-p 
pathname is a file pathname.

-r 
I (requestor) have read access to pathname.

-s 
pathname is a database with a nonzero size.

-w 
I (requestor) have write access to pathname.

Description

You can specify one option when running this utility. The ostest utility returns an exit code of
0 
When the specified condition is true

Nonzero

When the specified condition is false

When you specify a file database, you cannot specify a remote file-server host in the pathname of the file database. The ostest utility passes the operation to a local native utility. If you specify a remote file-server host name, ObjectStore informs you that you specified an illegal pathname.

API

Class: os_dbutil
Method: stat



[previous] [next]

Copyright © 1999 Object Design, Inc. All rights reserved.

Updated: 03/11/99 11:19:07