09-09-2006
-f or --fail used twice will turn off the feature.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I am using the shell script file to send mail by "mailx". I do this by cron job, there is no error found. But it is fail, any suggest to me?
How can I resend it automatically? Is there any resend logic by using the mailx? (3 Replies)
Discussion started by: adela
3 Replies
2. Shell Programming and Scripting
Hi all,
I am parsing command line options using getopts.
The problem is that mandatory argument options following ":" is taking next option as argument if it is not followed by any argument.
Below is the script:
while getopts :hd:t:s:l:p:f: opt
do
case "$opt" in
-h|-\?)... (2 Replies)
Discussion started by: gurukottur
2 Replies
3. Shell Programming and Scripting
I've a lot of file with an hyphen on filename, so I use rename for remove him ad substitute with an underscore but it fails
$ rename 's/\-/\_/' *
Unknown option: _
Unknown option: i
Unknown option: r
Unknown option: e
Unknown option: e
Unknown option: _
Unknown option: g
Unknown... (12 Replies)
Discussion started by: cv313x
12 Replies
4. Shell Programming and Scripting
Hi
Am having 2 files.
I have one data file.
before inserting in to the table am taking cout of the data file and store as data 1.
After insert in to the table and am taking the count from the table and store as data2.
If i try to compare those values
If
then
echo "data match"... (5 Replies)
Discussion started by: bobprabhu
5 Replies
5. Shell Programming and Scripting
To find all the files in your home directory that have been edited in some way since the last tar file, use this command:
find . -newer backup.tar.gz
Is anyone familiar with an older solution?
looking to identify files older then 15mins across several directories.
thanks,
manny (2 Replies)
Discussion started by: mr_manny
2 Replies
6. AIX
This is a LPAR that i created earlier.
I want to set an IP address to en0 but it failed.
Command: failed stdout: yes stderr: no
Before command completion, additional instructions may appear below.
en0
devdbm01
inet0 changed
Method error (/usr/lib/methods/chgif):
... (8 Replies)
Discussion started by: wingcross
8 Replies
7. Shell Programming and Scripting
Hello,
When I run this UNIX code without the -t option it gives me the desired results.
The code keeps the record with the greatest datetime based on the key columns.
I sort it first then sort it again with the -u option, that's it.
I need to have a variable to specify an ASCII character... (2 Replies)
Discussion started by: script_op2a
2 Replies
8. Shell Programming and Scripting
Hello,
I am stuck... i dunno why does my test fail... any idea ?
#!/bin/bash
dos2unix info.txt
Distor=Distributeur
LINE=$(cat info.txt | sed -n 1p)
echo $LINE
echo $Distor
echo ""
echo "123-$LINE-123"
echo "123-$Distor-123"
if ; then
LINE2=$(cat info.txt | sed -n 2p)
echo $Distor... (14 Replies)
Discussion started by: patx
14 Replies
9. UNIX for Advanced & Expert Users
Hi - Please help me to understand the Veritas Cluster fail-over capability.
We configured oracle database file system on veritas cluster file system and it is automatically failing-over from node 1 to node 2.
Does Veritas cluster softward have any option to fail-back from node 2 to node 1... (6 Replies)
Discussion started by: Mansoor8810
6 Replies
10. Solaris
Hi,
I installed some packages required by an app built with python.
But when I try python setup.py install, I get the following error:
/opt/csw/lib/gcc/sparc-sun-solaris2.10/5.2.0/../../../../sparc-sun-solaris2.10/bin/as: unrecognized option `-m32'
Could anyone tell me what's wrong... (4 Replies)
Discussion started by: Kimkun
4 Replies
UHID(4) BSD Kernel Interfaces Manual UHID(4)
NAME
uhid -- USB generic HID support
SYNOPSIS
To compile this driver into the kernel, place the following line in your kernel configuration file:
device uhid
Alternatively, to load the driver as a module at boot time, place the following line in loader.conf(5):
uhid_load="YES"
DESCRIPTION
The uhid driver provides support for all HID (Human Interface Device) interfaces in USB devices that do not have a special driver.
The device handles the following ioctl(2) calls:
USB_GET_REPORT_ID (int)
Get the report identifier used by this HID report.
USB_GET_REPORT_DESC (struct usb_ctl_report_desc)
Get the HID report descriptor. Using this descriptor the exact layout and meaning of data to/from the device can be found. The
report descriptor is delivered without any processing.
struct usb_ctl_report_desc {
int ucrd_size;
u_char ucrd_data[1024]; /* filled data size will vary */
};
USB_SET_IMMED (int)
Sets the device in a mode where each read(2) will return the current value of the input report. Normally a read(2) will only return
the data that the device reports on its interrupt pipe. This call may fail if the device does not support this feature.
USB_GET_REPORT (struct usb_ctl_report)
Get a report from the device without waiting for data on the interrupt pipe. The report field indicates which report is requested.
It should be UHID_INPUT_REPORT, UHID_OUTPUT_REPORT, or UHID_FEATURE_REPORT. This call may fail if the device does not support this
feature.
struct usb_ctl_report {
int ucr_report;
u_char ucr_data[1024]; /* used data size will vary */
};
USB_SET_REPORT (struct usb_ctl_report)
Set a report in the device. The report field indicates which report is to be set. It should be UHID_INPUT_REPORT,
UHID_OUTPUT_REPORT, or UHID_FEATURE_REPORT. This call may fail if the device does not support this feature.
Use read(2) to get data from the device. Data should be read in chunks of the size prescribed by the report descriptor.
Use write(2) to send data to the device. Data should be written in chunks of the size prescribed by the report descriptor.
FILES
/dev/uhid?
SEE ALSO
usbhidctl(1), usb(4)
HISTORY
The uhid driver appeared in NetBSD 1.4. This manual page was adopted from NetBSD by Tom Rhodes <trhodes@FreeBSD.org> in April 2002.
BSD
November 22, 2006 BSD