Commands after root login not working

Asked by sayantan on 2016-05-18

i wrote a script :

#! /bin/bash

terminator -x sh -c "expect -c 'spawn su - ;expect Password:;send "your-password\n";interact' "

-->this will open up a terminator terminal with root login , what changes do i need to make in script so that other commands can execute in the terminator's terminal which has open up

Question information

Language:
English Edit question
Status:
Answered
For:
Terminator Edit question
Assignee:
No assignee Edit question
Last query:
2016-05-18
Last reply:
2016-05-24

Can you help with this problem?

Provide an answer of your own, or ask sayantan for more information if necessary.

To post a message you must log in.