9

I would like to create a bash script to automatically open a screen window with 4 sessions running predetermined commands. I'd like to open htop and slurm on the top two frames, squidview in the middle large frame and a blank terminal on the bottom large frame. Is this possible to set up with a single bash script?

6

This does something like you desire:

$ cat my_screenrc
screen top 
split
focus down
screen vmstat 1
split
focus down
screen
focus bottom
$ screen -c my_screenrc

screen appears to be more directed toward screen flipping than multiple panels and the documentation is pretty arcane.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.