I just about have everything working with SFTP. I tested SFTP using a batch file to pass it the commands and it works great. The problem I have though is it prompts me to put a password before it starts reading the file and processing the commands.
Here is the syntax I use from the command line:
sftp -b /path/genPluginBatch webuser@webhost
I tried putting the password as the first line in the batch file, genPluginBatch, but it sees this as a bad command. Any idea how I would pass the password from within a script?
Just so you know I also tried the following from within the script:
sftp wsadmin@uscscdev7 webuser@webhost <<EOF
Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.
When you do backups in the Solaris Operating System, the file system must be inactive. Otherwise, the output may be inconsistent. A file system is inactive when it's unmounted or it's write-locked by the operating system. Although the fssnap utility…
Regular patching is part of a system administrator's tasks. However, many patches require that the system be in single-user mode before they can be installed. A cluster patch in particular can take quite a while to apply if the machine…
Learn how to find files with the shell using the find and locate commands.
Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Learn how to navigate the file tree with the shell.
Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…