/log
Provide logon information to a database or network.
/log=
Path:
{Database | NodeName}|
{UserName}|
{Password}
Arguments
- Path—default path leading to a DBMS or network connector, or user-defined path from the assignment file for the application. Include a dollar symbol ($) with the path name, for example, $MSS or $TCP.
- Database—database name
- HostID—host name of the machine where the database or Uniface Router is running
-
UserName and Password—user name and password of the database or host.
Description
Provide logon information to a database or network. This avoids having to use the DBMS Log On or Network Log On form for that path. You can use multiple /log switches when you need to log on to several paths.
The /log switch specifies the database, user name, and password to be passed to the DBMS that manages the data concerned. Or, if you are entering logon information for a network, this switch specifies the node name, the user name, and the password to be passed to the network.
If the path definition in the assignment file includes logon information, the /log switch is ignored.
The Path is mandatory and must refer either to a default path leading to a DBMS or network connector or to a user-defined path from the assignment file for the application. Include a dollar symbol ($) with the path name.
Unix
Unix recognizes the vertical bar (|) on the
command line as a ‘pipe’ symbol. To use the /log switch, you can add double
quotation marks ("
), as follows:
$IDF /log=$TCP:"VAX1|zoe|orlando"
Using /log
The following example logs on to the Sybase database ‘prod’, as user ‘sa’ with password ‘kennet’:
/log=$syb:prod|sa|kennet
The following example starts a Uniface
application using the /log
switch to log on to ORACLE automatically:
/log=$ora:|scott|tiger