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
  •  


AMD EPYC 7282 CPU Processor 16 Cores 32 Threads 2.8GHZ up to 3.2GHZ 120W no lock picture

AMD EPYC 7282 CPU Processor 16 Cores 32 Threads 2.8GHZ up to 3.2GHZ 120W no lock

$76.00



Intel - Core i7-12700K Desktop Processor 12 (8P+4E) Cores up to 5.0 GHz Unloc... picture

Intel - Core i7-12700K Desktop Processor 12 (8P+4E) Cores up to 5.0 GHz Unloc...

$419.99



Intel - Core i9-12900K Desktop Processor 16 (8P+8E) Cores up to 5.2 GHz Unloc... picture

Intel - Core i9-12900K Desktop Processor 16 (8P+8E) Cores up to 5.2 GHz Unloc...

$619.99



Intel Xeon E5-2697A V4 2.6GHz CPU Processor 16-Core Socket LGA2011 SR2K1 picture

Intel Xeon E5-2697A V4 2.6GHz CPU Processor 16-Core Socket LGA2011 SR2K1

$39.99



Intel Core i5-6500 3.2 GHz 8 GT/s LGA 1151 Desktop CPU Processor SR2L6 picture

Intel Core i5-6500 3.2 GHz 8 GT/s LGA 1151 Desktop CPU Processor SR2L6

$24.99



Intel Core i5-8500 Six Core Desktop PC CPU Processor 3.00GHz LGA1151 SR3XE picture

Intel Core i5-8500 Six Core Desktop PC CPU Processor 3.00GHz LGA1151 SR3XE

$49.99



Intel Core i5-8500 3 GHz 8 GT/s LGA 1151 Desktop CPU Processor SR3XE picture

Intel Core i5-8500 3 GHz 8 GT/s LGA 1151 Desktop CPU Processor SR3XE

$49.99



AMD Ryzen 5 4500 6-Core 3.6GHz Socket AM4 65W CPU Desktop Processor picture

AMD Ryzen 5 4500 6-Core 3.6GHz Socket AM4 65W CPU Desktop Processor

$79.00



Intel Quad Core i3-12100 3.3GHz 12MB LGA1700 12th Gen. CPU Processor SRL62 picture

Intel Quad Core i3-12100 3.3GHz 12MB LGA1700 12th Gen. CPU Processor SRL62

$45.93



Intel 16 Core i7-13700T DESKTOP processor TURBO Boost 4.90Ghz CM8071504820903 picture

Intel 16 Core i7-13700T DESKTOP processor TURBO Boost 4.90Ghz CM8071504820903

$269.00