Differences
This shows you the differences between the selected revisions of the page.
2011-07-30 | 2011-10-07 | ||
sftp scp (martin) | session log example (martin) | ||
Line 6: | Line 6: | ||
* The connection fails, because your script depends on [[session_configuration#stored|stored session]], which is not known by the service's account. | * The connection fails, because your script depends on [[session_configuration#stored|stored session]], which is not known by the service's account. | ||
* Environment variables referenced in script are not resolved, because they are not set by the service's account. | * Environment variables referenced in script are not resolved, because they are not set by the service's account. | ||
+ | |||
+ | To check what [[config|configuration storage]] is used, whether a stored session name was recognised or under what Windows account the script is running, inspect a beginning of [[logging|session log]]. For example, following log shows that the configuration was read from Windows registry, the script was running under local account ''martin'' and ''mysession'' was recognised as a stored session name. | ||
+ | |||
+ | <code> | ||
+ | -------------------------------------------------------------------------- | ||
+ | WinSCP Version 5.0.2 (Build 1456) (OS 5.1.2600 Service Pack 3) | ||
+ | Configuration: HKEY_CURRENT_USER\Software\Martin Prikryl\WinSCP 2\ | ||
+ | Local account: INTRANET\martin | ||
+ | Login time: 07 October 2011 08:55:53 | ||
+ | -------------------------------------------------------------------------- | ||
+ | Session name: mysession (Stored session) | ||
+ | </code> | ||
+ | |||
+ | If there was no such stored session in current configuration storage (Windows registry in this case), ''mysession'' (as passed to ''[[scriptcommand_open|open]]'' command) would be interpreted as host name and the log line would say: | ||
+ | |||
+ | <code> | ||
+ | Session name: mysession (Ad-hoc session) | ||
+ | </code> | ||
Solutions: | Solutions: |