Score:0

How come a bash script won't run without using xterm?

ph flag

Strange. I have a few scripts I use mostly after fresh install of Ubuntu. They used to work, now they don't. They are on an extra hdd, I thought may be permission issues, no. I installed VPN and xterm, scripts for VPN use xterm, they work. I tried adding xterm to scripts no longer working, now they work. So, it's working that way but I don't know what happened. I do have a fresh install. I wonder if just a bad install of Ubuntu. I have never had a problem.

@steeldriver

Double clicking in file manager has allways worked before.

This does not work.

#!/bin/bash

sudo apt update

sudo apt install -y xscreensaver xscreensaver-gl-extra xscreensaver-data-extra

This works.

#!/bin/bash

xterm -e sudo apt update

sudo apt install -y xscreensaver xscreensaver-gl-extra xscreensaver-data-extra
waltinator avatar
it flag
Is your "extra HDD" `mount`ed with the `noexec` option? `mount` will show you. Read `man mount`. What, precisely, do you mean by "now they don't"? How are you invoking the scripts?
treyiii avatar
ph flag
@waltinator I have exec permision. what I mean is by they don't work is I try to run them and nothing happens.
hr flag
Perhaps this will be helpful: [Launch script with double click don't work](https://askubuntu.com/a/1379730/178692)
treyiii avatar
ph flag
@steeldriver I guess I can accept option removed. I found a trick using xtern.
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.