• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Cf cli parameter question

Explorer ,
Nov 22, 2020 Nov 22, 2020

Copy link to clipboard

Copied

Hi,

 

I am calling a cf script via the command line and passing various parameters one being an aws url. 

 

cf .\testScript.cfm cfpass=cfpassword dsnname=dsn_blaBla badparam=someUrl-staging.ctnszulukwoz.eu-west-1.rds.amazonaws.com
 
It doesnt like parameter badparam. Wrap the string in quotes and it still doesn't like it. Take it out and hardcode it in the script and it works. I need to pass it in as a parameter though. 
 
Anyone know what format will work here?
 
Thanks
TOPICS
Advanced techniques

Views

161

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Nov 23, 2020 Nov 23, 2020

Copy link to clipboard

Copied

What do you mean "it doesn't like the parameter "? Is there an error message?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Nov 23, 2020 Nov 23, 2020

Copy link to clipboard

Copied

LATEST

Hi,

Sorry I didnt put the exact error in. It says

badparam=someUrl-staging.ctnszulukwoz.eu-west-1.rds.amazonaws.com

(The system cannot find the file specified) 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation