Script: Make sftp look like ftp. The purpose of this script is to make the sftp command look exactly the same as ftp at startup. Is to enter the user, remote address and other content. 01 #! /Bin/sh02 03 # mysftp. sh -- make sftp start up more like ftp04 05 echo-n "User account:" 06 read account07 08if [-z "$ account"]; then09 exit 0; 10fi11 12if [-z "$1"]; then13 echo-n "Remote host:" 14 read host15 if [-z "$ host"]; then16 exit 017 fi18else19 host = $120fi21 22 exec/usr/bin/sftp-C $ account @ $ host running result: 01 $ mysftp02User account: taylor03Remote host: intuitive. com04Connecting to intuitive . Com...05taylor@intuitive.com's password: 06 07 sftp> quit08 09 10 $ mysftp intuitive. in the script com11User account: taylor12Connecting to intuitive.com...13taylor@intuitive.com's password: 14 15 sftp> quit, the only trick to note is the exec command on the last line. It replaces the currently running shell with the specified application. Because you know that the sftp command can end after it is called, the effect of this method is better than suspending the shell and waiting until the sftp command is executed.