Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

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?

share|improve this question
add comment

1 Answer 1

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.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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