Shell script with password that starts with ( [on hold]











up vote
-2
down vote

favorite












I have a shell script that opens ftp, then passes on the user ID and password. The password starts with ( and the server does not like it. It errors outs with a failure to log in message. How can I get past this, without having to change the password? I tried single quotes and that failed also.










share|improve this question









New contributor




user322509 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











put on hold as unclear what you're asking by Kusalananda, RalfFriedl, roaima, G-Man, maxschlepzig 2 days ago


Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.











  • 2




    Unclear: Does not show what they are doing. Does not mention what FTP client is used on what Unix.
    – Kusalananda
    Nov 23 at 17:08








  • 1




    pastebin a copy of the script minus your user/server/ip information. Please.
    – Michael Prokopec
    Nov 23 at 17:43















up vote
-2
down vote

favorite












I have a shell script that opens ftp, then passes on the user ID and password. The password starts with ( and the server does not like it. It errors outs with a failure to log in message. How can I get past this, without having to change the password? I tried single quotes and that failed also.










share|improve this question









New contributor




user322509 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











put on hold as unclear what you're asking by Kusalananda, RalfFriedl, roaima, G-Man, maxschlepzig 2 days ago


Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.











  • 2




    Unclear: Does not show what they are doing. Does not mention what FTP client is used on what Unix.
    – Kusalananda
    Nov 23 at 17:08








  • 1




    pastebin a copy of the script minus your user/server/ip information. Please.
    – Michael Prokopec
    Nov 23 at 17:43













up vote
-2
down vote

favorite









up vote
-2
down vote

favorite











I have a shell script that opens ftp, then passes on the user ID and password. The password starts with ( and the server does not like it. It errors outs with a failure to log in message. How can I get past this, without having to change the password? I tried single quotes and that failed also.










share|improve this question









New contributor




user322509 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











I have a shell script that opens ftp, then passes on the user ID and password. The password starts with ( and the server does not like it. It errors outs with a failure to log in message. How can I get past this, without having to change the password? I tried single quotes and that failed also.







shell-script quoting ftp






share|improve this question









New contributor




user322509 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











share|improve this question









New contributor




user322509 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









share|improve this question




share|improve this question








edited Nov 23 at 21:29









Michael Prokopec

52415




52415






New contributor




user322509 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









asked Nov 23 at 16:56









user322509

1




1




New contributor




user322509 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





New contributor





user322509 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






user322509 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.




put on hold as unclear what you're asking by Kusalananda, RalfFriedl, roaima, G-Man, maxschlepzig 2 days ago


Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.






put on hold as unclear what you're asking by Kusalananda, RalfFriedl, roaima, G-Man, maxschlepzig 2 days ago


Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.










  • 2




    Unclear: Does not show what they are doing. Does not mention what FTP client is used on what Unix.
    – Kusalananda
    Nov 23 at 17:08








  • 1




    pastebin a copy of the script minus your user/server/ip information. Please.
    – Michael Prokopec
    Nov 23 at 17:43














  • 2




    Unclear: Does not show what they are doing. Does not mention what FTP client is used on what Unix.
    – Kusalananda
    Nov 23 at 17:08








  • 1




    pastebin a copy of the script minus your user/server/ip information. Please.
    – Michael Prokopec
    Nov 23 at 17:43








2




2




Unclear: Does not show what they are doing. Does not mention what FTP client is used on what Unix.
– Kusalananda
Nov 23 at 17:08






Unclear: Does not show what they are doing. Does not mention what FTP client is used on what Unix.
– Kusalananda
Nov 23 at 17:08






1




1




pastebin a copy of the script minus your user/server/ip information. Please.
– Michael Prokopec
Nov 23 at 17:43




pastebin a copy of the script minus your user/server/ip information. Please.
– Michael Prokopec
Nov 23 at 17:43










1 Answer
1






active

oldest

votes

















up vote
2
down vote













You can use .netrc file (located in your home directory). At least most of ftp clients can use the information in this file for authentication purpose. The format is:



machine example.com
login <username>
password <password>


You should replace <username> with your username and <password> with your password.



The only disadvantage is the username and the password will be visible to anyone who can read the file.






share|improve this answer




























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    2
    down vote













    You can use .netrc file (located in your home directory). At least most of ftp clients can use the information in this file for authentication purpose. The format is:



    machine example.com
    login <username>
    password <password>


    You should replace <username> with your username and <password> with your password.



    The only disadvantage is the username and the password will be visible to anyone who can read the file.






    share|improve this answer

























      up vote
      2
      down vote













      You can use .netrc file (located in your home directory). At least most of ftp clients can use the information in this file for authentication purpose. The format is:



      machine example.com
      login <username>
      password <password>


      You should replace <username> with your username and <password> with your password.



      The only disadvantage is the username and the password will be visible to anyone who can read the file.






      share|improve this answer























        up vote
        2
        down vote










        up vote
        2
        down vote









        You can use .netrc file (located in your home directory). At least most of ftp clients can use the information in this file for authentication purpose. The format is:



        machine example.com
        login <username>
        password <password>


        You should replace <username> with your username and <password> with your password.



        The only disadvantage is the username and the password will be visible to anyone who can read the file.






        share|improve this answer












        You can use .netrc file (located in your home directory). At least most of ftp clients can use the information in this file for authentication purpose. The format is:



        machine example.com
        login <username>
        password <password>


        You should replace <username> with your username and <password> with your password.



        The only disadvantage is the username and the password will be visible to anyone who can read the file.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Nov 23 at 17:02









        Romeo Ninov

        4,98431627




        4,98431627















            Popular posts from this blog

            サソリ

            広島県道265号伴広島線

            Accessing regular linux commands in Huawei's Dopra Linux