How to execute a given command in a new screen?
I wish to rejoin an existing screen (there is only one on my system) kill
window 6:
screen -r -p 6 -X kill
and execute the following command in a new window:
cd /opt/stack/neutron && python /usr/local/bin/neutron-dhcp-agent
--config-file /etc/neutron/neutron.conf
--config-file=/etc/neutron/dhcp_agent.ini
All I know is screen -r -X screen will start a new window (numbered 6) but
how do I execute the above command in that window?
No comments:
Post a Comment