8 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
hi i am having a acript for which i need to skip the execution of some lines and to continue with remaining lines for eg
script.sh
rm text
for i in *
do
.
.
.
.
.
if
then
rm
i want to skip the execution of the lines and to start with (11 Replies)
Discussion started by: rohit_shinez
11 Replies
2. Shell Programming and Scripting
Hi ,
I have a file myhost.txt which contains below,
127.0.0.1 localhost
1.17.1.5 atrpx958
11.17.10.11 atrpx958zone nsybhost
I need to append words only after "atrpx958" like 'myhost' and 'libhost' and not after atrpx958zone.
How to search the word atrpx958(which is hostname) only,... (5 Replies)
Discussion started by: gsreeni
5 Replies
3. Shell Programming and Scripting
Hi Friends,
I need help in below requirements,
1. I have to get current datetime + <mins> into a variable
2. I have to compage dates like,
A=01-JAN-2009 10:20:10
B=01-JAN-2009 10:30:00
C=<same format date as above>
I have to find whether,
1. C is less than A OR,
2. C is greater... (7 Replies)
Discussion started by: smr_rashmy
7 Replies
4. Shell Programming and Scripting
Hi,
Iam having the two files as follows:
file1:
ASQWEDFR09876543121234512
POIUYTREW09876512345676788
ZXCVBNMKS1209888888888888
file2:
ASQWEDFR09876543121234516 asdcvfgbtg@abc.com 0000000-90-1239--2008 8990----
CXADFGTU09876543121234789 asdcvfgbtg@abc.com ... (14 Replies)
Discussion started by: nivas
14 Replies
5. Shell Programming and Scripting
Hi,
I want to compare two files. Files will look like as follows:
file1:
ASDFGHJU|1234567890123456
QWERTYUI|3456789098900890
file2:
ZXCVBVNM|0987654321234567
POLKIJUYH|1234789060985478
output file should be:
ASDFGHJU|1234567890123456
QWERTYUI|3456789098900890
Thnaks in advance (6 Replies)
Discussion started by: nivas
6 Replies
6. UNIX Desktop Questions & Answers
Hi There,
Can anyone help, where i can find list of UNIX commands just for regulat day ro day operations
Thanx
MGR (1 Reply)
Discussion started by: mgoutham
1 Replies
7. Cybersecurity
what do you think the best firewall is for slakware 7 (1 Reply)
Discussion started by: shadieshad
1 Replies
8. UNIX for Dummies Questions & Answers
Hello guys!
Can say me anybody about operatios with unix, I don't to make operations, only inside in a variable, like this
#y=4
#x=2
#let z=$y-$x
#echo $z
# 2
but I can't to make mathematical operations with decimal like this
#y=3.2
#x=1.5
#let z=$y-$x
#echo $z
# 3
this... (2 Replies)
Discussion started by: cesar720213
2 Replies
USB_SET_INTERFACE(9) USB Core APIs USB_SET_INTERFACE(9)
NAME
usb_set_interface - Makes a particular alternate setting be current
SYNOPSIS
int usb_set_interface(struct usb_device * dev, int interface, int alternate);
ARGUMENTS
dev
the device whose interface is being updated
interface
the interface being updated
alternate
the setting being chosen.
CONTEXT
!in_interrupt ()
DESCRIPTION
This is used to enable data transfers on interfaces that may not be enabled by default. Not all devices support such configurability. Only
the driver bound to an interface may change its setting.
Within any given configuration, each interface may have several alternative settings. These are often used to control levels of bandwidth
consumption. For example, the default setting for a high speed interrupt endpoint may not send more than 64 bytes per microframe, while
interrupt transfers of up to 3KBytes per microframe are legal. Also, isochronous endpoints may never be part of an interface's default
setting. To access such bandwidth, alternate interface settings must be made current.
Note that in the Linux USB subsystem, bandwidth associated with an endpoint in a given alternate setting is not reserved until an URB is
submitted that needs that bandwidth. Some other operating systems allocate bandwidth early, when a configuration is chosen.
This call is synchronous, and may not be used in an interrupt context. Also, drivers must not change altsettings while urbs are scheduled
for endpoints in that interface; all such urbs must first be completed (perhaps forced by unlinking).
RETURN
Zero on success, or else the status code returned by the underlying usb_control_msg call.
COPYRIGHT
Kernel Hackers Manual 3.10 June 2014 USB_SET_INTERFACE(9)