Search Results

Search: Posts Made By: alex889
Forum: Programming 01-14-2010
5,539
Posted By alex889
Changing STDOUT during runtime
Hi,
Currently my STDOUT is configured as tty0,
Is there a way to change it during runtime?
I need to use this serial for other external device

Thanks,
Alex
Forum: Programming 07-12-2009
10,017
Posted By alex889
Thanks, but the line i used is: ethtool -s...
Thanks,
but the line i used is:
ethtool -s eth0 speed 10 duplex full autoneg off

but i see it only changes
Auto-negotiation: off
but it leaves
Advertised auto-negotiation: Yes
Forum: Programming 07-08-2009
10,017
Posted By alex889
Thanks, but Can i turn it off using ethtool?
Thanks, but
Can i turn it off using ethtool?
Forum: Programming 07-08-2009
10,017
Posted By alex889
ethtool problem
Hi,
I'm using ethtool to change network settings:
Just for the experiment, i want to change speed to 10, instead of 100,
I type:
ethtool -s eth0 speed 10 duplex full autoneg off

and to view...
Forum: Programming 05-31-2009
4,442
Posted By alex889
the output of the command is the PID, but the...
the output of the command is the PID,
but the return value - which is what i'm getting is 0 or 1 or 2 or 3
according to the man
pgrep(1) (http://www.tin.org/bin/man.cgi?section=1&topic=pgrep)
Forum: Programming 05-31-2009
4,442
Posted By alex889
pgrep returns 256
Hi Everyone,
I have a strange behaviour
In my c program i use this line:
int retval = system("pgrep encoder");
while i expect retval to contain 0,1,2,3
i get 256.
did i do something wrong?
...
Forum: Programming 05-03-2009
34,326
Posted By alex889
How to capturs system() output
Hi,
In my c program, i call the system("pgrep -c thttpd");
the return value is
//-- 0 - One or more processes matched the criteria.
//-- 1 - No process matched the criteria
but the output on...
Showing results 1 to 7 of 7

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