Article 6FXHM Convert bash to use Xfce4-terminal

Convert bash to use Xfce4-terminal

by
jeffshead
from LinuxQuestions.org on (#6FXHM)
I have the following bash script that opens two gnome-terminal windows. In essence, what I'm doing is daisy-chaining two proxies which forwards a few ports from proxy 2 so they can be used as local ports.

Code:#!/bin/bash
gnome-terminal --tab -t 'Proxy 1 to proxy 2' -- bash -c "sshpass -p 'mypassword' ssh -g -o StrictHostKeyChecking=no -C -l root 1.1.1.1 -N -L 50000:2.2.2.2; exec bash"
sleep 2
gnome-terminal --tab -t 'Proxy 2' -- bash -c "sshpass -p 'mypassword2' ssh -g -o StrictHostKeyChecking=no -C -l username 127.0.0.1 -N -p 50000 -L 1079:127.0.0.1:2777 -L 1080:127.0.0.1:2112 -L 1089:127.0.0.1:2113 -L 10000:127.0.0.1:2020 -L 10001:127.0.0.1:1081; exec bash"The problem that I have encountered is that I need to use this same bash file on a Linux PC with Xfce. It does not have gnome-terminal. My attempts to convert the code to use the Xfce4-terminal have all failed. I'm not sure what I'm doing wrong.

Can someone please provide the correct code for Xfce4-terminal?
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments