#!/usr/local/bin/expect -f # set timeout -1 spawn sattrack match_max 100000 expect -re "Ground station.*> : " send "\r" expect -re "Satellite name.*> : " send "$argv\r" expect -re "Two-line elements.*> : " send "\r" expect -re "rediction.* ? " send "p\r" expect -re "rediction format.*> ? " send "\r" expect -re "ile.*> ? " send "f\r" expect -re "Start time.*> ? " send "\r" expect -re "Duration.*> : " send "\r" expect -re "Hardcopy.*> ? " send "q\r" expect eof .