7. Using Sharity from the CommandlineAlthough it is most comfortable to interact with Sharity through the GUI application, there are situations where the commandline interface has advantages. You can use it from within scripts, remotely from a terminal or on machines with no graphics display installed. Everything which can be done from the GUI can also be done from the commandline, except changing the configuration. If you have to change the configuration without GUI, edit the file cfgdb.ppl or sharity.cfg. Almost every option in sharity.cfg can be overwritten by an equally named option in cfgdb.ppl.7.1 Commandline UtilitiesThere's in fact only one executable which performs all commandline operations. The name of this executable is sharity. The first parameter is the function you want to perform, for instance:sharity cifslistThis command executes the cifslist function. Because it's uncomfortable to call each function this way, symbolic links are made to the sharity executable under the names cifsmount, cifslist, etc. The sharity executable detects automatically when it has been called under one of these names and performs the respective function. The above example can therefore be simplified to: cifslistOnly the CIFS related functions have such shorthand invocations because a name conflict with other commandline utilities is unlikely. Functions like mount must be called the long way because the shorthand form would collide with a system utility's name. Here's an overview over the implemented functions. If you want to know more about the commandline parameters of a specific function, call it with option -h to get help or with the option -man for the full manual page. You can also get to the manual page of a function by clicking its name in the following list. mount umount storemnt list cifsmount cifsumount cifslogin cifslogout cifslist cifslicense cifsstore cifsstoremnt
Sharity Manual 2.9 Beta 7 | Copyright (C) 2004 OBJECTIVE DEVELOPMENT Software GmbH | http://www.obdev.at/
|