linux - How can i get input stream to a program running with nohup and & in shell -
i running program nohup add.sh &
this scripts take inputs @ runtime console. how can hold of input stream process can pass 2 numbers?
thanks
that depends of how script works, can send input command via pipe:
nohup echo "this input" | add.sh &
however don't know if can more 1 argument. may need enhance add.sh script in order accept , use parameters if provided.
Comments
Post a Comment