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
  •  


HGST Ultrastar HE10 HUH721010ALE600 10TB SATA 6Gb/s 7200RPM 3.5

HGST Ultrastar HE10 HUH721010ALE600 10TB SATA 6Gb/s 7200RPM 3.5" Enterprise HDD

$74.99



Western Digital WD60PURZ 6TB Hard Drive SATA6 Gb/s 64MB Cache 3.5 Inch picture

Western Digital WD60PURZ 6TB Hard Drive SATA6 Gb/s 64MB Cache 3.5 Inch

$109.99



Seagate Exos X20 16TB 7.2K 256MB 3.5

Seagate Exos X20 16TB 7.2K 256MB 3.5" SATA 6Gb/s Enterprise HDD - ST16000NM000D

$139.99



WF12F DELL 1TB 7.2K 6GBPS SATA 2.5'' HDD HARD DRIVE ST91000640NS 0WF12F picture

WF12F DELL 1TB 7.2K 6GBPS SATA 2.5'' HDD HARD DRIVE ST91000640NS 0WF12F

$25.00



Seagate Exos 7E10 ST2000NM000B 2TB 7200RPM SATA 6.0Gb/s 3.5

Seagate Exos 7E10 ST2000NM000B 2TB 7200RPM SATA 6.0Gb/s 3.5" Internal Hard Drive

$29.99



HGST Ultrastar DC HC520 12TB SATA 6Gb 256MB 3.5

HGST Ultrastar DC HC520 12TB SATA 6Gb 256MB 3.5" Enterprise HDD- HUH721212ALE601

$82.99



2 PACK  Seagate ST1000LM035 Mobile HDD 1TB 2.5

2 PACK Seagate ST1000LM035 Mobile HDD 1TB 2.5" SATA III Laptop Hard Drive

$27.49



8TB Seagate Archive SATA 3.5

8TB Seagate Archive SATA 3.5" HDD Hard Drive 100% Healthy 200MB/s ST8000AS0002

$36.53



WD 16TB Elements Desktop, Certified Refurbished Hard Drive - RWDBWLG0160HBK-NESN picture

WD 16TB Elements Desktop, Certified Refurbished Hard Drive - RWDBWLG0160HBK-NESN

$174.99



WD HDD Ultrastar DC HC520 HUH721212AL4205 12TB 3.5

WD HDD Ultrastar DC HC520 HUH721212AL4205 12TB 3.5" SAS Server Hard Disk Drive

$45.30