I am looking for a Shell Script which I can execute which will Execute a Program that needs to run for infinite amount of time until I choose to kill it.
I am already tried nohup, screen, disown (in netcat /bin/sh Shell) but they all failed to do the job.
The Program which needs to run also needs arguments.
EDIT: Comments asked me to mention the Problems with the methods I tried.
nohup: Closing the NetCat window also closes the Process
bg: At the start NetCat reports : "No Job Control in this session"
disown: Same result as nohup
screen: "Must be connected to a Terminal"