Results 1 to 2 of 2

Thread: Is it possible to call a script from knoppix.sh?

  1. #1
    Junior Member
    Join Date
    Oct 2011
    Posts
    1

    Is it possible to call a script from knoppix.sh?

    Hi all, I am new to Knoppix, recently I downloaded v6.7 and put it to PXE. I am wondering is it possible to call a script from knoppix.sh? I tried to put the path of my new script in knoppix.sh, and chmod+x the new script, but after knoppix booted up the new script won't execute. Thanks

    I have the default settings file myconf=scan

    knoppix.sh command:
    #!/bin.sh
    echo "Hi knoppix"
    sh /tftpboot/KNOPPIX/test.sh
    echo "Bye knoppix"

    Outcome:
    Executing /mnt/system/KNOPPIX/knoppix.sh
    Hi knoppix
    sh: can't open 'tftpboot/KNOPPIX/test.sh'
    Bye knoppix
    INIT:Entering runlevel:3

  2. #2
    Senior Member registered user
    Join Date
    Dec 2009
    Posts
    423
    Quote Originally Posted by coloringb View Post

    knoppix.sh command:
    #!/bin.sh
    echo "Hi knoppix"
    sh /tftpboot/KNOPPIX/test.sh
    echo "Bye knoppix"

    Outcome:
    Executing /mnt/system/KNOPPIX/knoppix.sh
    Hi knoppix
    sh: can't open 'tftpboot/KNOPPIX/test.sh'
    Bye knoppix
    INIT:Entering runlevel:3
    Is there any typo error ?
    It should probably be :-

    sh: can't open '/tftpboot/KNOPPIX/test.sh'
    ( leading slash is missing from your post )

    Also the '#!/bin.sh' should be '#!/bin/sh'.

    If that's the case check the file permission of /tftpboot and /tftpboot/KNOPPIX, it should be r_x for the person wanting to access it. Another possibility is the directory /tftpboot/KNOPPIX does not even exist. You can try to use the cheatcode 'debug' to help you.

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 R720 Server - 2x8c CPU,256Gb RAM, 128Gb SSD/3x900Gb SAS, Proxmox picture

Dell PowerEdge R720 Server - 2x8c CPU,256Gb RAM, 128Gb SSD/3x900Gb SAS, Proxmox

$340.00



DELL PowerEdge R730XD 24x 2.5

DELL PowerEdge R730XD 24x 2.5" Server Dual 750W Dual Heatsink - BareBones TESTED

$269.99



Supermicro 4U 36 Bay Storage Server 2.4Ghz 8-C 128GB 1x1280W Rails TrueNAS ZFS picture

Supermicro 4U 36 Bay Storage Server 2.4Ghz 8-C 128GB 1x1280W Rails TrueNAS ZFS

$712.98



CSE-118 Supermicro 1U 3x GPU Server  2.6Ghz 20-C 128GB CX353A 2x1600W PSU Rails picture

CSE-118 Supermicro 1U 3x GPU Server 2.6Ghz 20-C 128GB CX353A 2x1600W PSU Rails

$454.03



Intel Xeon W-2255 3.7GHz 10 Core (SRGV8) Processor 165W -SN:M06JР84603364 picture

Intel Xeon W-2255 3.7GHz 10 Core (SRGV8) Processor 165W -SN:M06JР84603364

$329.00



Intel Xeon E5-2680 v4 2.4GHz 35MB 14-Core 120W LGA2011-3 SR2N7 picture

Intel Xeon E5-2680 v4 2.4GHz 35MB 14-Core 120W LGA2011-3 SR2N7

$17.99



Intel Xeon Gold 6140 SR3AX 2.3GHz 18-Core Processor CPU picture

Intel Xeon Gold 6140 SR3AX 2.3GHz 18-Core Processor CPU

$44.99



Intel Xeon E5-2697 v2 2.7GHz 30M 12-Core LGA2011 CPU Processor SR19H picture

Intel Xeon E5-2697 v2 2.7GHz 30M 12-Core LGA2011 CPU Processor SR19H

$27.99



HP Workstation Z640 2x Xeon E5-2623V4 32GB Ram Dual 256GB SSD K420 Linux GA picture

HP Workstation Z640 2x Xeon E5-2623V4 32GB Ram Dual 256GB SSD K420 Linux GA

$234.98



Dell Precision T5600/t5610 Xeon E5-2670 2.6Ghz 16GB DDR3 RAM NO HDD Nvidia picture

Dell Precision T5600/t5610 Xeon E5-2670 2.6Ghz 16GB DDR3 RAM NO HDD Nvidia

$90.00