linux - How to put process in background in Chef similar to Ctrl + Z from terminal -


i have command start particular service in prompts password, after entering password put in background using ctrl + z,

now how can automate set of 50 commands using chef recipe or other script.

i can manage enter password using expect utility how put in background using script ?

you can put process in background putting & @ end of command. so:

bash '/bin/something -f myflag &' 

Comments

Popular posts from this blog

mysql - FireDac error 314 - but DLLs are in program directory -

git - How to list all releases of public repository with GitHub API V3 -

c++ - Getting C2512 "no default constructor" for `ClassA` error on the first parentheses of constructor for `ClassB`? -