Hello I'm trying to merge a group of commands in a single line using semicolon ;
pkill screen ; screen ; cd directory ; sudo xx
So basically what I'm trying to do is to kill all open screens then open a new screen and go to a directory and execute a command.
Whenever I try to execute the above-mentioned command it stops at the welcome screen of screen that says press space to continue and the sequence isn't executed..
Is there a way around this?