There was an error creating child process for this terminal
Failed to execute child process: " ... path to .sh file": Failed to execve: No such file or directory
normt@norm-HP-EliteDesk-800-G2-DM-35W:~/Work/AndroidDevelopment/Testing$ bash Install_CdTimer.sh
* daemon not running; starting now at tcp:5037
* daemon started successfully
error: no devices/emulators found
Performing Push Install
adb: error: failed to get feature set: no devices/emulators found
Press Enter
normt@norm-HP-EliteDesk-800-G2-DM-35W:~/Work/AndroidDevelopment/Testing$
#! /bin/sh
# set -xtrace
# @rem Install some APKs
# /home/normt/Work/AndroidDevelopment/adt-bundle-linux-x86_64-20140702/sdk/platform-tools/adb devices
/home/normt/Work/AndroidDevelopment/adt-bundle-linux-x86_64-20140702/sdk/platform-tools/adb install ./Apks/CountdownTimer.apk
read -p "Press Enter"
Education won't help those who are proudly and willfully ignorant. They'll literally rather die before changing.
Norm Radder wrote:Is that set in the Permissions page - Allow to execute?
what is the default Terminal set to?
Norm Radder wrote:Do you have any script files that run in bash and that can be executed by clicking on them in a file explorer like nautilus?
Norm Radder wrote:Why would I want to change the terminal?
Norm Radder wrote:Should I expect bash scripts to work on my system? Or are they normally turned off somehow and I need to fiddle some settings to get them to work?
normt@norm-HP-EliteDesk-800-G2-DM-35W:~$ sudo update-alternatives --config x-terminal-emulator
[sudo] password for normt:
There is only one alternative in link group x-terminal-emulator (providing /usr/bin/x-terminal-emulator): /usr/bin/gnome-terminal.wrapper
Nothing to configure.
normt@norm-HP-EliteDesk-800-G2-DM-35W:~$
normt@norm-HP-EliteDesk-800-G2-DM-35W:~/Work/AndroidDevelopment/Testing$ ./KillStart_Server.sh
bash: ./KillStart_Server.sh: /usr/bin/bash^M: bad interpreter: No such file or directory
normt@norm-HP-EliteDesk-800-G2-DM-35W:~/Work/AndroidDevelopment/Testing$ ./KillStart_Server.sh
bash: ./KillStart_Server.sh: /usr/bin/bash^M: bad interpreter: No such file or directory
normt@norm-HP-EliteDesk-800-G2-DM-35W:~/Work/AndroidDevelopment/Testing$ bash KillStart_Server.sh
: invalid option.sh: line 5: set: -
set: usage: set [-abefhkmnptuvxBCHP] [-o option-name] [--] [arg ...]
adb: unknown command devices
adb: unknown command kill-server
adb: unknown command start-server
Press ENter
>>>>>>>>>>>>>>>>>>> When lines copied from script file and run manually in Terminal
normt@norm-HP-EliteDesk-800-G2-DM-35W:~/Work/AndroidDevelopment/Testing$ /home/normt/Work/AndroidDevelopment/adt-bundle-linux-x86_64-20140702/sdk/platform-tools/adb devices
* daemon not running; starting now at tcp:5037
* daemon started successfully
List of devices attached
normt@norm-HP-EliteDesk-800-G2-DM-35W:~/Work/AndroidDevelopment/Testing$ /home/normt/Work/AndroidDevelopment/adt-bundle-linux-x86_64-20140702/sdk/platform-tools/adb kill-server
normt@norm-HP-EliteDesk-800-G2-DM-35W:~/Work/AndroidDevelopment/Testing$ /home/normt/Work/AndroidDevelopment/adt-bundle-linux-x86_64-20140702/sdk/platform-tools/adb start-server
* daemon not running; starting now at tcp:5037
* daemon started successfully
normt@norm-HP-EliteDesk-800-G2-DM-35W:~/Work/AndroidDevelopment/Testing$
Norm Radder wrote:I can not run the script in a terminal either.
normt@norm-HP-EliteDesk-800-G2-DM-35W:~/Work/AndroidDevelopment/Testing$ ./KillStart_Server.sh
bash: ./KillStart_Server.sh: /usr/bin/bash^M: bad interpreter: No such file or directory
normt@norm-HP-EliteDesk-800-G2-DM-35W:~/Work/AndroidDevelopment/Testing$ ./KillStart_Server.sh
bash: ./KillStart_Server.sh: /usr/bin/bash^M: bad interpreter: No such file or directory
normt@norm-HP-EliteDesk-800-G2-DM-35W:~/Work/AndroidDevelopment/Testing$ bash KillStart_Server.sh
: invalid option.sh: line 5: set: -
set: usage: set [-abefhkmnptuvxBCHP] [-o option-name] [--] [arg ...]
adb: unknown command devices
adb: unknown command kill-server
adb: unknown command start-server
Press ENter
>>>>>>>>>>>>>>>>>>> When lines copied from script file and run manually in Terminal
normt@norm-HP-EliteDesk-800-G2-DM-35W:~/Work/AndroidDevelopment/Testing$ /home/normt/Work/AndroidDevelopment/adt-bundle-linux-x86_64-20140702/sdk/platform-tools/adb devices
* daemon not running; starting now at tcp:5037
* daemon started successfully
List of devices attached
normt@norm-HP-EliteDesk-800-G2-DM-35W:~/Work/AndroidDevelopment/Testing$ /home/normt/Work/AndroidDevelopment/adt-bundle-linux-x86_64-20140702/sdk/platform-tools/adb kill-server
normt@norm-HP-EliteDesk-800-G2-DM-35W:~/Work/AndroidDevelopment/Testing$ /home/normt/Work/AndroidDevelopment/adt-bundle-linux-x86_64-20140702/sdk/platform-tools/adb start-server
* daemon not running; starting now at tcp:5037
* daemon started successfully
normt@norm-HP-EliteDesk-800-G2-DM-35W:~/Work/AndroidDevelopment/Testing$
The script file:
normt@norm-HP-EliteDesk-800-G2-DM-35W:~/Work/AndroidDevelopment/Testing$ bash KillStart_Server.sh
: invalid option.sh: line 5: set: -
set: usage: set [-abefhkmnptuvxBCHP] [-o option-name] [--] [arg ...]
adb: unknown command devices
adb: unknown command kill-server
adb: unknown command start-server
Press ENter
normt@norm-HP-EliteDesk-800-G2-DM-35W:~/Work/AndroidDevelopment/Testing$ gsettings set org.cinnamon.desktop.default-applications.terminal exec gnome-terminal
normt@norm-HP-EliteDesk-800-G2-DM-35W:~/Work/AndroidDevelopment/Testing$ bash KillStart_Server.sh
: invalid option.sh: line 5: set: -
set: usage: set [-abefhkmnptuvxBCHP] [-o option-name] [--] [arg ...]
adb: unknown command devices
adb: unknown command kill-server
adb: unknown command start-server
Press ENter
normt@norm-HP-EliteDesk-800-G2-DM-35W:~/Work/AndroidDevelopment/Testing$ sudo update-alternatives --config x-terminal-emulator
[sudo] password for normt:
There is only one alternative in link group x-terminal-emulator (providing /usr/bin/x-terminal-emulator): /usr/bin/gnome-terminal.wrapper
Nothing to configure.
normt@norm-HP-EliteDesk-800-G2-DM-35W:~/Work/AndroidDevelopment/Testing$ which bash
/usr/bin/bash
normt@norm-HP-EliteDesk-800-G2-DM-35W:~/Work/AndroidDevelopment/Testing$
J Bosch wrote:In this post it sounds like one of the settings Nemo looks for missing when not using the Cinnamon desktop environment.
https://unix.stackexchange.com/questions/336368/how-to-configure-nemos-right-click-open-in-terminal-to-launch-gnome-terminal
There was an error creating the child process for this terminal
Failed to execute child process “/home/normt/Work/AndroidDevelopment/Testing/KillStart_Server.sh”: Failed to execve: No such file or directory
normt@norm-HP-EliteDesk-800-G2-DM-35W:~/Work/AndroidDevelopment/Testing$ bash KillStart_Server.sh
: invalid option.sh: line 5: set: -
set: usage: set [-abefhkmnptuvxBCHP] [-o option-name] [--] [arg ...]
adb: unknown command devices
adb: unknown command kill-server
adb: unknown command start-server
Press ENter
normt@norm-HP-EliteDesk-800-G2-DM-35W:~/Work/AndroidDevelopment/Testing$
When right clicked in nemo and Run in Terminal selected:
There was an error creating the child process for this terminal
Failed to execute child process “/home/normt/Work/AndroidDevelopment/Testing/KillStart_Server.sh”: Failed to execve: No such file or directory
And thanks for trying to help. My expectations were obviously too high. On windows I write batch files all the time.
I was hoping it would be as easy on Ubuntu. Obviously it isn't.
Ron McLeod wrote:Norm - ignoring the graphical UI, does your script run when run from the command line?
normt@norm-HP-EliteDesk-800-G2-DM-35W:~/Work/AndroidDevelopment/Testing$ ./KillStart_Server.sh
bash: ./KillStart_Server.sh: /usr/bin/bash^M: bad interpreter: No such file or directory
bash: ./KillStart_Server.sh: /usr/bin/bash^M: bad interpreter: No such file or directory
normt@norm-HP-EliteDesk-800-G2-DM-35W:~/Work/AndroidDevelopment/Testing$ ./KillStart_Server.sh
bash: ./KillStart_Server.sh: /bin/sh^M: bad interpreter: No such file or directory
normt@norm-HP-EliteDesk-800-G2-DM-35W:~/Work/AndroidDevelopment/Testing$ bash KillStart_Server.sh
: invalid option.sh: line 5: set: -
set: usage: set [-abefhkmnptuvxBCHP] [-o option-name] [--] [arg ...]
adb: unknown command devices
adb: unknown command kill-server
adb: unknown command start-server
Press ENter
normt@norm-HP-EliteDesk-800-G2-DM-35W:~/Work/AndroidDevelopment/Testing$
There was an error creating the child process for this terminal
Failed to execute child process “/home/normt/Work/AndroidDevelopment/Testing/KillStart_Server.sh”: Failed to execve: No such file or directory
+ /home/normt/Work/AndroidDevelopment/adt-bundle-linux-x86_64-20140702/sdk/platform-tools/adb devices
List of devices attached
emulator-5554 offline
+ /home/normt/Work/AndroidDevelopment/adt-bundle-linux-x86_64-20140702/sdk/platform-tools/adb kill-server
+ /home/normt/Work/AndroidDevelopment/adt-bundle-linux-x86_64-20140702/sdk/platform-tools/adb start-server
* daemon not running; starting now at tcp:5037
* daemon started successfully
+ read -p 'Press Enter'
Press Enter
Normally trees don't drive trucks. Does this tiny ad have a license?
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
|