Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

17
  • tried this one but got the same result Commented Sep 26, 2014 at 7:08
  • @KevinMacaraeg - and if you put the actual values into the heredoc vs. using the variables, does it still not work? Try this just to confirm my suspicion. Commented Sep 26, 2014 at 7:34
  • it worked! i've used the actual values into the heredoc.. Commented Sep 26, 2014 at 7:41
  • @KevinMacaraeg - yes but how are they being sourced into the script that's ultimately running the above ftp? Commented Sep 26, 2014 at 7:52
  • I declared them in the script. I tried adding "tr -d '\r'" in their initialization, and it worked.. it's carriage return is the culprit after all.. do you know how carriage returns' presence in the variables can be prevented? Commented Sep 26, 2014 at 7:57