This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

[GUIDE] Ubuntu repository - maintained by djcj
Okay, seems to work, but I'm struggling with linux shell syntax:
I thought that (vsViewer_withenv.sh):
#!/bin/bash
scriptDir=$(dirname -- "$(readlink -f -- "$BASH_SOURCE")")
env="$HOME/bin/vapoursynth/env.sh"

if [ -f "$env" ]
then
  echo "sourcing $env"
  source "$env"
else
  echo "'$env' does not exist!"
fi
vsViewer="$scriptDir/vsViewer"
sh -c "exec $vsViewer $@"
would work and it does as long as there are no parameter to vsViewer.
Problem is when I use, for example
"/home/selur/bin/hybrid/vsViewer_withenv.sh" --preview-only "/home/selur/Schreibtisch/HybridTemp/tempPreviewVapoursynthFile10_53_36_442.vpy" --aspect 1 --matrix Rec709 --crop off#0#0#0#0
I get a 'File open error':
Quote:failed to open the file --preview-only

Seems like the exec call at the end of the vsViewer_withenv.sh script is not totally correct. :/
Any idea how this should look to work properly?

=> think I got it with
exec -l "$vsViewer" "$@"

Cu Selur
----
Dev versions are in the 'experimental'-folder of my GoogleDrive, which is linked on the download page.
Reply


Messages In This Thread
RE: Ubuntu repository - maintained by djcj - by blazin - 15.08.2017, 05:47
RE: Ubuntu repository - maintained by djcj - by alexander.haschka - 07.02.2018, 17:45
RE: Ubuntu repository - maintained by djcj - by alexander.haschka - 15.02.2018, 18:32
RE: Ubuntu repository - maintained by djcj - by alexander.haschka - 17.02.2018, 13:52
RE: Ubuntu repository - maintained by djcj - by alexander.haschka - 02.03.2018, 23:27
RE: Ubuntu repository - maintained by djcj - by AlvoErrado2 - 10.05.2019, 23:32
RE: Ubuntu repository - maintained by djcj - by Selur - 14.07.2019, 11:09
RE: Ubuntu repository - maintained by djcj - by 2160p - 30.08.2019, 03:37

Forum Jump:


Users browsing this thread: 18 Guest(s)