Shell script with password that starts with ( [closed]

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











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















closed as unclear what you're asking by Kusalananda, RalfFriedl, roaima, G-Man, maxschlepzig Nov 24 at 12:44


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















closed as unclear what you're asking by Kusalananda, RalfFriedl, roaima, G-Man, maxschlepzig Nov 24 at 12:44


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















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















share|improve this question













share|improve this question




share|improve this question








edited Nov 23 at 21:29









Michael Prokopec

68916




68916










asked Nov 23 at 16:56









user322509

1




1




closed as unclear what you're asking by Kusalananda, RalfFriedl, roaima, G-Man, maxschlepzig Nov 24 at 12:44


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.






closed as unclear what you're asking by Kusalananda, RalfFriedl, roaima, G-Man, maxschlepzig Nov 24 at 12:44


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

        5,01431627




        5,01431627












            Popular posts from this blog

            How to check contact read email or not when send email to Individual?

            Displaying single band from multi-band raster using QGIS

            How many registers does an x86_64 CPU actually have?