Quote Originally Posted by Franz Sirl View Post
Am 2017-09-18 um 20:14 schrieb x0500hl:
> I found that the FTP command on SLES 11 is a symbolic link to program
> pftp. Program pftp doesn't exist on SLES 12. The FTP command on SLES
> 12 is a symbolic link to program lftp.

pftp is neither a SLES11 nor a SLES12 standard package. And on both 11
and 12 ftp is normally a symbolic link to lftp_wrapper (via
/etc/alternatives). So I guess someone installed pftp manually and
changed the symbolic link? And the SLES12 install reverted it back to
the default?


I appreciate the response, thank you.

We did a clean install of SLES 11 (base) shortly after it was released and never installed a different package. I found that /usr/bin/pftp is part of package lukemftp-1.5-725.17 (command "rpm -qf /usr/bin/pftp") which was installed "Wed Dec 30 08:04:59 2009". This date is the oldest date for command "rpm -qa --last", and there are many screens of rpm files that were installed on that date.

On one of my SLES 11 systems, which were all cloned from a single golden-image and were upgraded from base to SP1, SP2, SP3, to SP4, the /usr/bin directory contains (all files containing 'ftp'):
lrwxrwxrwx 1 root root     21 Dec 30  2009 ftp -> /etc/alternatives/ftp
-rwxr-xr-x 1 root root    598 May 28  2009 ftp-rfc
-rwxr-xr-x 1 root root  10536 Jun  9  2015 ftpatchk
-rwxr-xr-x 1 root root  86880 Jun 29  2011 opieftpd
-r-xr-xr-x 1 root root 250288 Feb 21  2009 pftp
-rwxr-xr-x 1 root root   8803 May 28  2009 rftp
-rwxr-xr-x 1 root root 137752 Oct  5  2015 sftp
/etc/alternatives contains:
lrwxrwxrwx   1 root root    13 Dec 30  2009 ftp -> /usr/bin/pftp
lrwxrwxrwx   1 root root    29 Dec 30  2009 ftp.1 -> /usr/share/man/man1/pftp.1.gz
lrwxrwxrwx   1 root root    15 Nov 22  2015 ld -> /usr/bin/ld.bfd
lrwxrwxrwx   1 root root    27 Nov 22  2015 libblas.so.3 -> /usr/lib64/libblas.so.3.4.2
lrwxrwxrwx   1 root root    29 Nov 22  2015 liblapack.so.3 -> /usr/lib64/liblapack.so.3.4.2
lrwxrwxrwx   1 root root    15 Aug 12  2012 vim -> /bin/vim-normal
lrwxrwxrwx   1 root root    36 Aug 12  2012 xulrunner -> /usr/lib64/xulrunner-1.9.2/xulrunner

For anyone interested, the FTP commands that were used prior to SLES 12 follow. These commands are almost the same as what I would specify in a Windows Command prompt to FTP a file to the same server.
ftp -nv $HOST <<END_SCRIPT 2>&1 | tee $STDOUTFILE
quote USER $USER
site unit=cart retpd="$RETENTION"
The FTP commands that now perform the same function with lftp:
ftp  <<END_SCRIPT 2>&1 | tee $STDOUTFILE
lftp-open -u $USER,$PASSWD $HOST
site unit=cart retpd="$RETENTION"

Note that I could not find any mention of lftp becoming the default in any of the SLES 12 Release Notes (SLES 12 , SLES 12 SP1, and SLES 12 SP2). This is one of two changes to SLES 12 (that I am aware of) that isn't documented in the Release Notes.