13

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?

1

1 Answer 1

13

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.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .