Search Results

Search: Posts Made By: h0ujun
3,804
Posted By h0ujun
hmmm ethtool -e eth0 returns this kind of log: ...
hmmm ethtool -e eth0 returns this kind of log:


Offset Values
------ ------
0x0000 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
0x0010 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ...
3,804
Posted By h0ujun
Get the eeprom dump using PCI bus address
Hi,

I need to get an output that is the same as "ethtool -e eth0"

But I need to use another method that does not use the eth port ID (ethX).
Does anyone know of any method?

Thanks!!
4,142
Posted By h0ujun
Modprobe error message
Hi anyone knows what this error message means and how to fix it?

igb 0000:01:00.0: enabling device (0000 -> 0002)
igb 0000:01:00.0: PCI INT D -> GSI 16 (level, low) -> IRQ 16
igb 0000:01:00.0:...
Forum: Linux 11-29-2012
4,024
Posted By h0ujun
Create a bootable PXE image from build kernel source code
Hi,

Can i just ask how I can create a bootable PXE image from the built kernel source.

What files do I need to get?

Thanks!
2,964
Posted By h0ujun
Adding SDK Build on Kernel Source Build
Hi,

So I downloaded this kernel source and was able to build it successfully.
But I want to add this SDK source code inside, can anyone help me how to do this? Note that the SDK source can be...
14,930
Posted By h0ujun
TCL expect out string with multiple lines
Hello,

I will be sending this command to a specific COMID:
exp_send-i $COMID "fdisk -l | grep Disk | awk '{print $2}'"

The command will produce this output:
/dev/sda
/dev/sdb
etc..

the...
Forum: Programming 07-19-2012
1,957
Posted By h0ujun
hmm nice, ok i'll try :) thanks!
hmm nice, ok i'll try :)
thanks!
Forum: Programming 07-18-2012
1,957
Posted By h0ujun
creating an application with gui in linux
hi,

so I am familiar with visual studio for windows, I was wondering if there's that kind of IDE for linux that I can use to make an application...

thanks!
1,622
Posted By h0ujun
how to make pxe file bootable
hi,

i recently built a pxe file the problem is I don't know how to add it in the pxe server.

I was wondering if you guys know how to add my pxe file in the pxe server so that when I run the...
16,103
Posted By h0ujun
hmmm i need to compare the number so I cannot use...
hmmm i need to compare the number so I cannot use

if [ "${b}" = "" ] ; then
16,103
Posted By h0ujun
How to handle Numerical result out of range?
i have this code:


a=hello999999999999999999999999999999999999999999999999999999999
b=`echo ${a} | tr -d '[:alpha:]'`
if [ ${b} -le 0 ] ; then
echo "Zero"
fi



but when I execute...
5,880
Posted By h0ujun
Hmmm, but I can still test using iozone? well...
Hmmm, but I can still test using iozone? well that's the required tool so I don't have any choice...the size is 128GB and I just need to know if the results I get is correct...

what I do is mount...
5,880
Posted By h0ujun
Using iozone for testing solid state drives
hi all,

anyone knows how to test ssd using iozon, I am currently running iozone and I don't know if it is testing the ssd or just the RAM...

anyone knows a good tutorial (like a step-by-step)?...
5,243
Posted By h0ujun
hmmm but you check it manually, I was wondering...
hmmm but you check it manually, I was wondering if I can get the answer by script...

something like this....


eth=eth0
if eth correspond to nw_card1
echo "${eth} is port of nw card 1"...
5,243
Posted By h0ujun
command to match ethernet port to network card
hi I juts want to know if there is a command that checks if an ethernet port corresponds to a network card.

ex. I have 3 network cards, one is two ports, and the other two 8 ports.

How do I...
Forum: Fedora 03-04-2012
2,709
Posted By h0ujun
VNC Client/Server has different display
Hi,

I set-up my VNC Server on a Fedora 13 and I have a client on windows.
I can access the Fedora PC but when I move the mouse and click on folders, I do not see the Fedora Desktop updating (I...
2,772
Posted By h0ujun
Question on VNC
Hi,

I set-up my VNC Server on a Fedora 13 and I have a client on windows.
I can access the Fedora PC but when I move the mouse and click on folders, I do not see the Fedora Desktop updating (I...
10,597
Posted By h0ujun
Word Count (wc -w) returns a non-integer value
Hi,

Why is it I cannot compare the return value of 'wc -w' to an integer?
Please see code below:


a="x y z"
b=`echo ${a} | wc -w`

if [ ${b} -lt 4 ] ; then
echo "less than 4"
fi

...
33,185
Posted By h0ujun
check if a given string is a file or directory
hi i want to know how to do this

if the given is /tmp/ and it is a valid directory then it will echo directory

if the given is /tmp/file.txt and is a valid file then it will echo file..
...
21,650
Posted By h0ujun
check if contents of an array is empty
hi,

I have this array


a=("" "" "")


Is there a command that I can use to check if all members of the are empty?
I really don't like to use for or while loop.

thanks!

----------...
5,375
Posted By h0ujun
nice, just need to double the '[' and ']' and no...
nice, just need to double the '[' and ']' and no need for the 'x'

thanks!
5,375
Posted By h0ujun
Too many arguments
hi I have this code


a="a b c"
set -- $a
if [ "$@" = "" ] ; then
echo empty
fi


why is it line 3 reports "test: [: too many arguments"? :wall:

Thanks!
4,347
Posted By h0ujun
Thanks I'll use this one.. :)
Thanks I'll use this one.. :)
4,347
Posted By h0ujun
add only one space after each word in a string
hi,

I have this string:

a="abc def ghi jkl mno pqr"


how can I display this to:
abc def ghi jkl mno pqr # only one space each
1,907
Posted By h0ujun
hmm ok.. but upon checking I think I cannot use...
hmm ok..
but upon checking I think I cannot use it I don't have a '-<letter> option for the
names...and the names can be either before or after the '-a' option..
Showing results 1 to 25 of 37

 
All times are GMT -4. The time now is 09:17 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy