JMC Command Line options
- -c or --config-file FILE: Configuration file to use
- -S or --server SERVER_ADDRESS: Address of the Jabber server
- -P or --port PORT: Port of the Jabber server to connect the component
- -s or --secret SECRET: Component password to connect to the Jabber server
- -j or --service-jid JID: JID of the component
- -l or --language LANG: Default language of the component
- -u or --db-url URL: Database URL
- -p or --pid-file FILE: Path of the PID file
- -d or --debug: Enable debug traces
- -C or --console: Run in console mode. It does not run JMC but run an [ipython] console to access SQLObject database. Here are some useful methods:
# get a User object JMC[1]: account.get_user(USER_JID) # get all User objects JMC[2]: account.get_all_users() # get an Account JMC[3]: account.get_account(USER_JID, ACCOUNT_NAME) # get all accounts of a user JMC[3]: account.get_accounts(USER_JID) # get all accounts JMC[5]: account.get_all_accounts()
- -o or --log-stdout: Log on stdandard output
- -f or --log-file FILE: Log in a file
- -h or --help: Help on command line options
- -i or --check-interval INTERVAL: Interval unit in minutes between mail checks
- -e or --mail-default-encoding ENCODING: Default encoding of the component
