-
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
-
Senior Member
registered user
Originally Posted by
coloringb
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
-
Forum Rules
1U Supermicro Server 10 Bay 2x Intel Xeon 3.3Ghz 8C 128GB RAM 480GB SSD 2x 10GBE
$297.00
HP ProLiant Xeon E3-1220L V2 MicroServer Gen8 2.30 GHz 16 GB RAM NO DRIVES
$199.99
HPE ProLiant MicroServer Gen10 Plus v2 Ultra Micro Tower Server - 1 x Intel Xeon
$846.19
HP ProLiant Xeon E3-1220L V2 2.30 GHz 16 GB RAM MicroServer Gen8 NO DRIVES
$199.99
HP ProLiant HSTNS-5151 Micro Server 8GB RAM No Drives/Key/Caddies *READ*
$94.99
SuperMicro Server 505-2 Intel Atom 2.4GHz 8GB RAM SYS-5018A-FTN4 1U Rackmount
$202.49
Supermicro 5018A-FTN4 Rack Server - Black
$125.00
SuperMicro RACK SERVER 502-2 5015A-H
$125.00
SUPERMICRO CSE-512 AMD Opteron Processor 6128, 32GB DDR3 RAM NO HDD
$90.00
1U Supermicro Server X10DRU-i+ 2x Xeon E5-2690 V4 28 Cores 64GB 4x 10GBE-T 2PS
$324.00