Find the answer to your Linux question:
Results 1 to 3 of 3
I need to put a script together that will run these commands below cd /this folder python thisprog.py I'd like to link this to a desktop icon in kde. What ...
  1. #1
    Linux Engineer
    Join Date
    Jul 2003
    Location
    Farnborough, UK
    Posts
    1,305

    Need script to run a prog

    I need to put a script together that will run these commands below

    cd /this folder
    python thisprog.py

    I'd like to link this to a desktop icon in kde.

    What should I be putting in a file?
    Lansbury's Lido

    thekiadriver on #linuxforums - fleetingly

  2. #2
    Linux Enthusiast
    Join Date
    Aug 2006
    Posts
    631
    Just place your commands in a file with the shebang above:

    Code:
    #!/bin/bash
    and make the file executable with chmod.

    Regards

  3. #3
    Linux Engineer
    Join Date
    Jul 2003
    Location
    Farnborough, UK
    Posts
    1,305
    Cheers Franklin. Was the executable thing that was throwing me!
    Lansbury's Lido

    thekiadriver on #linuxforums - fleetingly

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...