Wanted to create a screen session with some screen commands without specifying .screenrc or some other config file using -c option.
I see -X an option but seems it only works with screen which is already created.
I could create a screen in detach mode and run the commands with -X and attach again but looking for a way where this all can be done in single command.
For example, here with this command I start a new session or attach an existing one, looking for a way to specify commands . ( hardstatus alwaysfirstline .... and one more ) .
screen -x -R -S Random -h 5000