Sending Data

The datasend script contains several sh functions which it calls to assemble a compressed tar file of data files.

/usr/sbin/ping $ip_address 300
$scp /tmp/$tar_file.gz 
    ${remote_login}@${ip_address}:$remote_topdir/$tar_file.gz
$ssh -n -l $remote_login $ip_address iss_post_deliver
    $remote_topdir $tar_file.gz $iss_name $project_name

The first step pings the host atd with a five minute timeout to give a ppp link time to connect if necessary. Once the ping succeeds, the next step copies the archive file to atd with the scp command. The final step uses ssh to run the iss_post_deliver script on atd with the archive file and project name as parameters.