Application can be called via terminal but not via script

Gloster

Active Member
Joined
Feb 7, 2024
Messages
149
Reaction score
25
Credits
1,365
UM 24.04.01
Add the path in .bashrc :

export PATH="$HOME/Videos/vivictpp/vivictpp-1.1.1-pre1/builddir:$PATH"

The application can be called via command line :

Code:
vivictpp

but not via script :

Code:
#!/bin/bash

vivictpp

read pause

Get the error : /home/richard/Videos/vivictpp/Testvivictpp.sh: line 4: vivictpp: command not found

(It was a former snap, snap removed).

Any idea whats wrong ?
 


UM 24.04.01
Add the path in .bashrc :

export PATH="$HOME/Videos/vivictpp/vivictpp-1.1.1-pre1/builddir:$PATH"

The application can be called via command line :

Code:
vivictpp

but not via script :

Code:
#!/bin/bash

vivictpp

read pause

Get the error : /home/richard/Videos/vivictpp/Testvivictpp.sh: line 4: vivictpp: command not found

(It was a former snap, snap removed).

Any idea whats wrong ?
You may have to put the full path to the app in the script.
 
You may have to put the full path
Yes I did but another script with :

Bash:
#!/bin/sh

yt-dlp -o "%(title)s.%(ext)s" --no-playlist -N 8 "https://tele5.de/mediathek/star-trek-raumschiff-voyager/prototyp"

read pause

does work, also with a given path in .bashrc :

export PATH="$HOME/.local/bin:$PATH"
 


Members online


Top