Differences
This shows you the differences between the selected revisions of the page.
2015-10-26 | 2015-10-26 | ||
limit acronym recognition (martin) | special characters + passhrase/password (martin) | ||
Line 3: | Line 3: | ||
* You run script from a different environment (under a different account/service; with a different configuration) than the GUI. See another [[faq_scheduler|F.A.Q.]] ((Although it covers a different topic, its recommendations are valid for this case as well.)) | * You run script from a different environment (under a different account/service; with a different configuration) than the GUI. See another [[faq_scheduler|F.A.Q.]] ((Although it covers a different topic, its recommendations are valid for this case as well.)) | ||
* You have your [[session_configuration|session configured]] differently in the script and in the %%GUI%%. | * You have your [[session_configuration|session configured]] differently in the script and in the %%GUI%%. | ||
- | * Use a [[ui_generateurl|Generate URL]] command to avoid common mistakes in manually typed URL's. | + | * Use a [[ui_generateurl|Generate URL]] command to avoid common mistakes in manually typed URL's. \\ A common problem is [[session_url#special|special characters]] in some part of the [[session_url|session URL]] (typically a password or a username). |
- | ····* You may possibly have some special characters in a [[session_url|session URL]] in the script. | + | |
* Try using the %%GUI%% site from the script, using an ''open <site>'' command to see, to see if it makes the script working. Though do not use this solution for a production code. It's not recommended to [[scripting#configuration|rely on a GUI configuration in the script]]. | * Try using the %%GUI%% site from the script, using an ''open <site>'' command to see, to see if it makes the script working. Though do not use this solution for a production code. It's not recommended to [[scripting#configuration|rely on a GUI configuration in the script]]. | ||
+ | * Passphrase to an SSH private key is not a password, you need to specify it using ''[[scriptcommand_open|-passphrase]]'' switch, not in a password part of the session %%URL%%. | ||
You can also enable a [[logging|session logging]] both in the %%GUI%% (on //[[ui_pref_logging|Logging page]]// of Preferences dialog) and the script (using a command-line parameter ''[[commandline|/log]]'') and compare the logs to find out what is different. Use a command-line parameter ''/loglevel=*'' to enable a password logging and check if a correct password is used. | You can also enable a [[logging|session logging]] both in the %%GUI%% (on //[[ui_pref_logging|Logging page]]// of Preferences dialog) and the script (using a command-line parameter ''[[commandline|/log]]'') and compare the logs to find out what is different. Use a command-line parameter ''/loglevel=*'' to enable a password logging and check if a correct password is used. |