sh: 1: Curl: not found

Running FileBot from the console, Groovy scripting, shell scripts, etc
Post Reply
Paulamonopoly
Posts: 8
Joined: 18 Sep 2022, 22:08

sh: 1: Curl: not found

Post by Paulamonopoly »

Hello everyone, I've been running an amc script on my ubuntu machine for a few months now with zero hitches, however recently I've been trying to get it to do a curl command after every import of a movie using the following:

Code: Select all

filebot -script fn:amc --output "/home" --action move -non-strict "/home/test" --def movieDB=TheMovieDB seriesDB=TheMovieDB::TV movieFormat="/home/purgatory/Movies/{id}/{id}" seriesFormat="/home/purgatory/Shows/{id}/{s}/{e}"  deleteAfterExtract=y clean=y --def exec="curl https://example.com/API?_ACTION=insert&type=movie&id={id}"
However this returns the error:

Code: Select all

sh: 1: curl: not found
I ensured I have the ubuntu package installed and not the snap package as snap is a pain in my backside 99% of the time anyway using the following:

Code: Select all

apt install curl -y
I have also tried prefixing the curl command with the path:

Code: Select all

/usr/bin/curl ...
However this also returns:

Code: Select all

sh: 1: /usr/bin/curl: not found
As a last ditched effort I have tried the snap package and it returns the following:

Code: Select all

sh: 1: /snap/bin/curl: Permission denied
I believe this to be where I have my disk mounted etc, however it's too late now to rectify this issue as there's around 22tb of movies and shows. Any solution you can throw at me I'll happily give ago!
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: sh: 1: Curl: not found

Post by rednoah »

1.
Is curl installed? What does curl --help and which curl say?


2.
How did you install FileBot? If you're using a sandboxed (e.g. snap) or containerized (e.g. docker) application, then you can't use curl or any other tools that aren't pre-baked into the application image.
:idea: Please read the FAQ and How to Request Help.
Paulamonopoly
Posts: 8
Joined: 18 Sep 2022, 22:08

Re: sh: 1: Curl: not found

Post by Paulamonopoly »

1) cURL is definately installed the return of curl --help returns available functions and the return of which curl is:

Code: Select all

/usr/bin/curl
2) I do believe this is a closer diagnostic of my problem though as FileBot is installed via snap, which filebot:

Code: Select all

/snap/bin/filebot
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: sh: 1: Curl: not found

Post by rednoah »

If you need post-processing task that run outside of the snap sandbox (e.g. to use system tools) then you'll want to install FileBot via apt instead:
https://www.filebot.net/linux/apt.html
:idea: Please read the FAQ and How to Request Help.
Paulamonopoly
Posts: 8
Joined: 18 Sep 2022, 22:08

Re: sh: 1: Curl: not found

Post by Paulamonopoly »

That tutorial results in the error:

Code: Select all

E: Unable to locate package filebot
I'm running ubuntu 20.04.4 LTS (Focal Fossa) server so I'm not sure if that has anything to do with it ?

Full log from:

Code: Select all

curl -fsSL https://raw.githubusercontent.com/filebot/plugins/master/installer/deb.sh | sh -xu

Code: Select all

+ uname -a
Linux Ubuntu-2004-focal-64-minimal 5.4.0-121-generic #137-Ubuntu SMP Wed Jun 15 13:33:07 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
+ sudo apt-get install --install-recommends dirmngr gnupg-curl apt-transport-https
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package gnupg-curl
+ sudo apt-key adv --fetch-keys https://raw.githubusercontent.com/filebot/plugins/master/gpg/maintainer.pub
Executing: /tmp/apt-key-gpghome.shpP0VwLDo/gpg.1.sh --fetch-keys https://raw.githubusercontent.com/filebot/plugins/master/gpg/maintainer.pub
gpg: requesting key from 'https://raw.githubusercontent.com/filebot/plugins/master/gpg/maintainer.pub'
gpg: failed to start the dirmngr '/usr/bin/dirmngr': No such file or directory
gpg: connecting dirmngr at '/run/user/0/gnupg/d.39tzrsxjxcf5pf4addkizn4y/S.dirmngr' failed: No such file or directory
gpg: WARNING: unable to fetch URI https://raw.githubusercontent.com/filebot/plugins/master/gpg/maintainer.pub: No dirmngr
+ echo deb [arch=all] https://get.filebot.net/deb/ universal main
+ sudo tee /etc/apt/sources.list.d/filebot.list
deb [arch=all] https://get.filebot.net/deb/ universal main
+ sudo apt-get update
Hit:1 http://mirror.hetzner.de/ubuntu/packages focal InRelease
Hit:2 http://de.archive.ubuntu.com/ubuntu focal InRelease                       
Hit:3 http://mirror.hetzner.de/ubuntu/packages focal-updates InRelease          
Hit:4 http://de.archive.ubuntu.com/ubuntu focal-updates InRelease               
Hit:5 http://mirror.hetzner.de/ubuntu/packages focal-backports InRelease        
Hit:6 http://mirror.hetzner.de/ubuntu/packages focal-security InRelease         
Hit:7 http://de.archive.ubuntu.com/ubuntu focal-backports InRelease             
Hit:8 http://security.ubuntu.com/ubuntu focal-security InRelease
Ign:9 https://get.filebot.net/deb universal InRelease
Get:10 https://get.filebot.net/deb universal Release [1,160 B]
Get:11 https://get.filebot.net/deb universal Release.gpg [862 B]
Ign:11 https://get.filebot.net/deb universal Release.gpg
Reading package lists... Done
W: GPG error: https://get.filebot.net/deb universal Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 4E402EBF7C3C6A71
E: The repository 'https://get.filebot.net/deb universal Release' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
+ sudo apt-get install --install-recommends default-jre openjfx zenity mediainfo libchromaprint-tools p7zip-full unrar
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  accountsservice acl adwaita-icon-theme apg apport apport-symptoms aptdaemon aptdaemon-data aspell aspell-en at-spi2-core avahi-daemon avahi-utils bind9-host bind9-libs bluez bolt bsdmainutils bubblewrap ca-certificates-java cheese-common colord colord-data cpp cpp-9 cracklib-runtime cups-pk-helper dbus-x11
  dconf-cli dconf-gsettings-backend dconf-service default-jre-headless desktop-file-utils dictionaries-common dns-root-data dnsmasq-base docbook-xml emacsen-common enchant-2 evolution-data-server evolution-data-server-common file fonts-dejavu-extra fprintd gcc-9-base gcr gdm3 geoclue-2.0
  gir1.2-accountsservice-1.0 gir1.2-atk-1.0 gir1.2-atspi-2.0 gir1.2-freedesktop gir1.2-gck-1 gir1.2-gcr-3 gir1.2-gdesktopenums-3.0 gir1.2-gdkpixbuf-2.0 gir1.2-gdm-1.0 gir1.2-geoclue-2.0 gir1.2-gnomebluetooth-1.0 gir1.2-gnomedesktop-3.0 gir1.2-graphene-1.0 gir1.2-gtk-3.0 gir1.2-gweather-3.0 gir1.2-ibus-1.0
  gir1.2-json-1.0 gir1.2-mutter-6 gir1.2-nma-1.0 gir1.2-notify-0.7 gir1.2-packagekitglib-1.0 gir1.2-pango-1.0 gir1.2-polkit-1.0 gir1.2-rsvg-2.0 gir1.2-secret-1 gir1.2-soup-2.4 gir1.2-upowerglib-1.0 gir1.2-vte-2.91 gjs gkbd-capplet glib-networking glib-networking-common glib-networking-services
  gnome-control-center gnome-control-center-data gnome-control-center-faces gnome-desktop3-data gnome-keyring gnome-keyring-pkcs11 gnome-menus gnome-online-accounts gnome-session-bin gnome-session-common gnome-settings-daemon gnome-settings-daemon-common gnome-shell gnome-shell-common gnome-startup-applications
  gnome-user-docs groff-base gsettings-desktop-schemas gstreamer1.0-clutter-3.0 gstreamer1.0-gl gstreamer1.0-plugins-base gstreamer1.0-plugins-good gstreamer1.0-pulseaudio gstreamer1.0-x gtk-update-icon-cache hicolor-icon-theme humanity-icon-theme hunspell-en-us ibus ibus-data ibus-gtk ibus-gtk3 iio-sensor-proxy
  im-config ippusbxd iso-codes java-common language-selector-common language-selector-gnome libaa1 libaccountsservice0 libappindicator3-1 libappstream4 libarchive13 libasound2-plugins libaspell15 libatk-bridge2.0-0 libatk-wrapper-java libatk-wrapper-java-jni libatk1.0-0 libatk1.0-data libatspi2.0-0
  libavahi-client3 libavahi-common-data libavahi-common3 libavahi-core7 libavahi-glib1 libbluetooth3 libboost-thread1.71.0 libcamel-1.2-62 libcanberra-gtk3-0 libcanberra-gtk3-module libcanberra-pulse libcanberra0 libcdparanoia0 libcheese-gtk25 libcheese8 libclutter-1.0-0 libclutter-1.0-common libclutter-gst-3.0-0
  libclutter-gtk-1.0-0 libcogl-common libcogl-pango20 libcogl-path20 libcogl20 libcolord-gtk1 libcolord2 libcolorhug2 libcrack2 libcups2 libcurl3-gnutls libdaemon0 libdbusmenu-glib4 libdbusmenu-gtk3-4 libdconf1 libdv4 libebackend-1.2-10 libebook-1.2-20 libebook-contacts-1.2-3 libecal-2.0-1 libedata-book-1.2-26
  libedata-cal-2.0-1 libedataserver-1.2-24 libedataserverui-1.2-2 libegl-mesa0 libegl1 libenchant-2-2 libepoxy0 libevdev2 libexif12 libfontenc1 libfprint-2-2 libgail-common libgail18 libgbm1 libgck-1-0 libgcr-base-3-1 libgcr-ui-3-1 libgd3 libgdata-common libgdata22 libgdm1 libgee-0.8-2 libgeoclue-2-0
  libgeocode-glib0 libgif7 libgjs0g libgles2 libglib2.0-bin libgnome-autoar-0-0 libgnome-bluetooth13 libgnome-desktop-3-19 libgnomekbd-common libgnomekbd8 libgoa-1.0-0b libgoa-1.0-common libgoa-backend-1.0-1 libgphoto2-6 libgphoto2-l10n libgphoto2-port12 libgpm2 libgraphene-1.0-0 libgsound0 libgssdp-1.2-0
  libgstreamer-gl1.0-0 libgstreamer-plugins-base1.0-0 libgstreamer-plugins-good1.0-0 libgstreamer1.0-0 libgtk-3-0 libgtk-3-bin libgtk-3-common libgtk2.0-0 libgtk2.0-bin libgtk2.0-common libgtop-2.0-11 libgtop2-common libgudev-1.0-0 libgupnp-1.2-0 libgupnp-av-1.0-2 libgupnp-dlna-2.0-3 libgusb2 libgweather-3-16
  libgweather-common libharfbuzz-icu0 libhunspell-1.7-0 libhyphen0 libibus-1.0-5 libical3 libice6 libidn11 libieee1284-3 libimobiledevice6 libinput-bin libinput10 libisl22 libjavascriptcoregtk-4.0-18 libjson-glib-1.0-0 libjson-glib-1.0-common liblcms2-2 libldb2 liblmdb0 libltdl7 libmaxminddb0 libmbim-glib4
  libmbim-proxy libmediaart-2.0-0 libmediainfo0v5 libmm-glib0 libmms0 libmozjs-68-0 libmpc3 libmpfr6 libmtdev1 libmutter-6-0 libmysqlclient21 libndp0 libnl-route-3-200 libnma0 libnotify4 libnspr4 libnss-mdns libnss3 libopengl0 libopenjfx-java libopenjfx-jni liborc-0.4-0 libpackagekit-glib2-18 libpam-fprintd
  libpam-gnome-keyring libpangoxft-1.0-0 libpcap0.8 libpci3 libpcsclite1 libphonenumber7 libpipeline1 libplist3 libprotobuf17 libproxy1v5 libpulse-mainloop-glib0 libpulsedsp libpwquality-common libpwquality1 libpython3.8 libpython3.8-minimal libpython3.8-stdlib libqmi-glib5 libqmi-proxy librest-0.7-0
  librsvg2-common librygel-core-2.6-2 librygel-db-2.6-2 librygel-renderer-2.6-2 librygel-server-2.6-2 libsane libsane-common libsbc1 libsecret-1-0 libsecret-common libshout3 libsm6 libsmbclient libsnapd-glib1 libsnmp-base libsnmp35 libsoup-gnome2.4-1 libsoup2.4-1 libspeexdsp1 libstartup-notification0 libstemmer0d
  libtag1v5 libtag1v5-vanilla libtalloc2 libtdb1 libteamdctl0 libtevent0 libtinyxml2-6a libuchardet0 libudisks2-0 libunwind8 libupower-glib3 libusbmuxd6 libuv1 libv4l-0 libv4lconvert0 libvisual-0.4-0 libvte-2.91-0 libvte-2.91-common libwacom-bin libwacom-common libwacom2 libwayland-server0 libwbclient0
  libwebkit2gtk-4.0-37 libwebpdemux2 libwebrtc-audio-processing1 libwhoopsie-preferences0 libwhoopsie0 libwoff1 libxatracker2 libxaw7 libxcb-icccm4 libxcb-image0 libxcb-keysyms1 libxcb-randr0 libxcb-render-util0 libxcb-res0 libxcb-util1 libxcb-xkb1 libxcb-xv0 libxcomposite1 libxdamage1 libxfont2 libxft2
  libxkbcommon-x11-0 libxkbfile1 libxklavier16 libxmu6 libxmuu1 libxpm4 libxslt1.1 libxt6 libxtst6 libxvmc1 libxxf86dga1 libyelp0 libzen0v5 man-db mesa-vulkan-drivers mobile-broadband-provider-info modemmanager mousetweaks mutter mutter-common mysql-common network-manager network-manager-gnome
  network-manager-pptp openjdk-11-jre openjdk-11-jre-headless openjfx-source p11-kit p11-kit-modules p7zip packagekit packagekit-tools pci.ids pinentry-gnome3 ppp pptp-linux pulseaudio pulseaudio-module-bluetooth pulseaudio-utils python3-apport python3-aptdaemon python3-aptdaemon.gtk3widgets python3-blinker
  python3-cairo python3-certifi python3-cryptography python3-cups python3-cupshelpers python3-defer python3-distro python3-entrypoints python3-httplib2 python3-ibus-1.0 python3-idna python3-jwt python3-keyring python3-launchpadlib python3-lazr.restfulclient python3-lazr.uri python3-ldb python3-macaroonbakery
  python3-oauthlib python3-problem-report python3-protobuf python3-requests python3-requests-unixsocket python3-rfc3339 python3-secretstorage python3-simplejson python3-systemd python3-talloc python3-tz python3-urllib3 python3-wadllib python3.8 python3.8-minimal rtkit rygel samba-libs sane-utils session-migration
  sgml-base sgml-data sound-theme-freedesktop switcheroo-control system-config-printer system-config-printer-common system-config-printer-udev ubuntu-docs ubuntu-mono ubuntu-session ubuntu-wallpapers ubuntu-wallpapers-focal unzip update-inetd upower usb-modeswitch usb-modeswitch-data usb.ids usbmuxd wamerican
  whoopsie-preferences wpasupplicant x11-utils x11-xkb-utils x11-xserver-utils xauth xdg-dbus-proxy xfonts-base xfonts-encodings xfonts-utils xml-core xserver-common xserver-xephyr xserver-xorg xserver-xorg-core xserver-xorg-input-all xserver-xorg-input-libinput xserver-xorg-input-wacom xserver-xorg-legacy
  xserver-xorg-video-all xserver-xorg-video-amdgpu xserver-xorg-video-ati xserver-xorg-video-fbdev xserver-xorg-video-intel xserver-xorg-video-nouveau xserver-xorg-video-qxl xserver-xorg-video-radeon xserver-xorg-video-vesa xserver-xorg-video-vmware xwayland yaru-theme-gnome-shell yelp yelp-xsl zenity-common
Suggested packages:
  apport-gtk | apport-kde aspell-doc spellutils avahi-autoipd whois vacation colord-sensor-argyll cpp-doc gcc-9-locales docbook docbook-dsssl docbook-xsl docbook-defguide evolution gnome-orca gnome-software | gnome-packagekit gnome-user-share realmd libcanberra-gtk-module usbguard chrome-gnome-shell
  gir1.2-telepathyglib-0.12 gnome-themes-standard-data gnome-backgrounds gir1.2-telepathylogger-0.2 groff gvfs hunspell openoffice.org-hunspell | openoffice.org-core ibus-clutter ibus-doc isoquery indicator-application lrzip libcanberra-gtk0 cups-common libdv-bin oss-compat libenchant-2-voikko libgd-tools gphoto2
  gpm libvisual-0.4-plugins gstreamer1.0-tools libusbmuxd-tools liblcms2-utils mmdb-bin avahi-autoipd | zeroconf pcscd hplip snmp-mibs-downloader gstreamer1.0-libav www-browser mediainfo-gui libteam-utils network-manager-openconnect-gnome network-manager-openvpn-gnome network-manager-vpnc-gnome
  network-manager-pptp-gnome fonts-ipafont-gothic fonts-ipafont-mincho fonts-wqy-microhei | fonts-wqy-zenhei fonts-indic p7zip-rar appstream pinentry-doc pavumeter pavucontrol paman paprefs ubuntu-sounds python-blinker-doc python-cryptography-doc python3-cryptography-vectors python3-crypto libkf5wallet-bin
  python3-keyrings.alt python3-testresources python3-openssl python3-socks python-secretstorage-doc python3.8-venv python3.8-doc binutils binfmt-support gstreamer1.0-plugins-ugly rygel-playbin rygel-preferences rygel-ruih rygel-tracker tumbler unpaper sgml-base-doc perlsgml w3-recs opensp libxml2-utils
  gnome-software python3-smbc ubuntu-wallpapers-karmic ubuntu-wallpapers-lucid ubuntu-wallpapers-maverick ubuntu-wallpapers-natty ubuntu-wallpapers-oneiric ubuntu-wallpapers-precise ubuntu-wallpapers-quantal ubuntu-wallpapers-raring ubuntu-wallpapers-saucy ubuntu-wallpapers-trusty ubuntu-wallpapers-utopic
  ubuntu-wallpapers-vivid ubuntu-wallpapers-wily ubuntu-wallpapers-xenial ubuntu-wallpapers-yakkety ubuntu-wallpapers-zesty ubuntu-wallpapers-artful ubuntu-wallpapers-bionic ubuntu-wallpapers-cosmic ubuntu-wallpapers-disco ubuntu-wallpapers-eoan zip comgt wvdial wpagui libengine-pkcs11-openssl mesa-utils nickle
  cairo-5c xorg-docs-core debhelper xfonts-100dpi | xfonts-75dpi xfonts-scalable xinput firmware-amd-graphics xserver-xorg-video-r128 xserver-xorg-video-mach64 firmware-misc-nonfree
The following NEW packages will be installed:
  accountsservice acl adwaita-icon-theme apg apport apport-symptoms aptdaemon aptdaemon-data aspell aspell-en at-spi2-core avahi-daemon avahi-utils bind9-host bind9-libs bluez bolt bsdmainutils bubblewrap ca-certificates-java cheese-common colord colord-data cpp cpp-9 cracklib-runtime cups-pk-helper dbus-x11
  dconf-cli dconf-gsettings-backend dconf-service default-jre default-jre-headless desktop-file-utils dictionaries-common dns-root-data dnsmasq-base docbook-xml emacsen-common enchant-2 evolution-data-server evolution-data-server-common file fonts-dejavu-extra fprintd gcc-9-base gcr gdm3 geoclue-2.0
  gir1.2-accountsservice-1.0 gir1.2-atk-1.0 gir1.2-atspi-2.0 gir1.2-freedesktop gir1.2-gck-1 gir1.2-gcr-3 gir1.2-gdesktopenums-3.0 gir1.2-gdkpixbuf-2.0 gir1.2-gdm-1.0 gir1.2-geoclue-2.0 gir1.2-gnomebluetooth-1.0 gir1.2-gnomedesktop-3.0 gir1.2-graphene-1.0 gir1.2-gtk-3.0 gir1.2-gweather-3.0 gir1.2-ibus-1.0
  gir1.2-json-1.0 gir1.2-mutter-6 gir1.2-nma-1.0 gir1.2-notify-0.7 gir1.2-packagekitglib-1.0 gir1.2-pango-1.0 gir1.2-polkit-1.0 gir1.2-rsvg-2.0 gir1.2-secret-1 gir1.2-soup-2.4 gir1.2-upowerglib-1.0 gir1.2-vte-2.91 gjs gkbd-capplet glib-networking glib-networking-common glib-networking-services
  gnome-control-center gnome-control-center-data gnome-control-center-faces gnome-desktop3-data gnome-keyring gnome-keyring-pkcs11 gnome-menus gnome-online-accounts gnome-session-bin gnome-session-common gnome-settings-daemon gnome-settings-daemon-common gnome-shell gnome-shell-common gnome-startup-applications
  gnome-user-docs groff-base gsettings-desktop-schemas gstreamer1.0-clutter-3.0 gstreamer1.0-gl gstreamer1.0-plugins-base gstreamer1.0-plugins-good gstreamer1.0-pulseaudio gstreamer1.0-x gtk-update-icon-cache hicolor-icon-theme humanity-icon-theme hunspell-en-us ibus ibus-data ibus-gtk ibus-gtk3 iio-sensor-proxy
  im-config ippusbxd iso-codes java-common language-selector-common language-selector-gnome libaa1 libaccountsservice0 libappindicator3-1 libappstream4 libarchive13 libasound2-plugins libaspell15 libatk-bridge2.0-0 libatk-wrapper-java libatk-wrapper-java-jni libatk1.0-0 libatk1.0-data libatspi2.0-0
  libavahi-client3 libavahi-common-data libavahi-common3 libavahi-core7 libavahi-glib1 libbluetooth3 libboost-thread1.71.0 libcamel-1.2-62 libcanberra-gtk3-0 libcanberra-gtk3-module libcanberra-pulse libcanberra0 libcdparanoia0 libcheese-gtk25 libcheese8 libchromaprint-tools libclutter-1.0-0 libclutter-1.0-common
  libclutter-gst-3.0-0 libclutter-gtk-1.0-0 libcogl-common libcogl-pango20 libcogl-path20 libcogl20 libcolord-gtk1 libcolord2 libcolorhug2 libcrack2 libcups2 libcurl3-gnutls libdaemon0 libdbusmenu-glib4 libdbusmenu-gtk3-4 libdconf1 libdv4 libebackend-1.2-10 libebook-1.2-20 libebook-contacts-1.2-3 libecal-2.0-1
  libedata-book-1.2-26 libedata-cal-2.0-1 libedataserver-1.2-24 libedataserverui-1.2-2 libegl-mesa0 libegl1 libenchant-2-2 libepoxy0 libevdev2 libexif12 libfontenc1 libfprint-2-2 libgail-common libgail18 libgbm1 libgck-1-0 libgcr-base-3-1 libgcr-ui-3-1 libgd3 libgdata-common libgdata22 libgdm1 libgee-0.8-2
  libgeoclue-2-0 libgeocode-glib0 libgif7 libgjs0g libgles2 libglib2.0-bin libgnome-autoar-0-0 libgnome-bluetooth13 libgnome-desktop-3-19 libgnomekbd-common libgnomekbd8 libgoa-1.0-0b libgoa-1.0-common libgoa-backend-1.0-1 libgphoto2-6 libgphoto2-l10n libgphoto2-port12 libgpm2 libgraphene-1.0-0 libgsound0
  libgssdp-1.2-0 libgstreamer-gl1.0-0 libgstreamer-plugins-base1.0-0 libgstreamer-plugins-good1.0-0 libgstreamer1.0-0 libgtk-3-0 libgtk-3-bin libgtk-3-common libgtk2.0-0 libgtk2.0-bin libgtk2.0-common libgtop-2.0-11 libgtop2-common libgudev-1.0-0 libgupnp-1.2-0 libgupnp-av-1.0-2 libgupnp-dlna-2.0-3 libgusb2
  libgweather-3-16 libgweather-common libharfbuzz-icu0 libhunspell-1.7-0 libhyphen0 libibus-1.0-5 libical3 libice6 libidn11 libieee1284-3 libimobiledevice6 libinput-bin libinput10 libisl22 libjavascriptcoregtk-4.0-18 libjson-glib-1.0-0 libjson-glib-1.0-common liblcms2-2 libldb2 liblmdb0 libltdl7 libmaxminddb0
  libmbim-glib4 libmbim-proxy libmediaart-2.0-0 libmediainfo0v5 libmm-glib0 libmms0 libmozjs-68-0 libmpc3 libmpfr6 libmtdev1 libmutter-6-0 libmysqlclient21 libndp0 libnl-route-3-200 libnma0 libnotify4 libnspr4 libnss-mdns libnss3 libopengl0 libopenjfx-java libopenjfx-jni liborc-0.4-0 libpackagekit-glib2-18
  libpam-fprintd libpam-gnome-keyring libpangoxft-1.0-0 libpcap0.8 libpci3 libpcsclite1 libphonenumber7 libpipeline1 libplist3 libprotobuf17 libproxy1v5 libpulse-mainloop-glib0 libpulsedsp libpwquality-common libpwquality1 libpython3.8 libqmi-glib5 libqmi-proxy librest-0.7-0 librsvg2-common librygel-core-2.6-2
  librygel-db-2.6-2 librygel-renderer-2.6-2 librygel-server-2.6-2 libsane libsane-common libsbc1 libsecret-1-0 libsecret-common libshout3 libsm6 libsmbclient libsnapd-glib1 libsnmp-base libsnmp35 libsoup-gnome2.4-1 libsoup2.4-1 libspeexdsp1 libstartup-notification0 libstemmer0d libtag1v5 libtag1v5-vanilla
  libtalloc2 libtdb1 libteamdctl0 libtevent0 libtinyxml2-6a libuchardet0 libudisks2-0 libunwind8 libupower-glib3 libusbmuxd6 libuv1 libv4l-0 libv4lconvert0 libvisual-0.4-0 libvte-2.91-0 libvte-2.91-common libwacom-bin libwacom-common libwacom2 libwayland-server0 libwbclient0 libwebkit2gtk-4.0-37 libwebpdemux2
  libwebrtc-audio-processing1 libwhoopsie-preferences0 libwhoopsie0 libwoff1 libxatracker2 libxaw7 libxcb-icccm4 libxcb-image0 libxcb-keysyms1 libxcb-randr0 libxcb-render-util0 libxcb-res0 libxcb-util1 libxcb-xkb1 libxcb-xv0 libxcomposite1 libxdamage1 libxfont2 libxft2 libxkbcommon-x11-0 libxkbfile1 libxklavier16
  libxmu6 libxmuu1 libxpm4 libxslt1.1 libxt6 libxtst6 libxvmc1 libxxf86dga1 libyelp0 libzen0v5 man-db mediainfo mesa-vulkan-drivers mobile-broadband-provider-info modemmanager mousetweaks mutter mutter-common mysql-common network-manager network-manager-gnome network-manager-pptp openjdk-11-jre
  openjdk-11-jre-headless openjfx openjfx-source p11-kit p11-kit-modules p7zip p7zip-full packagekit packagekit-tools pci.ids pinentry-gnome3 ppp pptp-linux pulseaudio pulseaudio-module-bluetooth pulseaudio-utils python3-apport python3-aptdaemon python3-aptdaemon.gtk3widgets python3-blinker python3-cairo
  python3-certifi python3-cryptography python3-cups python3-cupshelpers python3-defer python3-distro python3-entrypoints python3-httplib2 python3-ibus-1.0 python3-idna python3-jwt python3-keyring python3-launchpadlib python3-lazr.restfulclient python3-lazr.uri python3-ldb python3-macaroonbakery python3-oauthlib
  python3-problem-report python3-protobuf python3-requests python3-requests-unixsocket python3-rfc3339 python3-secretstorage python3-simplejson python3-systemd python3-talloc python3-tz python3-urllib3 python3-wadllib rtkit rygel samba-libs sane-utils session-migration sgml-base sgml-data sound-theme-freedesktop
  switcheroo-control system-config-printer system-config-printer-common system-config-printer-udev ubuntu-docs ubuntu-mono ubuntu-session ubuntu-wallpapers ubuntu-wallpapers-focal unrar unzip update-inetd upower usb-modeswitch usb-modeswitch-data usb.ids usbmuxd wamerican whoopsie-preferences wpasupplicant
  x11-utils x11-xkb-utils x11-xserver-utils xauth xdg-dbus-proxy xfonts-base xfonts-encodings xfonts-utils xml-core xserver-common xserver-xephyr xserver-xorg xserver-xorg-core xserver-xorg-input-all xserver-xorg-input-libinput xserver-xorg-input-wacom xserver-xorg-legacy xserver-xorg-video-all
  xserver-xorg-video-amdgpu xserver-xorg-video-ati xserver-xorg-video-fbdev xserver-xorg-video-intel xserver-xorg-video-nouveau xserver-xorg-video-qxl xserver-xorg-video-radeon xserver-xorg-video-vesa xserver-xorg-video-vmware xwayland yaru-theme-gnome-shell yelp yelp-xsl zenity zenity-common
The following packages will be upgraded:
  libpython3.8-minimal libpython3.8-stdlib python3.8 python3.8-minimal
4 upgraded, 502 newly installed, 0 to remove and 40 not upgraded.
Need to get 233 MB of archives.
After this operation, 910 MB of additional disk space will be used.
Do you want to continue? [Y/n] Abort.
+ sudo apt-get install --install-recommends filebot
Reading package lists... Done
Building dependency tree       
Reading state information... Done

No apt package "filebot", but there is a snap with that name.
Try "snap install filebot"

E: Unable to locate package filebot
+ filebot -script fn:sysinfo
Warning: Schema “org.gnome.system.locale” has path “/system/locale/”.  Paths starting with “/apps/”, “/desktop/” or “/system/” are deprecated.
Warning: Schema “org.gnome.system.proxy” has path “/system/proxy/”.  Paths starting with “/apps/”, “/desktop/” or “/system/” are deprecated.
Warning: Schema “org.gnome.system.proxy.http” has path “/system/proxy/http/”.  Paths starting with “/apps/”, “/desktop/” or “/system/” are deprecated.
Warning: Schema “org.gnome.system.proxy.https” has path “/system/proxy/https/”.  Paths starting with “/apps/”, “/desktop/” or “/system/” are deprecated.
Warning: Schema “org.gnome.system.proxy.ftp” has path “/system/proxy/ftp/”.  Paths starting with “/apps/”, “/desktop/” or “/system/” are deprecated.
Warning: Schema “org.gnome.system.proxy.socks” has path “/system/proxy/socks/”.  Paths starting with “/apps/”, “/desktop/” or “/system/” are deprecated.
FileBot 4.9.6 (r9125)
JNA Native: 6.1.2
MediaInfo: 21.09
7-Zip-JBinding: 16.02
Tools: fpcalc/1.5.0
Extended Attributes: OK
Unicode Filesystem: OK
Script Bundle: 2022-08-15 (r836)
Groovy: 3.0.9
JRE: OpenJDK Runtime Environment 17.0.2
JVM: OpenJDK 64-Bit Server VM
CPU/MEM: 16 Core / 16 GB Max Memory / 52 MB Used Memory
OS: Linux (amd64)
HW: Linux Ubuntu-2004-focal-64-minimal 5.4.0-121-generic #137-Ubuntu SMP Wed Jun 15 13:33:07 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
CPU/MEM: AMD Ryzen 7 3700X 8-Core Processor [MemTotal: 67 GB | MemFree: 646 MB | MemAvailable: 65 GB | SwapCached: 307 KB | SwapTotal: 34 GB | SwapFree: 34 GB]
STORAGE: NONE
USER: root
DATA: /root/snap/filebot/44/data
Package: SNAP
Confinement: Strict # Restricted File System Access
License: FileBot License P40095062 (Valid-Until: 2023-08-17)
Done ヾ(@⌒ー⌒@)ノ
Paulamonopoly
Posts: 8
Joined: 18 Sep 2022, 22:08

Re: sh: 1: Curl: not found

Post by Paulamonopoly »

I have since resolved it by going into the .sh file and trying step by step...

The issue I'm having now is my curl command has "&" in it which means my URL needs to be surrounded by single quotes, this is now causing issues because filebot cannot understand exec="curl 'example.com/api=wmeogm&something'"
Paulamonopoly
Posts: 8
Joined: 18 Sep 2022, 22:08

Re: sh: 1: Curl: not found

Post by Paulamonopoly »

I have now resolved that, when using a curl exec with & you need to backslash it for example:

Code: Select all

filebot -script fn:amc --output "/home" --action move -non-strict "/home/test" --def movieDB=TheMovieDB seriesDB=TheMovieDB::TV movieFormat="/home/purgatory/Movies/{id}/{id}" seriesFormat="/home/purgatory/Shows/{id}/{s}/{e}"  deleteAfterExtract=y clean=y --def exec="curl https://example.com/API?_ACTION=insert\&type=movie\&id={id}"
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: sh: 1: Curl: not found

Post by rednoah »

You can use the quote() function to let filebot itself take care of quoting arguments correctly:

Code: Select all

--def exec='{quote "curl", "https://example.com/API?_ACTION=insert&type=movie&id=${id}"}'
Image
:idea: Please read the FAQ and How to Request Help.
Post Reply