example shell script to ftp a file. 16 Jul 2012. sftp is an interactive file transfer program, similar to ftp, which performs all. In this example, upload a file called Screenshot.png, enter sftp . Featured Articles 30 Cool Open Source Software I Discovered in 2013 30 Handy Bash Shell Aliases For Linux / Unix / Mac OS X Top 30 Nmap Command Examples For … 6 Oct 2005. One script lets you copy a file to multiple Linux boxes on your network, and the other allows you to. You could use FTP, but using scp has many advantages. Here s an example demonstrating the most basic syntax for scp. This script first defines a variables such as hostname of the ftp server, username and password and then it creates ftp session and uploads file into your selected directory . Self-Service Linux® Mastering the Art of Problem Determination. While sftp is typically used interactively in the same way the ftp application would be used, it can also read commands from a file in batch mode. Here s an . Built-in features like shell scripting, awk, sendmail, smb, and crontab allow for customization of StarDot s. Use FTP to get the files back into the StarDot server. 2 Aug 2014. COM with the correct values for your ftp server. What this batch file is doing is scripting the ftp utility using the -s option for the command line . Unix shell script code using ftp client. Sometimes I want to FTP a file from one machine to another. Usually, I can do the. Example (non-working) script.