cancel
Showing results for 
Search instead for 
Did you mean: 
Subscribe

We have the service started with the dbsvc utility using the -o and -oe options as described here.

For Windows, both options are described in the DCX documentation but they are not part of the Service utility for Linux.

Since the log files seem to be generated fine in the Linux server, are the -o and -oe options not supported for Linux for 12.0.1.3759?

View Entire Topic
graeme_perrow
Advisor
Advisor

Both of those options are server options, not dbsvc options. The dbsvc utility works as follows:

dbsvc [dbsvc switches] -w <name> [server exe] [server switches]

The [server exe] part is not necessary on Unix. Any switch that appears before the -w is a dbsvc switch, meaning that it alters dbsvc's behaviour. Any switch that appears after the -w is a server switch, and dbsvc tells the service to use it. dbsvc itself doesn't know about server switches, which is why -oe is not documented as part of dbsvc.

The confusing part is that on Windows, -o is both a dbsvc switch and a server switch. If the -o switch appears before the -w, dbsvc uses it itself and writes its output there. If it appears after the -w, dbsvc passes it along to the service it creates. The -o switch is not supported by dbsvc on Linux.

You are trying to use the -o and -oe server switches, so they need to appear after the -w. Sorry my answer was so terse before. I hope this clarifies things.

Former Member
0 Likes

I am using this command line inside a script to define the service which is creating both log files when started:

/dbsvc -as -s Automatic -t Network -w $service_name -n $server_name -c $mem_alloc -o "$log/olog.txt" -oe "$log/oelog.txt" -os 1M -x $comm_parms "@$netbase/dbfiles.txt"

I can see all the logged info in the olog.txt file until the "Now accepting requests" line so it seems to be correct.

graeme_perrow
Advisor
Advisor
0 Likes

Sorry for my very short answer - I've expanded it. Hopefully it helps.

VolkerBarth
Contributor
0 Likes

Graeme, could you clarify whether the -o dbsvc modifier option is only supported on Windows (as documented) or applies to Linux, too?

graeme_perrow
Advisor
Advisor

It looks like the Linux version of dbsvc does not support the -o switch. I've updated my answer.

Former Member
0 Likes

@Graeme, as in my command line above, both the -o and -oe switches were placed after the -w as you described.

graeme_perrow
Advisor
Advisor
0 Likes

Yes, I understand. I'm describing how dbsvc works because your original question seemed to be asking why -oe was not documented for dbsvc. I'm explaining that it's not a dbsvc switch at all. The documentation is correct.