#!/bin/bash echo "" > mc.in echo "" > mc.out tail -f mc.in | nohup $1 > mc.out &