I see no point giving a different class to each kind of card when it could just as easily be done using a class variable. Adds so much extra code and complication to a simple problem. But as a teaching example, I suppose:
hi
i need to change crontab settings as
minute,hour,day of month,month year,day of week
certain times. for that i need to go as crontab -e. i want to avoid that as its creating many problems in mysystem.
so here i m planning/trying to write a script that will update the settings in crontab... (8 Replies)
Hi
I am new to Unix and would like some assistance.
I need to edit the crontab file so that a script is set to run at 3:00 am each day.
When I telnet to the sun server and type crontab -e a black screen appears and I am unable to make any changes.
Could you advice on what is needed to... (11 Replies)
I created a file system earth in /earthpool (zpool). I mounted the file system on a directory /earth. But, when I reboot my machine it doesn't load the file systems and the zpool and zfs shows no pools available and no datasets respectively. I am using Solaris 10 running on X4500. Could you... (5 Replies)
Please help!
I have installed 5 Linux OS in the following order:
1st : OpenSUSE 11.0
2nd : Ubuntu 8.4
3rd : Ubuntu 8.10
4th : OpenSUSE 11.1
5th : Fedora 10
Here is the scenario, at the 4th installation i can still choose which OS to boot as what OpenSUSE grub displays. Now, after... (3 Replies)
Hi,
I'm reading net-snmp site, using C language and unix environment, I have manager ( do get/set command), agent and server ... I'm trying to monitor cpu, memory and disk usage and get Ip address of server and send the value back to agent, stored in variable which enable manager to gets the... (1 Reply)
Hi all,
I need to write an automated bash shell script which performs such operations:
1. Grep the header of everyline with the initial of "T" in "FILE_A"
2. Perform a for loop,
Count the numbers of comma in the line of code,
if (no. of comma < 17)
ADD the comma until 17;
... (2 Replies)
Dear Masters,
i have a problem with unix script, till now i just know about how to create header.
i want to change file below
-63395.2 72653.5
-63361.3 72696.0 ... (9 Replies)
Hi friends,
I want to edit sh file using php, i have tried different method. but its shows permission issues.
Folder path : xyz permission :0755 owner: 545 group: 0
filename : abc.sh permission :0644 owner:0 group: 0
how to edit these files using php/
i have use below codes, but... (3 Replies)
Discussion started by: sanjay833i
3 Replies
LEARN ABOUT LINUX
pcimodules
pcimodules(8) Linux PCI Utilities pcimodules(8)NAME
pcimodules - List kernel driver modules available for all currently plugged in PCI devices
SYNOPSIS
pcimodules [--classclass_id] [--classmaskmask] [--help]
DESCRIPTION
pcimodules lists all driver modules for all currently plugged in PCI devices. pcimodules should be run at boot time, and whenever a PCI
device is "hot plugged" into the system. This can be done by the following Bourne shell syntax:
for module in $(pcimodules) ; do
modprobe -s -k "$module"
done
When a PCI device is removed from the system, the Linux kernel will decrement a usage count on PCI driver module. If this count drops to
zero (i.e., there are no PCI drivers), then the modprobe -r process that is normally configured to run from cron every few minutes will
eventually remove the unneeded module.
The --class and --classmask arguments can be used to limit the search to certain classes of PCI devices. This is useful, for example, to
generate a list of ethernet card drivers to be loaded when the kernel has indicated that it is trying to resolve an unknown network inter-
face.
Modules are listed in the order in which the PCI devices are physically arranged so that the computer owner can arrange things like having
scsi device 0 be on a controller that is not alphabetically the first scsi controller.
OPTIONS --class class --classmask mask
--class and --classmask limit the search to PCI cards in particular classes. These arguments are always used together. The arguments to
--class and --classmask can be given as hexadecimal numbers by prefixing a leading "0x". Note that the classes used by pcimodules are in
"Linux" format, meaning the class value that you see with lspci would be shifted left eight bits, with the new low eight bits programming
interface ID. An examples of how to use class and classmask is provided below. --help, -h Print a help message and exit.
EXAMPLES
pcimodules
lists all modules corresponding to currently plugged in PCI devices.
pcimodules --class 0x20000 --classmask 0xffff00
lists all modules corresponding to currently plugged in ethernet PCI devices.
FILES
/lib/modules/<kernel-version>/modules.pcimap
This file is automatically generated by depmod, and used by pcimodules to determine which modules correspond to which PCI ID's.
/proc/bus/pci
An interface to PCI bus configuration space provided by the post-2.1.82 Linux kernels. Contains per-bus subdirectories with per-card
config space files and a devices file containing a list of all PCI devices.
SEE ALSO lspci(8)MAINTAINER
The Linux PCI Utilities are maintained by Martin Mares <mj@suse.cz>.
AUTHOR
pcimodules was written by Adam J. Richter <adam@yggdrasil.com>, based on public domain example code by Martin Mares <mj@suse.cz>.
COPYRIGHT
pcimodules is copyright 2000, Yggdrasil Computing, Incorporated, and may be copied under the terms and conditions of version 2 of the GNU
General Public License as published by the Free Software Foundation (Cambridge, Massachusetts, United States of America).
pciutils-3.1.7 31 January 2010 pcimodules(8)