-
configs.tbz/knoppix.sh related error message on boot
Hi all, just started using 3.8.1 as a pmi. I get the following msg when booting after using the myconfig=/mnt/hdb3 cheat code:
All appears normal throughout the boot process until after the 'extracting config archive /mnt/hdb3/configs.tbz ... '
The following msg then appears in gray:
/mnt/hdb3/knoppix.sh: line 11: 1819 terminated pump -i$DEVICE >/dev/null 2> &1
Then everything carries on as normal, and my config settings are loaded up. Any ideas as to what's causing this? TIA.
-
Senior Member
registered user
Hi,
>>
>/dev/null 2> &1
>>
change to ...
>/dev/null 2>&1
It's probably the space between the '2>' and the '&'.
The shell will see that as a field seperator/termination, and get confused as to where you want the redirection to actually go.
jm
Code:
-:- If the system is the answer, then the question
must have been really stupid -:-
-
Thx for the response. As far as I was aware I wasn't redirecting it at the time (I certainly wasn't typing anything in except the myconfig cheat code. Anyway, I now save myconfig to a different location and for the moment, it's not giving me any more messages. Don't know how long it will last though ..
-
Senior Member
registered user
>>
-i$DEVICE >/dev/null 2> &1
>>
The shell will see $DEVICE as a variable to expand(macro),
the shell will interpret >/dev/null to mean you want the output to go to the abyse. Often used when all the script wants is the return status of the command, the 2> &1 is where the error was. The shell would normally expect it to read 2>&1 interpreting it to mean that you also want the standard error to be redirected to the standard output, and they can both go to the abyse.
Especially if the comand is being run in an non-interactive shell, which it probably is.
The error is just the "space" character. Which will be seen as a field seperator.
try in a term window ...
]$ ls /dev/null
]$ ls /dev/null 2>&1
]$ ls /dev/null 2>
]$ ls /dev/null 2> &1
notice the messages.
Not sure how it is being used in the script concerned, but it will cause it to fall over at that point.
Just needs a minor edit 
jm
Code:
-|- If the system is the answer, then the question
must have been really stupid -|-
Similar Threads
-
By jkwash in forum Hardware & Booting
Replies: 1
Last Post: 05-21-2005, 12:18 PM
-
By sala94 in forum General Support
Replies: 2
Last Post: 12-21-2004, 04:20 PM
-
By Calvi Risorta in forum Hdd Install / Debian / Apt
Replies: 6
Last Post: 05-29-2004, 11:01 AM
-
By SgtRauksauff in forum Hdd Install / Debian / Apt
Replies: 7
Last Post: 05-06-2004, 12:38 AM
-
By epi in forum General Support
Replies: 1
Last Post: 01-21-2004, 02:18 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
-
Forum Rules

SK Hynix 64GB DDR5 4800MHz Server RAM 2Rx4 PC5-4800 RDIMM HMCG94AEBRA123N / 109N
$1649.00

2X16GB (32GB) Samsung M393A2G40DB1-CRC4Q DDR4 PC4-2400T ECC RDIMM Server Memory
$154.95

2 in 1 USB 3.0 Card Reader Micro TF card Reader usb adapter High Speed Cardreder
$3.99

Samsung 32GB (1x32GB) PC4-17000 (DDR4-2133) LRDIMM Memory (M386A4G40DM0-CPB0Q)
$120.00

Kingston 32GB 64GB 128GB 256GB USB 3.0 Flash Drive Thumb Memory Stick Pen lot
$285.90

Kingston 32GB 2Rx4 PC4-2400T-RB1-11 ECC REG Server Memory HP24D4R7D4MAM-32
$150.00

Samsung 96GB LPCAMM2 PC5 9600 FE1 E1 LPDDR5X CAMM2 M561K6LC3CL1-CCV DDR5 Memory
$2150.00

NMA1XXD128GPS Intel Optane 1X128GB DDR4 PC4-21300 DCPMM Persistent Server Memory
$75.00

Wholesale USB 2.0 5/10/ 100PCS 2GB 4GB 8GB 16GB 32GB 64GB Metal USB Flash Drive
$176.00

HPE 32GB 2Rx4 PC4-2933Y-R DDR4 Svr RAM P03052-091 P00924-B21 M393A4K40DB2-CVFBY
$270.00