-
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

Original Vintage Old Style STANDARD Black CD Jewel Case (Heavy Duty) 90g Lot
$316.95

Vintage GTE XT300 Action Station Terminal 1984 - Tested Works Orig. Box & Foam
$889.00

Vintage Tandy Computer Varsity Scripsit Word Processing 3.5 & 5.25 Disks SEALED
$29.95

Vintage Sanyo CDR-H94SMV Internal SCSI CD-ROM Drive. 1994 NIB
$70.00

Rare Vintage IBM 3604 Model 2 Keyboard Display Terminal, Beam-Spring, Blue Caps
$1749.00

Apple IIc Computer and Monitor Vintage 1980s Working
$499.00

Vintage Everex EV1812 Intel 80286-10 640K Motherboard - Works
$160.00

Vintage Siemens 286-16 Motherboard - Works
$140.00

Vintage Super Rare Exxon Office Supplies Keyboard Mechanical Untested* 1980-85
$499.99

VINTAGE COLLECTIBLE Comp USA Maxtor 20 GB 3.5 Inch EIDE Hard Drive NEW SEALED
$500.00