0

I would like to pass the password argument in the argument when calling a shell script but it doesnt work

This is the code I have:

./abc.sh abc.ftp.com user1234 password?233@jio&abc

At password stage it got stuck. any idea?

John Kugelman
  • 349,597
  • 67
  • 533
  • 578
user35631
  • 39
  • 1
  • 7
  • 1
    `./abc.sh abc.ftp.com user1234 'password?233@jio&abc'` – Bodo Nov 18 '20 at 16:31
  • i tried. doesnt work . not sure why – user35631 Nov 18 '20 at 17:12
  • What exactly means "doesn't work"? Maybe you missing quotes in your script. (Probably you will need double quotes.) Please [edit] your question, copy&paste the code of your script and format it as a code block using the `{}` tool of the editor field.. – Bodo Nov 18 '20 at 21:45
  • I just saw a mistake in my comment but can no longer edit it. The second sentence should be: Maybe you also have missing quotes in your script. – Bodo Nov 18 '20 at 22:00

0 Answers0