Run crontab with user input
If the input is read by the script from stdin
, just redirect input from a file (using a wrapper script).
#! /bin/shtest.sh < data.in
If this does not work for you (i.e. you have your script calling some interactive shell program like telnet, you can use Expect
to automate the interaction.