Skip to content

walkingmachinegraveyard/ScreenCreator

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ScreenCreator

Simple screen script that create multiple windows and executing given cmd

Description

Create multiple windows in a screen session. It read a file filled with commands that need to be executed in a screen session without human intervention.

If a main command (like screen) or not installed, the script will try to install it using apt-get and sudo, so you need to make sure you have admin access.

Note

screen -S $NAME -p $n -X stuff "$cmd
"

The quotes on the next line need to be there in order to make sure the command is executed.

Usage

Execution

For now, there is only two possibles options.

To create a new session with a specific name

  • ./screenCreator.sh -n NAME

To execute one or multiple commands in a screen session (this will create multiple windows)

  • ./screenCreator.sh -f FILE

They can also be mixed

  • ./screenCreator.sh -n NAME -f FILE

File

In the configuration file, you add line by line all the commands you want to execute.

You can also check the example file to help you

htop
echo 1
echo 2
echo 3

TODO

  • Make yaml file
  • Wait before execute
  • Check if commands don't fail before execute

LICENCE

Apache License

About

Simple screen script that create multiple windows and executing given cmd

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%