Sponsored Content
Full Discussion: call program
Top Forums Programming call program Post 302655983 by Freaky123 on Thursday 14th of June 2012 05:46:01 AM
Old 06-14-2012
call program

I would need to call the program 'ethtool' in my C++ program, does anyone know how to do that (if its even possible)?
 

10 More Discussions You Might Find Interesting

1. Linux

How to call a proc file from *.c program?

Hi, I am new to Linux programming. As part of learning, I need to create a *.c program where we call certain /proc files (i.e. such as meminfo, version, uptime, etc...) from our program. Can anyone point me to a simple program on how one would do this (i.e. can you directly call uptime() or... (4 Replies)
Discussion started by: pat_and_cami
4 Replies

2. Shell Programming and Scripting

how to call awk in a csh Program

Hi Friends, Could you pleas help me out.. I have an awk program which works fine while running it in the command prompt. The awk program is =============== awk 'BEGIN { format="head -%d M2_Sales_N01.txt |tail -%d >M2_Sales_N01_%02d.txt\n" n=0 m=0 } { if (n==0) { tmp=$1 n=1 }... (5 Replies)
Discussion started by: bikas_jena
5 Replies

3. Shell Programming and Scripting

how to call another program

Hi, I would like to know how to call a program "cmp_size" ... where to put in progam to run it ex: program checkdisk is below, and it will call a nother problem "cmp_size" Do I just put the cmp_size program at the end of this program. Thank you very much, # check all directory for size... (3 Replies)
Discussion started by: xitrum
3 Replies

4. Shell Programming and Scripting

Call C Program From Shell Script

Hi, Could anybody please let me know how to call a C_Program from shell script. I know through command "system" we can call shell script from C program. Awaiting response. Thanks and regards, Chanakya M (4 Replies)
Discussion started by: Chanakya.m
4 Replies

5. Programming

how to call c executable inside c program??

hi guys i have only basic knowledge of c so guys plz help me ..... i want 2 call c executable which requires file name as argument and i need to modify file contents before calling that executable now my question is how can i call this c executable inside another c program with arguments ?? i... (9 Replies)
Discussion started by: zedex
9 Replies

6. Programming

A question about the system call mount in a C program

Dear all, Currently I'm working on a C program (OS = ubuntu 9.0.4)in which a USB key will be mounted and umounted for several times. I read the man page of the mount system call. I use the following test code #include <sys/mount.h> int main(int argc, char *argv) { if... (5 Replies)
Discussion started by: dariyoosh
5 Replies

7. UNIX for Dummies Questions & Answers

How to run two commands from a exec call in a c program

Hi, I have to run two commands one after another from a c program. How can i do this with exec system calls. i tried giving them as argument to execv but it is not working.please help thanks (3 Replies)
Discussion started by: suryashikha
3 Replies

8. Shell Programming and Scripting

Call a mainframe program

Is it possible to call a mainframe program in UNIX script. I am using HP-UNIX. If so can any let me know the way to do it. (1 Reply)
Discussion started by: atlantis
1 Replies

9. Shell Programming and Scripting

How to call a stored procedure from shell program?

How to call a stored procedure from shell program (1 Reply)
Discussion started by: noorm
1 Replies

10. Homework & Coursework Questions

Help with Execl system call in a C program?

Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted! 1. The problem statement, all variables and given/known data: "Your a7.c program should use printf to print a nice message. (You can decide what to say.) Then the process... (9 Replies)
Discussion started by: miniviking10
9 Replies
ETHTOOL(8)						      System Manager's Manual							ETHTOOL(8)

NAME
ethtool - Display or change ethernet card settings SYNOPSIS
ethtool ethX ethtool -h ethtool -a ethX ethtool -A ethX [autoneg on|off] [rx on|off] [tx on|off] ethtool -c ethX ethtool -C ethX [adaptive-rx on|off] [adaptive-tx on|off] [rx-usecs N] [rx-frames N] [rx-usecs-irq N] [rx-frames-irq N] [tx-usecs N] [tx- frames N] [tx-usecs-irq N] [tx-frames-irq N] [stats-block-usecs N] [pkt-rate-low N] [rx-usecs-low N] [rx-frames-low N] [tx-usecs-low N] [tx-frames-low N] [pkt-rate-high N] [rx-usecs-high N] [rx-frames-high N] [tx-usecs-high N] [tx-frames-high N] [sample-interval N] ethtool -g ethX ethtool -G ethX [rx N] [rx-mini N] [rx-jumbo N] [tx N] ethtool -i ethX ethtool -d ethX ethtool -e ethX ethtool -k ethX ethtool -K ethX [rx on|off] [tx on|off] [sg on|off] ethtool -p ethX [N] ethtool -r ethX ethtool -S ethX ethtool -t ethX [offline|online] ethtool -s ethX [speed 10|100|1000] [duplex half|full] [port tp|aui|bnc|mii] [autoneg on|off] [phyad N] [xcvr internal|external] [wol p|u|m|b|a|g|s|d...] [sopass xx:yy:zz:aa:bb:cc] [msglvl N] DESCRIPTION
ethtool is used for querying settings of an ethernet device and changing them. ethX is the name of the ethernet device to work on. OPTIONS
ethtool with a single argument specifying the device name prints current setting of the specified device. -h shows a short help message. -a queries the specified ethernet device for pause parameter information. -A change the pause parameters of the specified ethernet device. autoneg on|off Specify if pause autonegotiation is enabled. rx on|off Specify if RX pause is enabled. tx on|off Specify if TX pause is enabled. -c queries the specified ethernet device for coalescing information. -C change the coalescing settings of the specified ethernet device. -g queries the specified ethernet device for rx/tx ring parameter information. -G change the rx/tx ring parameters of the specified ethernet device. rx N Change number of ring entries for the Rx ring. rx-mini N Change number of ring entries for the Rx Mini ring. rx-jumbo N Change number of ring entries for the Rx Jumbo ring. tx N Change number of ring entries for the Tx ring. -i queries the specified ethernet device for associated driver information. -d retrieves and prints a register dump for the specified ethernet device. -e retrieves and prints an EEPROM dump for the specified ethernet device. -k queries the specified ethernet device for checksumming information. -K change the checksumming parameters of the specified ethernet device. rx on|off Specify if RX checksumming is enabled. tx on|off Specify if TX checksumming is enabled. sg on|off Specify if scatter-gather is enabled. -p initiates adapter-specific action intended to enable an operator to easily identify the adapter by sight. typically this involves blinking one or more LEDs on the specific ethernet port. N Length of time to perform phys-id, in seconds. -r restarts auto-negotiation on the specified ethernet device, if auto-negotiation is enabled. -S queries the specified ethernet device for NIC- and driver-specific statistics. -t executes adapter selftest on the specified ethernet device. Possible test modes are: offline|online defines test type: offline (default) means to perform full set of tests possibly causing normal operation interruption during the tests, online means to perform limited set of tests do not interrupting normal adapter operation. -s option allows changing some or all settings of the specified ethernet device. All following options only apply if -s was specified. speed 10|100|1000 Set speed in Mb/s. ethtool with single argument will show you the supported device speeds. duplex half|full Set full or half duplex mode. port tp|aui|bnc|mii Select device port. autoneg on|off Specify if autonegotiation is enabled. In the usual case it is, but might cause some problems with some network devices, so you can turn it off. phyad N PHY address. xcvr internal|external Select transceiver type. Currently only internal and external can be specified, in the future further types might be added. wol p|u|m|b|a|g|s|d... Set Wake-on-LAN options. Not all devices support this. The argument to this option is a string of characters specifying which options to enable. p Wake on phy activity u Wake on unicast messages m Wake on multicast messages b Wake on broadcast messages a Wake on ARP g Wake on MagicPacket(tm) s Enable SecureOn(tm) password for MagicPacket(tm) d Disable (wake on nothing). This option clears all previous options. sopass xx:yy:zz:aa:bb:cc Set the SecureOn(tm) password. The argument to this option must be 6 bytes in ethernet MAC hex format (xx:yy:zz:aa:bb:cc). msglvl N Set the driver message level. Meanings differ per driver. BUGS
Not supported (in part or whole) on all ethernet drivers. AUTHOR
ethtool was written by David Miller. Modifications by Jeff Garzik, Tim Hockin, Jakub Jelinek, Andre Majorel, Eli Kupermann. AVAILABILITY
ethtool is available over the Web on the SourceForge site at http://sourceforge.net/projects/gkernel/ Ethtool version 1.6 June 2002 ETHTOOL(8)
All times are GMT -4. The time now is 08:54 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy