Automation of keyboard inputs..like Ctrl+d and Ctrl+a

Hi..!
I'm stuck with my automation of starting a process and keeping it running even after the current ssh session has exited..

So i'm trying to use command 'screen'. which is doing exactly what i wanted, But the problem is automation of the same.

i will have to press Ctrl+a and Ctrl+d for exiting from the 'screen' window. and i dont know how to automate it.

Pls help on this.

Instead of "screen" you should consider using the command "nohup". Have a look in the man page and search this forum for many examples on how to use it. If you still have questions, report back with a detailed explanation of what you want to achieve.

I hope this helps.

bakunin

1 Like

Hi Bakuni,

Thanks for the help..! It worked..:)!

Regards,
Chandana