Unix & Linux Stack Exchange
Q&A for users of Linux, FreeBSD and other Unix-like operating systems
Latest Questions
8
votes
2
answers
1634
views
ncftp not looking into .netrc
I have this sort of stanza in my `.netrc`: machine ftp.mydomain.com login mylogin password mypassword and while I can successfully connect with `ftp`: ftp ftp.mydomain.com and passing credentials to `ncftp`: ncftp -umylogin -pmypassword ftp.mydomain.com I get this using only `ncftp ftp.mydomain.com`...
I have this sort of stanza in my
.netrc
:
machine ftp.mydomain.com
login mylogin
password mypassword
and while I can successfully connect with ftp
:
ftp ftp.mydomain.com
and passing credentials to ncftp
:
ncftp -umylogin -pmypassword ftp.mydomain.com
I get this using only ncftp ftp.mydomain.com
NcFTP 3.2.4 (May 16, 2010) by Mike Gleason (http://www.NcFTP.com/contact/) .
Connecting to xxx.xxx.0.140...
ProFTPD 1.3.1 Server (Debian) [::ffff:xxx.xxx.0.140]
Login incorrect.
Sleeping 20 seconds...
neurino
(1839 rep)
Jan 30, 2013, 05:28 PM
• Last activity: Mar 25, 2023, 01:59 PM
4
votes
0
answers
502
views
ncftpput don't create parent directory
I am trying to upload multiple directories recursively to an FTP server, (and FTP is the only way). Say I have the following environment: Remote: / /remote-files/ /readme.txt Local: /my-website.com/ /my-website.com/dir1/file1.txt /my-website.com/dir2/file2.txt If I issue the following command: ncftp...
I am trying to upload multiple directories recursively to an FTP server, (and FTP is the only way).
Say I have the following environment:
Remote:
/
/remote-files/
/readme.txt
Local:
/my-website.com/
/my-website.com/dir1/file1.txt
/my-website.com/dir2/file2.txt
If I issue the following command:
ncftpput -R -v -u "root" -p "root" 149.xxx.xxx.xxx / /my-website.com
The result would be:
/
/remote-files/
/readme.txt
/my-website.com/
/my-website.com/dir1/file1.txt
/my-website.com/dir2/file2.txt
What I desired:
/
/remote-files/
/readme.txt
/dir1/file1.txt
/dir2/file2.txt
I tried:
ncftpput -R -v -u "root" -p "root" 149.xxx.xxx.xxx / /my-website.com/
but it makes no difference.
How to do it?
Or should I use other program?
Thank you.
arvil
(690 rep)
Mar 1, 2017, 07:09 PM
3
votes
2
answers
272
views
Vim settings within ncftp edit
I'm using the `ncftp` utility. It has an `edit` command which handles the get, edit, put sequence for me as in GUI ftp clients. It's great except for one thing, I get vanilla `vim`, with none of my settings. Ideally, I'd like to have it configured exactly the same as outside of `ncftp` (colors, key...
I'm using the
ncftp
utility. It has an edit
command which handles the get, edit, put sequence for me as in GUI ftp clients.
It's great except for one thing, I get vanilla vim
, with none of my settings. Ideally, I'd like to have it configured exactly the same as outside of ncftp
(colors, key mappings, pathogen bundles, etc).
How can I force vim to load my settings when invoked from within ncftp
?
NCFTP relies on the following environment variable to find the editor:
EDITOR="/usr/bin/vi" ; export EDITOR
Can that somehow be tweaked to force load my settings?
user39622
(31 rep)
May 21, 2013, 10:31 PM
• Last activity: Sep 16, 2014, 06:50 PM
Showing page 1 of 3 total questions