lftp sftp file to specific directory
Clash Royale CLAN TAG#URR8PPP
up vote
0
down vote
favorite
I need to copy a file over SFTP to a specific directory. I use LFTP because this connection requires an IP6 mDNS name.
lftp sftp://admin:password123@serial.local -e "put file.txt; bye"
This works, but the file ends up in /home/admin
I want the file to end up in /home/admin/upload
Can I somehow specify the destination directory? I'd be happy to use an additional command to do so, but it must be scripted with lftp/sftp
scripting sftp
add a comment |Â
up vote
0
down vote
favorite
I need to copy a file over SFTP to a specific directory. I use LFTP because this connection requires an IP6 mDNS name.
lftp sftp://admin:password123@serial.local -e "put file.txt; bye"
This works, but the file ends up in /home/admin
I want the file to end up in /home/admin/upload
Can I somehow specify the destination directory? I'd be happy to use an additional command to do so, but it must be scripted with lftp/sftp
scripting sftp
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I need to copy a file over SFTP to a specific directory. I use LFTP because this connection requires an IP6 mDNS name.
lftp sftp://admin:password123@serial.local -e "put file.txt; bye"
This works, but the file ends up in /home/admin
I want the file to end up in /home/admin/upload
Can I somehow specify the destination directory? I'd be happy to use an additional command to do so, but it must be scripted with lftp/sftp
scripting sftp
I need to copy a file over SFTP to a specific directory. I use LFTP because this connection requires an IP6 mDNS name.
lftp sftp://admin:password123@serial.local -e "put file.txt; bye"
This works, but the file ends up in /home/admin
I want the file to end up in /home/admin/upload
Can I somehow specify the destination directory? I'd be happy to use an additional command to do so, but it must be scripted with lftp/sftp
scripting sftp
scripting sftp
asked Oct 9 '17 at 23:20
LVLAaron
75041929
75041929
add a comment |Â
add a comment |Â
1 Answer
1
active
oldest
votes
up vote
2
down vote
accepted
Perhaps all you need is an additional command:
lftp sftp://admin:password123@serial.local -e "cd upload; put file.txt; bye"
That works. You know I've been having a long day when I can't figure that out on my own. Thanks mate!
â LVLAaron
Oct 9 '17 at 23:28
Glad it worked; I'm not an lftp user, but saw that-e
appeared to take multiple commands.
â Jeff Schaller
Oct 9 '17 at 23:42
Good find. LFTP is pretty cool. It's one of the only CLI utilities in OSX that can resolve an IPv6 mdns name.
â LVLAaron
Oct 10 '17 at 12:09
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
accepted
Perhaps all you need is an additional command:
lftp sftp://admin:password123@serial.local -e "cd upload; put file.txt; bye"
That works. You know I've been having a long day when I can't figure that out on my own. Thanks mate!
â LVLAaron
Oct 9 '17 at 23:28
Glad it worked; I'm not an lftp user, but saw that-e
appeared to take multiple commands.
â Jeff Schaller
Oct 9 '17 at 23:42
Good find. LFTP is pretty cool. It's one of the only CLI utilities in OSX that can resolve an IPv6 mdns name.
â LVLAaron
Oct 10 '17 at 12:09
add a comment |Â
up vote
2
down vote
accepted
Perhaps all you need is an additional command:
lftp sftp://admin:password123@serial.local -e "cd upload; put file.txt; bye"
That works. You know I've been having a long day when I can't figure that out on my own. Thanks mate!
â LVLAaron
Oct 9 '17 at 23:28
Glad it worked; I'm not an lftp user, but saw that-e
appeared to take multiple commands.
â Jeff Schaller
Oct 9 '17 at 23:42
Good find. LFTP is pretty cool. It's one of the only CLI utilities in OSX that can resolve an IPv6 mdns name.
â LVLAaron
Oct 10 '17 at 12:09
add a comment |Â
up vote
2
down vote
accepted
up vote
2
down vote
accepted
Perhaps all you need is an additional command:
lftp sftp://admin:password123@serial.local -e "cd upload; put file.txt; bye"
Perhaps all you need is an additional command:
lftp sftp://admin:password123@serial.local -e "cd upload; put file.txt; bye"
answered Oct 9 '17 at 23:23
Jeff Schaller
32.3k849109
32.3k849109
That works. You know I've been having a long day when I can't figure that out on my own. Thanks mate!
â LVLAaron
Oct 9 '17 at 23:28
Glad it worked; I'm not an lftp user, but saw that-e
appeared to take multiple commands.
â Jeff Schaller
Oct 9 '17 at 23:42
Good find. LFTP is pretty cool. It's one of the only CLI utilities in OSX that can resolve an IPv6 mdns name.
â LVLAaron
Oct 10 '17 at 12:09
add a comment |Â
That works. You know I've been having a long day when I can't figure that out on my own. Thanks mate!
â LVLAaron
Oct 9 '17 at 23:28
Glad it worked; I'm not an lftp user, but saw that-e
appeared to take multiple commands.
â Jeff Schaller
Oct 9 '17 at 23:42
Good find. LFTP is pretty cool. It's one of the only CLI utilities in OSX that can resolve an IPv6 mdns name.
â LVLAaron
Oct 10 '17 at 12:09
That works. You know I've been having a long day when I can't figure that out on my own. Thanks mate!
â LVLAaron
Oct 9 '17 at 23:28
That works. You know I've been having a long day when I can't figure that out on my own. Thanks mate!
â LVLAaron
Oct 9 '17 at 23:28
Glad it worked; I'm not an lftp user, but saw that
-e
appeared to take multiple commands.â Jeff Schaller
Oct 9 '17 at 23:42
Glad it worked; I'm not an lftp user, but saw that
-e
appeared to take multiple commands.â Jeff Schaller
Oct 9 '17 at 23:42
Good find. LFTP is pretty cool. It's one of the only CLI utilities in OSX that can resolve an IPv6 mdns name.
â LVLAaron
Oct 10 '17 at 12:09
Good find. LFTP is pretty cool. It's one of the only CLI utilities in OSX that can resolve an IPv6 mdns name.
â LVLAaron
Oct 10 '17 at 12:09
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f397139%2flftp-sftp-file-to-specific-directory%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password