gnome-command-menu icon indicating copy to clipboard operation
gnome-command-menu copied to clipboard

A command to kill ssh tunnel is not working.

Open omidamraei opened this issue 2 years ago • 3 comments

I have no idea why this not working.

[
    {
        "title": "Disconnect",
        "command": "ps -lef | grep ssh | grep 1337 | awk '{print $4}' | xargs kill",
        "icon": "network-error"
    }
]
`

Running the command in the terminal just works.

omidamraei avatar Jan 11 '23 17:01 omidamraei

i have the same problem: terminal works, tool - not. mine is echo password | sudo -S ryzenadj --fast-limit=35000 --slow-limit=32000 --stapm-limit=28000

errogaht avatar Jan 23 '23 12:01 errogaht

Could you try running through gnome-terminal - for e.g. -

{
    "title": "Pipe",
    "icon": "utilities-terminal",
    "command": "gnome-terminal -- bash -c 'ls | grep Downloads; read'"
}

arunk140 avatar Feb 02 '23 01:02 arunk140

@arunk140 Seems an error occurs while parsing json. No command after reloading.

{
        "title": "Disconnect",
        "command": "gnome-terminal -- bash -c 'ps -lef | grep ssh | grep 1337 | awk \'{print $4}\' | xargs kill'",
        "icon": "network-error"
}

omidamraei avatar Feb 02 '23 08:02 omidamraei