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

Popular posts from this blog

django - How can I change user group without delete record -

java - Need to add SOAP security token -

java - EclipseLink JPA Object is not a known entity type -