#!/usr/bin/expect

if {$argc==0} {
    send_user "Usage: pipeline_job_prodcountfits *.volumes_list *.ggod1.counts\n"
    exit 1
}

set timeout -1

set volumes     [lindex $argv 0]
set activation  [lindex $argv 1]

send_user "$volumes $activation\n"

spawn prodcount_fits
expect "Input the name of the volume list file:"
exp_send "$volumes\r"
expect "Enter the name of the input activation FITS file:"
exp_send "$activation\n"
expect "prodcount_fits is done..."

exit 0

