Monday, 30 September 2013

A screens-Question

A screens-Question

I'm trying to have a quick overview over my servers stats, so I'm writing
a little sh script, but I don't really get it right.
#!/sh/bash
screen -AmdS mgmt
screen -S mgmt -X screen -t HTop htop
screen -S mgmt -X screen -t ifTop iftop
screen -S mgmt -X screen -t Sensors watch sensors -c /home/ken/sensors.conf
screen -r mgmt
this nearly works, my problem is, that this results in 4 "tabs", but I
don't want the 4th tab (which is page 0; "bash")
I tried this and several other commands, without success
#screen -S mgmt -p 0 -X htop -t HTop
Thanks in advance!

No comments:

Post a Comment