WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: What is wrong here ?  (Read 3588 times)

Offline labeas

  • Sr. Member
  • ****
  • Posts: 266
What is wrong here ?
« on: April 11, 2017, 09:39:27 AM »
root@box:/home/tc# which es
/usr/local/sbin/es
root@box:/home/tc# ls -l `which es`
-rwxr-xr-x    1 root     root          8525 Apr 11 12:47 /usr/local/sbin/es
root@box:/home/tc# es
/bin/sh: es: not found
root@box:/home/tc# $PATH
/bin/sh: /home/tc/.local/bin:/usr/local/sbin:/usr/local/bin:/apps/bin:/usr/sbin:/usr/bin:/sbin:/bin: not found

==TIA

Offline andyj

  • Hero Member
  • *****
  • Posts: 1036
Re: What is wrong here ?
« Reply #1 on: April 11, 2017, 10:02:38 AM »
I don't know what 'es' is, but most likely it's looking for the wrong loader. Try: ldd $(which es)

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14847
Re: What is wrong here ?
« Reply #2 on: April 11, 2017, 10:25:14 AM »
..or it's a bash, perl or python script

Offline coreplayer2

  • Hero Member
  • *****
  • Posts: 3020
Re: What is wrong here ?
« Reply #3 on: April 11, 2017, 01:44:42 PM »
Might be better to explain what exactly "es" is?

Offline labeas

  • Sr. Member
  • ****
  • Posts: 266
Re: What is wrong here ?
« Reply #4 on: April 12, 2017, 06:08:21 AM »
>  Try: ldd $(which es)
I didn't know that syntax. I use:  ldd `which gpm`
        linux-vdso.so.1 (0x00007ffd3d192000)
        libm.so.6 => /lib/libm.so.6 (0x00007efdffb12000)
        libc.so.6 => /lib/libc.so.6 (0x00007efdff7a5000)
        /lib/ld-linux-x86-64.so.2 (0x0000558bc584f000)
es is an old bash-script, from normal linux: where <that> error mesg would have meant
no executable named "es" is in the $PATH; AFAIK?

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14847
Re: What is wrong here ?
« Reply #5 on: April 12, 2017, 06:18:37 AM »
If es is a bash script, then either the bash extension was not loaded or the shebang (location of bash in the first line of the script) is incorrect since /usr/local/sbin is in the default tinycore path.

Offline andyj

  • Hero Member
  • *****
  • Posts: 1036
Re: What is wrong here ?
« Reply #6 on: April 12, 2017, 06:41:18 AM »
Back quotes are the old style. $(...) is the current way, and has the advantage of being nestable. The error message doesn't mean that "es" can't be found, it means as Juanito said that either the bash extension isn't loaded (bash isn't part of the TC base) or you copied the script from a system that has bash installed in a different location.