Hello,
I'm using a 3rd party bit of software to upload content onto an Amazon S3 bucket, which is triggered/run within an execute command element via Switch.
The problem is that the prefix is left on the filename when it gets uploaded.
How can remove this prefix without outputting the file into a folder.
Remove prefix on Execute command
-
- TOP CONTRIBUTOR
- Posts: 628
- Joined: Mon Nov 29, 2010 8:45 pm
- Location: Alpharetta GA USA
- Contact:
Re: Remove prefix on Execute command
You will have to rename the file prior to passing it to the upload program. Since you are using the Execute Command element you'll have to create a wrapper script/batch file to rename the file, call upload program and then rename it back. Or you could copy file to another location, upload and then delete the copy.
Re: Remove prefix on Execute command
FYI, I'm pretty sure that S3 upload in switch-aws will remove the switch prefix for you: https://github.com/open-automation/switch-aws
Chat: open-automation @ gitter
Code: open-automation & dominickp @ GitHub
Tools: Switch, Pitstop, EPMS, Veracore, PageDNA, SmartStream, Metrix
Code: open-automation & dominickp @ GitHub
Tools: Switch, Pitstop, EPMS, Veracore, PageDNA, SmartStream, Metrix
Re: Remove prefix on Execute command
@GabrielP
This looks like best option, but I'm struggling to make it work:
Error:

Have installed AWS CLI 32bit and 64bit, played with the path prefix to no avail, installed python too incase a problem existed there.
But I still get same errors whatever I try.
Any advice?
Thanks
This looks like best option, but I'm struggling to make it work:
Error:

Have installed AWS CLI 32bit and 64bit, played with the path prefix to no avail, installed python too incase a problem existed there.
But I still get same errors whatever I try.
Any advice?
Thanks
Re: Remove prefix on Execute command
What operating system?
The app communicates with the installed AWS CLI. Once AWS CLI is installed, run aws
configure to configure your account credentials within the CLI. More on that here:
https://docs.aws.amazon.com/cli/latest/ ... arted.html
The only configuration within the app that needs to be set is the “CLI Path Prefix”. For
Windows users, you can simply remove this value and leave it blank. For OSX users, you
may have to enter the path to where the AWS CLI is installed prefixed with “python”. For
example: “python /usr/local/bin/”. See the flow element properties section for more.
Chat: open-automation @ gitter
Code: open-automation & dominickp @ GitHub
Tools: Switch, Pitstop, EPMS, Veracore, PageDNA, SmartStream, Metrix
Code: open-automation & dominickp @ GitHub
Tools: Switch, Pitstop, EPMS, Veracore, PageDNA, SmartStream, Metrix
Re: Remove prefix on Execute command
2008 R2.
Figured it out. Needed to make sure aws.exe was accessible by the system path and then needed a reboot.
Thanks for your help.
Figured it out. Needed to make sure aws.exe was accessible by the system path and then needed a reboot.
Thanks for your help.