Automation Using Bash and Expect


Overview/Description
Target Audience
Prerequisites
Expected Duration
Lesson Objectives
Course Number
Expertise Level



Overview/Description
In this course, you'll learn how to use expect, rsync, and ssh/scp to create scripts to automate processes, including making local and remote backups and doing file transfers. You'll also learn about the ksh and csh shell environments.

Target Audience
System administrators, DevOPS, software developers, and users who may need to create scripts to automate processes in a Linux or Linux-like environment

Prerequisites
None

Expected Duration (hours)
1.1

Lesson Objectives

Automation Using Bash and Expect

  • start the course
  • create a script that can automate inputs to another command or script using expect
  • use the expect interact command to prompt the user for input in an automated script
  • work with autoexpect to create scripts and control advanced features of expect
  • automate an FTP session to transfer files
  • automate file transfers over SCP in an expect script
  • back up files or directories using rsync on a local system via an expect script
  • use rsync and ssh to transfer or back up files and directories between remote systems via an expect script
  • work with the Korn shell and identify some of its differences from Bash
  • use the C shell and identify the differences between the two shell environments
  • create scripts to automate processes and create backups on local and remote systems
  • Course Number:
    os_doss_a04_it_enus

    Expertise Level
    Intermediate