Originally Posted by
floorripper
clogin is my automatic login script, which comes from a Rancid package,it runs on echo,expect. But that's run fine. It also takes the variable. TCP session is established but I do not see it in the new terminal.
That's the main point. I need it to open a new window automatically and to log me in this window.
Not 100% sure, but I hope this should work -
Code:
#!/bin/bash
exec gnome-terminal -x clogin "$1"
This will execute the "clogin" script in a new terminal (gnome-terminal), accepting whatever argument you supply ($1).
If the "clogin" script further executes something that is needed to be done in a new terminal, something similar as above can be done with that too.
Bookmarks