case $#
in
2)	BATCH=yes; export BATCH
	(echo "invisible(options(echo=TRUE))"; cat $1)| nohup S >$2 2>&1 &
	;;
*)	echo "Usage:
S BATCH inputfile outputfile"
	;;
esac
