Shell script with password that starts with ( [closed]
Clash 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.
shell-script quoting ftp
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.
add a comment |
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.
shell-script quoting ftp
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
add a comment |
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.
shell-script quoting ftp
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
shell-script quoting ftp
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
add a comment |
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
add a comment |
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.
add a comment |
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.
add a comment |
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.
add a comment |
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.
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.
answered Nov 23 at 17:02
Romeo Ninov
5,01431627
5,01431627
add a comment |
add a comment |
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