LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-11-2022, 06:47 PM   #1
taylorkh
Senior Member
 
Registered: Jul 2006
Location: North Carolina
Distribution: CentOS 6, CentOS 7 (with Mate), Ubuntu 16.04 Mate
Posts: 2,127

Rep: Reputation: 174Reputation: 174
bash scripts no longer running in terminal


When I start a bash script by clicking on it in Caja (MATE desktop) on CentOS 7 the script will no longer launch a terminal window so I can see what is happening. I did not intentionally make any preference changes nor do I know where to start looking for any preference which waould cause this. It is very disconcerting. I launch one of my nightly backup scripts and I do not see anything happening.

Any suggestions?

TIA,

Ken

p.s. The scripts do seem to be running.
 
Old 08-11-2022, 09:19 PM   #2
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,842

Rep: Reputation: Disabled
Hi I do not use caju but I think your file associations have got "lost" for the script.

File associations work normally with extensions....so .sh would be one type

if interested in file manager if RH mouse user click mouse button to bring up context menu against your script and then "associate" it to open a terminal etc

https://www.pclinuxos.com/forum/inde...topic=149973.0
 
Old 08-12-2022, 07:13 AM   #3
taylorkh
Senior Member
 
Registered: Jul 2006
Location: North Carolina
Distribution: CentOS 6, CentOS 7 (with Mate), Ubuntu 16.04 Mate
Posts: 2,127

Original Poster
Rep: Reputation: 174Reputation: 174
Thanks aus9,

I do not think there is an association in he normal sense. These are files marked executable and starting with a shebang #!/bin/bash. They can be opened to edit as an option but their normal behavior is to be run by bash.

Ken
 
Old 08-12-2022, 03:15 PM   #4
MadeInGermany
Senior Member
 
Registered: Dec 2011
Location: Simplicity
Posts: 2,793

Rep: Reputation: 1201Reputation: 1201Reputation: 1201Reputation: 1201Reputation: 1201Reputation: 1201Reputation: 1201Reputation: 1201Reputation: 1201
aus9 is correct, Gnome and Mate use a table with actions, usually based on filename extension.
Try the option (right) mouse button on the executable file in caja.

The OS/kernel runs executables directly, without starting a GUI terminal.
 
Old 08-16-2022, 11:34 AM   #5
raja.genupula
LQ Newbie
 
Registered: Jul 2012
Posts: 4

Rep: Reputation: Disabled
I am not sure on caja. but, did you try to launch the same script that you want to trigger from caja and how that works ?
 
Old 08-16-2022, 12:59 PM   #6
teckk
LQ Guru
 
Registered: Oct 2004
Distribution: Arch
Posts: 5,137
Blog Entries: 6

Rep: Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826
Shell scripts are made to run in the shell. They often times spit out messages. You may want to launch them with something like:
Code:
xterm -T "My Script" -e "/path/to/script/script.sh"
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Mint 19.1: Bash scripts no longer work from desktop launcher cdgoldin Linux Mint 28 12-15-2019 04:37 PM
Linux Mint 19.1 no longer opens a terminal window using a [Desktop Entry] with Terminal=true aversatech Linux - Distributions 4 01-27-2019 04:24 AM
Terminal for running VB scripts (a secureCRT like terminal) eviatarkhen Linux - Software 4 04-06-2011 09:54 AM
Bash scripts are no longer portable? J_Szucs Linux - Software 1 12-09-2004 11:29 AM
Need help running scripts from scripts sdouble Linux - Newbie 3 05-31-2004 12:56 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:15 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration