Score:0

NordVPN Status shortcut

in flag

How can I create an icon on desktop in Ubuntu 20.04, which open Terminal and write out NordVPN status in Terminal. Command is "nordvpn status". I have .sh file, but when open Terminal, immediately close and I cann't read the result.

#!/bin/bash
gnome-terminal -e nordvpn status
Score:2
gd flag

the simplest method would be to wait for a keypress at the end of your script. For example:

#!/bin/bash
# gnome-terminal -e nordvpn status
nordvpn status
read -n1 -p "Press any key..."
ar flag
This won't work. the `gnome-terminal -e nordvpn status` opens a new terminal which closes immidiately after the command `nordvpn status`, while the parent terminal stays open and waits to read `x`. One solution is to get rid of the `gnome-terminal -e` part. So that all the commands are executed in the same terminal.
gd flag
user68186 is right: I am editing the answer.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.