Mastodon Skip to content
  • Home
  • Aktuell
  • Tags
  • Über dieses Forum
Einklappen
Grafik mit zwei überlappenden Sprechblasen, eine grün und eine lila.
Abspeckgeflüster – Forum für Menschen mit Gewicht(ung)

Kostenlos. Werbefrei. Menschlich. Dein Abnehmforum.

  1. Home
  2. Uncategorized
  3. Interessantes Problem bei meinem #Linux #Mint:

Interessantes Problem bei meinem #Linux #Mint:

Geplant Angeheftet Gesperrt Verschoben Uncategorized
linuxmint
7 Beiträge 3 Kommentatoren 0 Aufrufe
  • Älteste zuerst
  • Neuste zuerst
  • Meiste Stimmen
Antworten
  • In einem neuen Thema antworten
Anmelden zum Antworten
Dieses Thema wurde gelöscht. Nur Nutzer mit entsprechenden Rechten können es sehen.
  • fetopa@nrw.socialF This user is from outside of this forum
    fetopa@nrw.socialF This user is from outside of this forum
    fetopa@nrw.social
    schrieb zuletzt editiert von
    #1

    Interessantes Problem bei meinem #Linux #Mint:

    In einem lokalen Ordner liegt ein Shell-Script (datei.sh)

    Datei ist als ausführbar markiert.

    Terminal im Ordner starten -> sh ./datei.sh -> Script startet korrekt.

    Jetzt will ich einen Shortcut erzeugen.

    Menübearbeitung öffnen -> Neuer Eintrag -> Befehl: /home/ich/Ordner/datei.sh

    Im Menü auf den neu angelegten Eintrag klicken: Nix passiert.

    Ein Rätsel.

    Hat jemand einen Tipp?

    P exxo@nrw.socialE 2 Antworten Letzte Antwort
    0
    • fetopa@nrw.socialF fetopa@nrw.social

      Interessantes Problem bei meinem #Linux #Mint:

      In einem lokalen Ordner liegt ein Shell-Script (datei.sh)

      Datei ist als ausführbar markiert.

      Terminal im Ordner starten -> sh ./datei.sh -> Script startet korrekt.

      Jetzt will ich einen Shortcut erzeugen.

      Menübearbeitung öffnen -> Neuer Eintrag -> Befehl: /home/ich/Ordner/datei.sh

      Im Menü auf den neu angelegten Eintrag klicken: Nix passiert.

      Ein Rätsel.

      Hat jemand einen Tipp?

      P This user is from outside of this forum
      P This user is from outside of this forum
      pwl@mastodon.social
      schrieb zuletzt editiert von
      #2

      @fetopa look at permissions - is the command executable & maybe try setting to run in a terminal

      fetopa@nrw.socialF 1 Antwort Letzte Antwort
      0
      • fetopa@nrw.socialF fetopa@nrw.social

        Interessantes Problem bei meinem #Linux #Mint:

        In einem lokalen Ordner liegt ein Shell-Script (datei.sh)

        Datei ist als ausführbar markiert.

        Terminal im Ordner starten -> sh ./datei.sh -> Script startet korrekt.

        Jetzt will ich einen Shortcut erzeugen.

        Menübearbeitung öffnen -> Neuer Eintrag -> Befehl: /home/ich/Ordner/datei.sh

        Im Menü auf den neu angelegten Eintrag klicken: Nix passiert.

        Ein Rätsel.

        Hat jemand einen Tipp?

        exxo@nrw.socialE This user is from outside of this forum
        exxo@nrw.socialE This user is from outside of this forum
        exxo@nrw.social
        schrieb zuletzt editiert von exxo@nrw.social
        #3

        @fetopa Auf den ersten Blick ist ein Unterschied das working directory 🤔

        fetopa@nrw.socialF 1 Antwort Letzte Antwort
        0
        • P pwl@mastodon.social

          @fetopa look at permissions - is the command executable & maybe try setting to run in a terminal

          fetopa@nrw.socialF This user is from outside of this forum
          fetopa@nrw.socialF This user is from outside of this forum
          fetopa@nrw.social
          schrieb zuletzt editiert von
          #4

          @Pwl

          Script file is marked as executable.

          When double-clicked in Nemo, a dialogue opens with following options (in german, so maybe called different in english dialogue):

          - Execute in Terminal
          - Show
          - Cancel
          - Execute

          Neither option 1 nor 4 works.

          Only way is to open terminal explicitly in this directory and type "sh ./file.sh".

          exxo@nrw.socialE 1 Antwort Letzte Antwort
          0
          • exxo@nrw.socialE exxo@nrw.social

            @fetopa Auf den ersten Blick ist ein Unterschied das working directory 🤔

            fetopa@nrw.socialF This user is from outside of this forum
            fetopa@nrw.socialF This user is from outside of this forum
            fetopa@nrw.social
            schrieb zuletzt editiert von
            #5

            @Exxo

            Ich gebe den Pfad zur Datei nicht manuell ein, sondern wähle sie über den "Auswählen"-Dialog aus.

            Er dürfte also eigentlich nicht ins Leere laufen.

            1 Antwort Letzte Antwort
            0
            • fetopa@nrw.socialF fetopa@nrw.social

              @Pwl

              Script file is marked as executable.

              When double-clicked in Nemo, a dialogue opens with following options (in german, so maybe called different in english dialogue):

              - Execute in Terminal
              - Show
              - Cancel
              - Execute

              Neither option 1 nor 4 works.

              Only way is to open terminal explicitly in this directory and type "sh ./file.sh".

              exxo@nrw.socialE This user is from outside of this forum
              exxo@nrw.socialE This user is from outside of this forum
              exxo@nrw.social
              schrieb zuletzt editiert von
              #6

              @fetopa
              Does the file have a shebang? And did you already try running the file not by executing itself, but by opening "/path/to/sh /home/ich/Ordner/datei.sh"?
              @Pwl

              fetopa@nrw.socialF 1 Antwort Letzte Antwort
              0
              • exxo@nrw.socialE exxo@nrw.social

                @fetopa
                Does the file have a shebang? And did you already try running the file not by executing itself, but by opening "/path/to/sh /home/ich/Ordner/datei.sh"?
                @Pwl

                fetopa@nrw.socialF This user is from outside of this forum
                fetopa@nrw.socialF This user is from outside of this forum
                fetopa@nrw.social
                schrieb zuletzt editiert von
                #7

                @Exxo @Pwl

                Script starts with #!/bin/sh

                Working:
                sh /home/ich/Ordner/datei.sh

                Not working:
                /user/bin/sh /home/ich/Ordner/datei.sh

                because of "whereis sh" -> /user/bin/sh

                (/user/bin/sh: file or directory not found)

                1 Antwort Letzte Antwort
                0
                Antworten
                • In einem neuen Thema antworten
                Anmelden zum Antworten
                • Älteste zuerst
                • Neuste zuerst
                • Meiste Stimmen



                Copyright (c) 2025 abSpecktrum (@abspecklog@fedimonster.de)

                Erstellt mit Schlaflosigkeit, Kaffee, Brokkoli & ♥

                Impressum | Datenschutzerklärung | Nutzungsbedingungen

                • Anmelden

                • Du hast noch kein Konto? Registrieren

                • Anmelden oder registrieren, um zu suchen
                • Erster Beitrag
                  Letzter Beitrag
                0
                • Home
                • Aktuell
                • Tags
                • Über dieses Forum