{"action":"created","issue":{"url":"https://api.github.com/repos/FoldingAtHome/fah-client-pub/issues/25","labels_url":"https://api.github.com/repos/FoldingAtHome/fah-client-pub/issues/25/labels{/name}","comments_url":"https://api.github.com/repos/FoldingAtHome/fah-client-pub/issues/25/comments","events_url":"https://api.github.com/repos/FoldingAtHome/fah-client-pub/issues/25/events","html_url":"https://github.com/FoldingAtHome/fah-client-pub/issues/25","id":65564601,"number":25,"title":"XML file not taken into account if the client is started without argument.","user":{"login":"jcoffland","id":1166284,"avatar_url":"https://avatars.githubusercontent.com/u/1166284?v=3","gravatar_id":"","url":"https://api.github.com/users/jcoffland","html_url":"https://github.com/jcoffland","followers_url":"https://api.github.com/users/jcoffland/followers","following_url":"https://api.github.com/users/jcoffland/following{/other_user}","gists_url":"https://api.github.com/users/jcoffland/gists{/gist_id}","starred_url":"https://api.github.com/users/jcoffland/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jcoffland/subscriptions","organizations_url":"https://api.github.com/users/jcoffland/orgs","repos_url":"https://api.github.com/users/jcoffland/repos","events_url":"https://api.github.com/users/jcoffland/events{/privacy}","received_events_url":"https://api.github.com/users/jcoffland/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"jcoffland","id":1166284,"avatar_url":"https://avatars.githubusercontent.com/u/1166284?v=3","gravatar_id":"","url":"https://api.github.com/users/jcoffland","html_url":"https://github.com/jcoffland","followers_url":"https://api.github.com/users/jcoffland/followers","following_url":"https://api.github.com/users/jcoffland/following{/other_user}","gists_url":"https://api.github.com/users/jcoffland/gists{/gist_id}","starred_url":"https://api.github.com/users/jcoffland/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jcoffland/subscriptions","organizations_url":"https://api.github.com/users/jcoffland/orgs","repos_url":"https://api.github.com/users/jcoffland/repos","events_url":"https://api.github.com/users/jcoffland/events{/privacy}","received_events_url":"https://api.github.com/users/jcoffland/received_events","type":"User","site_admin":false},"milestone":null,"comments":2,"created_at":"2015-03-31T22:55:40Z","updated_at":"2015-03-31T22:55:49Z","closed_at":"2015-03-31T22:55:43Z","body":"**Reported by @toTOW on 12 Jun 2010 12:12 UTC**\nIt looks like the client doesn't pick the xml file if it is launched without argument :\r\n\r\nClient call : FAHClient.exe --print\r\n\r\n     assignment-servers = assign3.stanford.edu:80 assign4.stanford.edu:80\r\n     capture-directory = capture\r\n       capture-sockets = false\r\n        client-subtype = STDCLI\r\n           client-type = normal\r\n              core-key = <undefined>\r\n           core-server = <undefined>\r\n           cpu-species = X86_PENTIUM_II\r\n              cpu-type = X86\r\n                  cpus = 8\r\n            cycle-rate = 10.000000\r\n                cycles = -1\r\n         debug-sockets = false\r\n                 delay = 60\r\n                  dump = false\r\n                  eval = <undefined>\r\n   exception-locations = false\r\n       extra-core-args = <undefined>\r\n                   gpu = false\r\n                gpu-id = 0\r\n           gpu-species = ATI_R800\r\n              gpu-type = ATI_GPU\r\n                  gpus = 1\r\n                   log = log.txt\r\n             log-color = false\r\n              log-crlf = true\r\n              log-date = false\r\n             log-debug = true\r\n            log-domain = false\r\n     log-domain-levels = <undefined>\r\n            log-header = true\r\n             log-level = true\r\n    log-no-info-header = true\r\n          log-redirect = false\r\n            log-rotate = true\r\n        log-rotate-dir = logs\r\n        log-rotate-max = 16\r\n       log-short-level = false\r\n    log-simple-domains = true\r\n         log-thread-id = false\r\n              log-time = true\r\n         log-to-screen = true\r\n          log-truncate = false\r\n            machine-id = 0\r\n       max-packet-size = normal\r\n             max-queue = 16\r\n     max-shutdown-wait = 60.000000\r\n       max-unit-errors = 5\r\n                memory = 1024\r\n              priority = <undefined>\r\n            os-species = WIN_XP\r\n               os-type = WIN32\r\n               passkey =\r\n              priority = <undefined>\r\n                script = <undefined>\r\n           script-port = 127.0.0.1:36330\r\n               service = false\r\n                   smp = true\r\n          stack-traces = false\r\n                  team =\r\n                  user = anonymous\r\n             verbosity = 1\r\n        work-directory = work\r\n\r\nAnonymous and no team, but the xml file is in the same folder as client excecutable.\r\n\r\nClient call : FAHClient.exe config.xml --print\r\n\r\n\r\n    assignment-servers = assign3.stanford.edu:80 assign4.stanford.edu:80\r\n     capture-directory = capture\r\n       capture-sockets = false\r\n        client-subtype = STDCLI\r\n           client-type = normal\r\n              core-key = <undefined>\r\n           core-server = <undefined>\r\n           cpu-species = X86_PENTIUM_II\r\n              cpu-type = X86\r\n                  cpus = 8\r\n            cycle-rate = 10.000000\r\n                cycles = -1\r\n         debug-sockets = false\r\n                 delay = 60\r\n                  dump = false\r\n                  eval = <undefined>\r\n   exception-locations = false\r\n       extra-core-args = <undefined>\r\n                   gpu = false\r\n                gpu-id = 0\r\n           gpu-species = ATI_R800\r\n              gpu-type = ATI_GPU\r\n                  gpus = 1\r\n                   log = log.txt\r\n             log-color = false\r\n              log-crlf = true\r\n              log-date = false\r\n             log-debug = true\r\n            log-domain = false\r\n     log-domain-levels = <undefined>\r\n            log-header = true\r\n             log-level = true\r\n    log-no-info-header = true\r\n          log-redirect = false\r\n            log-rotate = true\r\n        log-rotate-dir = logs\r\n        log-rotate-max = 16\r\n       log-short-level = false\r\n    log-simple-domains = true\r\n         log-thread-id = false\r\n              log-time = true\r\n         log-to-screen = true\r\n          log-truncate = false\r\n            machine-id = 0\r\n       max-packet-size = normal\r\n             max-queue = 16\r\n     max-shutdown-wait = 60.000000\r\n       max-unit-errors = 5\r\n                memory = 1024\r\n              priority = <undefined>\r\n            os-species = WIN_XP\r\n               os-type = WIN32\r\n               passkey = 7d5caa22c0ee7a01028adcf0d3eb974a\r\n              priority = <undefined>\r\n                script = <undefined>\r\n           script-port = 127.0.0.1:36330\r\n               service = false\r\n                   smp = true\r\n          stack-traces = false\r\n                  team = 51\r\n                  user = toTOW\r\n             verbosity = 1\r\n        work-directory = work\r\n\r\nConfiguration seems correct.\r\n\r\nI think the client should look for xml files in the same folder as the executable and use it if no argument has been passed to the client."},"comment":{"url":"https://api.github.com/repos/FoldingAtHome/fah-client-pub/issues/comments/88277491","html_url":"https://github.com/FoldingAtHome/fah-client-pub/issues/25#issuecomment-88277491","issue_url":"https://api.github.com/repos/FoldingAtHome/fah-client-pub/issues/25","id":88277491,"user":{"login":"jcoffland","id":1166284,"avatar_url":"https://avatars.githubusercontent.com/u/1166284?v=3","gravatar_id":"","url":"https://api.github.com/users/jcoffland","html_url":"https://github.com/jcoffland","followers_url":"https://api.github.com/users/jcoffland/followers","following_url":"https://api.github.com/users/jcoffland/following{/other_user}","gists_url":"https://api.github.com/users/jcoffland/gists{/gist_id}","starred_url":"https://api.github.com/users/jcoffland/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jcoffland/subscriptions","organizations_url":"https://api.github.com/users/jcoffland/orgs","repos_url":"https://api.github.com/users/jcoffland/repos","events_url":"https://api.github.com/users/jcoffland/events{/privacy}","received_events_url":"https://api.github.com/users/jcoffland/received_events","type":"User","site_admin":false},"created_at":"2015-03-31T22:55:48Z","updated_at":"2015-03-31T22:55:48Z","body":"**Comment by @jcoffland on 12 Jun 2010 20:27 UTC**\nThe client first parses the command line.  If it encounters configuration file it loads it.  If after parsing the command line no config file was loaded it then looks for '''config.xml''' in the current folder and loads that.\r\n\r\nWhen you run '''FAHClient --print''' '''print''' run before the '''config.xml''' in the current directory is found.\r\n\r\nThis is explained in the Users Guide.  It also tells you to run it like this:\r\n\r\n```sh\r\nFAHClient config.xml --print\r\n```\r\n\r\nThat way the '''config.xml''' is loaded before '''print''' is executed.\r\n\r\nThis system may seem a little confusing but it allows you to override configuration options on the command line like this:\r\n\r\n```sh\r\nFAHClient config.xml --user=joe\r\n```\r\n\r\nHowever, in this case the '''config.xml''' will prevail because it is loaded last.\r\n\r\n```sh\r\nFAHClient --use=joe\r\n```\r\n\r\nTo make this less confusing there are two options:\r\n\r\n 1. Don't automatically load '''config.xml''' from the current directory.\r\n 1. Scan the command line once to see if a configuration file was passed but don't do anything.  If not, and it exists, load '''config.xml'''.  Then process the command line.\r\n\r\nThe second option is more complicated which is why I haven't implemented it yet."}}