Saving a CSV to a remote server

I have a CSV file that I am generating from a table and saving it to a remote server on our network (non-ignition server) via a script. The problem is that that server is locked down to need a username/password to access. I keep getting a Username/Password is incorrect error when trying to access it. I can save the file locally so I know its not a script issue.

Is there a way for me to include a username/password in my script for it to use when accessing a remote file location?

Generally, the user that the Ignition Service is using would be used for this if the script is being run in the Gateway Scope. If this is from a vision client, then I believe it uses the user signed into that machine.

As far as I know there is no way to force the use of a particular user via script.

Either the user that the Gateway Service is running under, or the user signed in at the client machine, needs to have access. So for instance if you told the Ignition Gateway Service to run with the credentials needed to have access to the remote server, then this would work. Of course there are potentially other issues that can arise from that.

Typically, I would think that you would save this file to a shared folder that wasn't locked.

2 Likes