Results 1 to 3 of 3

Thread: Shell scripts running at Knoppix

  1. #1
    Junior Member
    Join Date
    May 2003
    Posts
    2

    Shell scripts running at Knoppix

    Is is possible to run shell scripts under CD booted Knoppix?
    I've tried to run simple script in root shell but I've had no luck.
    I've got an error ": bad interpreter : No such file or directoryin/sh"

    The first line of my script is just "#!/bin/sh"

    Did I miss something?

    MaJaLes

  2. #2
    Member registered user
    Join Date
    Feb 2003
    Posts
    61

    been there too

    some thing have to be run from console not x-term

    go CTRL-ALT-F2 [remember ALT-F5 to get back!]
    this brings up root console
    enter "password" to set a new root password!
    drill down the directory till you find your script and you should be all set!

    Now you can run shell scripts "sh runme" and they should work just fine

    Some scripts will run without the extra work, but you have to be very literal about where you run them from. You have to remember to specify the proper directory path to them. I've found if you save them to the Desktop that more will run from X-term because the x-term can "see" the Desktop folder without a bunch of monkey business. An added benifit is that you can save the files for later with the save config menu option too! [choose to save desktop files!] They restore when you use the floppyconfig or myconfig=scan command!

  3. #3

    Re: Shell scripts running at Knoppix

    Quote Originally Posted by majales
    Is is possible to run shell scripts under CD booted Knoppix?
    I've tried to run simple script in root shell but I've had no luck.
    I've got an error ": bad interpreter : No such file or directoryin/sh"

    The first line of my script is just "#!/bin/sh"

    Did I miss something?

    MaJaLes
    This works fine in mine. I created the script on the Desktop and ran it from the root shell.

    Post your script so that others can try it and help troubleshoot the problem. This should work! On my system, the shell interprets everything just fine.

    try creating the following script on the Desktop. Call it testscript:

    Code:
    #! /bin/sh
    ls -asl / >> test.txt
    Then make it executable:

    chmod u+x testscript

    now execute it either with sh testscript or by itself (since we made it executable) with testscript

    It should just work

Similar Threads

  1. Running commands & shell scripts automatically at boot
    By sunburnt in forum Tips and Tricks
    Replies: 5
    Last Post: 05-28-2005, 05:39 PM
  2. running shell script
    By splittik in forum General Support
    Replies: 1
    Last Post: 03-22-2005, 07:38 AM
  3. Replies: 1
    Last Post: 10-01-2004, 06:53 AM
  4. running scripts at startup when KNOPPIX boots
    By pankajgadhari in forum General Support
    Replies: 1
    Last Post: 01-07-2004, 06:33 AM
  5. Auto running scripts off a remastered CD question.
    By colinmc151 in forum Customising & Remastering
    Replies: 3
    Last Post: 11-10-2003, 11:40 PM

Posting Permissions

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


Dell Poweredge R810 4x Xeon X7560 2.26ghz 32-Cores | 256GB | 3x Trays | H700 picture

Dell Poweredge R810 4x Xeon X7560 2.26ghz 32-Cores | 256GB | 3x Trays | H700

$289.99



Dell EMC PowerEdge R440 Xeon silver 4215 2.5GHz 16 GB ram  2x 550W PSU No HDD picture

Dell EMC PowerEdge R440 Xeon silver 4215 2.5GHz 16 GB ram 2x 550W PSU No HDD

$275.00



Dell Poweredge R630 2x Xeon E5-2680 v3 2.5ghz 24-Cores / 64gb / Raid / 2x 1Tb picture

Dell Poweredge R630 2x Xeon E5-2680 v3 2.5ghz 24-Cores / 64gb / Raid / 2x 1Tb

$374.99



Dell PowerEdge R530 2x E5-2630v4 H330 iDRAC8 Port Card Riser No PSU/RAM/HDD picture

Dell PowerEdge R530 2x E5-2630v4 H330 iDRAC8 Port Card Riser No PSU/RAM/HDD

$99.99



Dell PowerEdge R730XD 28 Core Server 2X Xeon E5-2680 V4 H730 32GB RAM No HDD picture

Dell PowerEdge R730XD 28 Core Server 2X Xeon E5-2680 V4 H730 32GB RAM No HDD

$378.93



Dell Poweredge R630 2x Xeon E5-2680 v3 2.5ghz 24-Core | HBA330 | No RAM or HDD picture

Dell Poweredge R630 2x Xeon E5-2680 v3 2.5ghz 24-Core | HBA330 | No RAM or HDD

$149.99



Dell PowerEdge R640 10SFF 2x Gold 6140 2.3GHz 36-Cores 64gb H730p 2x Trays picture

Dell PowerEdge R640 10SFF 2x Gold 6140 2.3GHz 36-Cores 64gb H730p 2x Trays

$599.99



Dell PowerEdge C4130 1U AI GPU Server | 2x E5-2690 v3 | 64gb Ram | 2x 1600W picture

Dell PowerEdge C4130 1U AI GPU Server | 2x E5-2690 v3 | 64gb Ram | 2x 1600W

$524.99



Dell PowerEdge FC430 Blade Server 2x Xeon E5-2630v4 20 Cores FX2 FX2s No RAM/HDD picture

Dell PowerEdge FC430 Blade Server 2x Xeon E5-2630v4 20 Cores FX2 FX2s No RAM/HDD

$119.99



Dell PowerEdge FX2s + 8x FC430 Blades 16x E5-2630v4 160 Cores Rails No PSU/RAM picture

Dell PowerEdge FX2s + 8x FC430 Blades 16x E5-2630v4 160 Cores Rails No PSU/RAM

$699.00