Previous Topic Next topic Print topic


Using a Fileshare Configuration File

You can specify your Fileshare parameters in a configuration file, as an alternative to specifying them on the command line. A Fileshare Server configuration file is an ASCII text file that contains one option per line.

If you give no parameters on the command line, then fs looks for a configuration file. By default, it looks for a file called fs.cfg in the Fileshare directory, that is, the directory where you started fs. You can use the /cf (Windows) or -cf (UNIX) parameter to specify a different path and/or filename.

For example, you could have a configuration file c:\fsdir\fsconf.cfg (Windows) /home/fsdir/fsconf.cfg (UNIX) containing:

Windows:

/s server1
/tr f

UNIX:

-s server1
-tr f

and start your server server1, from your application command prompt, by entering:

Windows:

fs /cf fsconf.cfg

UNIX:

fs -cf fsconf.cfg

Another example is that you could have a configuration file c:\fsdir\fs.cfg (Windows) /home/fsdir/fs.cfg (UNIX) containing:

Windows:

/s server1

UNIX:

-s server1

and start your server by entering:

fs
Previous Topic Next topic Print topic