2 deleted 18 characters in body
source | link

Well, I made that in a script I did. You need to launch a terminal window before executing the command.

xterm -e sh -c path/yo/your/script &;

In the script I wrote, I use something like this:

terminal="xterm"

run () {
    cmd="$terminal -e sh -c $1"
    [ -n "$1" ] && (eval "$cmd") > /dev/null 2>&1 &
}

run $VISUAL example/file/name

That will launch a terminal that will execute your program on it. It will also prevent the first terminal to get filled with stderr/stdout messages from the new window.

Just replace the terminal variable to the one you use/like.

Hope that helps.

Well, I made that in a script I did. You need to launch a terminal window before executing the command.

xterm -e sh -c path/yo/your/script &;

In the script I wrote, I use something like this:

terminal="xterm"

run () {
    cmd="$terminal -e sh -c $1"
    [ -n "$1" ] && (eval "$cmd") > /dev/null 2>&1 &
}

run $VISUAL example/file/name

That will launch a terminal that will execute your program on it. It will also prevent the first terminal to get filled with stderr/stdout messages from the new window.

Just replace the terminal variable to the one you use/like.

Hope that helps.

Well, I made that in a script I did. You need to launch a terminal window before executing the command.

xterm -e sh -c path/yo/your/script &;

In the script I wrote, I use something like this:

terminal="xterm"

run () {
    cmd="$terminal -e sh -c $1"
    [ -n "$1" ] && (eval "$cmd") > /dev/null 2>&1 &
}

run $VISUAL example/file/name

That will launch a terminal that will execute your program on it. It will also prevent the first terminal to get filled with stderr/stdout messages from the new window.

Just replace the terminal variable to the one you use/like.

1
source | link

Well, I made that in a script I did. You need to launch a terminal window before executing the command.

xterm -e sh -c path/yo/your/script &;

In the script I wrote, I use something like this:

terminal="xterm"

run () {
    cmd="$terminal -e sh -c $1"
    [ -n "$1" ] && (eval "$cmd") > /dev/null 2>&1 &
}

run $VISUAL example/file/name

That will launch a terminal that will execute your program on it. It will also prevent the first terminal to get filled with stderr/stdout messages from the new window.

Just replace the terminal variable to the one you use/like.

Hope that helps.