Nieuws:

Welkom, Gast. Alsjeblieft inloggen of registreren.
Heb je de activerings-mail niet ontvangen?

Auteur Topic: Kleine vragen  (gelezen 711 keer)

Offline Ruben

  • Lid
Kleine vragen
« Gepost op: 2006/11/25, 20:38:58 »
hoe run ik een .sh bestand vanuit het terminal?

Offline bartek

  • Lid
    • http://bartek.blogsome.com
Kleine vragen
« Reactie #1 Gepost op: 2006/11/25, 20:51:58 »
Shell Script Installer (.sh, .bash, ...)
You can run the shell script inside a terminal with the command sh. If the script is called test.sh and is on the desktop of user carl, you can install it with:
sh /home/carl/Desktop/test.sh.
Keep in mind that the script might not have permission to execute in your file-system.

http://monkeyblog.org/ubuntu/installing/
| Deliberando saepe perit occasio |

"Car la vie est un bien perdu quand on n'a pas vécu comme on l'aurait voulu"

Offline Soul-Sing

  • Lid
Kleine vragen
« Reactie #2 Gepost op: 2006/11/26, 10:40:30 »
Citaat van: bartek
Shell Script Installer (.sh, .bash, ...)
You can run the shell script inside a terminal with the command sh. If the script is called test.sh and is on the desktop of user carl, you can install it with:
sh /home/carl/Desktop/test.sh.
Keep in mind that the script might not have permission to execute in your file-system.

http://monkeyblog.org/ubuntu/installing/
in het laatste geval : sudo sh /home/carl/Desktop/test.sh.

`GooZ

  • Gast
Kleine vragen
« Reactie #3 Gepost op: 2006/11/26, 12:11:17 »
Je kan ook, indien je dit bestand wel vaker zal willen uitvoeren, het script uitvoerbaar maken dmv in een terminal in te tikken: 'chmod +x /pad/naar/test.sh'. dan kan je in de terminal ook gewoon /pad/naar/test.sh tikken om het script te runnen.