well, your question has given me the answer as i used set -x to enable echo now, and the command is being executed as
So maybe i can use | to combine both commands into one line?
As per the man page, pstat_getdisk() call returns the number of instances, which could be 0 upon successful completion, otherwise a value of -1 is returned.
Please have a look at this sample program ->
#include <stdio.h>
#include <sys/pstat.h>
int main()
{
int j = 0, ret;
struct... (2 Replies)
Hi
I m new to perl. I m trying to write a perl script that calls a bash script; does anyone have a script already that they can provide or help me out? Thanks a lot. (2 Replies)
I'm trying to write a script that moves data that's older than 2 weeks to a different place.
It works well, EXCEPT, that when the script hits a file within a directory inside the working directory, it will move it to the root of the destination directory instead of putting it in the correct... (1 Reply)
Hi all,
I need help figuring out why my script won't work when envoked from web interface. First off, I'm fairly new to Linux and Shell scripting so, my apologies for being ignorant!
So I have a python script that I envoke through a web interface. This script envokes my shell script and... (8 Replies)
Hi All,
I have a script that I wrote on a bash shell, I use it to sort files from a directory into various other directories. I have an variable set, which is an array of strings, I then check each file against the array and if it is in there the script sorts it into the correct folder.
But... (5 Replies)
Hi,
I am trying to run a python script embedded in bash script. But is throwing me an error. Please help.
Script:
#!/bin/bash
nohup /usr/bin/python /opt/web/http.py &
Error:
/usr/bin/python: can't open file '/opt/web/http.py': No such file or directory
Please help me on this. (6 Replies)
I'm attempting to write a bash script that will create a network between virtual machines. It accepts three arguments: an RSpec that describes the network topology, and two list of machines (servers and clients).
I have a (working) Perl script that I want to call. This Perl script takes an RSpec... (6 Replies)
Hi Team,
I have to execute a task from my local machine, where i keep my .expect,.sh, .bash and .python scripts .Task are coded in the script and has to be executed at remote machine.
for that i used following task
.....
SCRIPT 1:
cat shell_check.sh
read value
if
then
expect... (3 Replies)
Hi everyone, first time visitor to these forums here.
Keeping a long story short I've been attempting to learn how to code in bash. I have VERY little previous experience with coding languages besides simply copying and pasting batch scripts for Windows. So, with that in mind I've followed a... (4 Replies)
I have a bash shell script, within it i am using the below two commands . its failing right on scl enable command itself.
if i run it by itself without a shell, it works fine.
by default it is using pythin version 2.6 something. i want to use 3.4 version for that reason with in the shell... (3 Replies)
Discussion started by: cplusplus1
3 Replies
LEARN ABOUT OSX
lsusb
lsusb(8) Linux USB Utilities lsusb(8)NAME
lsusb - list USB devices
SYNOPSIS
lsusb [ options ]
DESCRIPTION
lsusb is a utility for displaying information about USB buses in the system and the devices connected to them.
OPTIONS -v, --verbose
Tells lsusb to be verbose and display detailed information about the devices shown. This includes configuration descriptors for the
device's current speed. Class descriptors will be shown, when available, for USB device classes including hub, audio, HID, communi-
cations, and chipcard.
-s [[bus]:][devnum]
Show only devices in specified bus and/or devnum. Both ID's are given in decimal and may be omitted.
-d [vendor]:[product]
Show only devices with the specified vendor and product ID. Both ID's are given in hexadecimal.
-D device
Do not scan the /dev/bus/usb directory, instead display only information about the device whose device file is given. The device
file should be something like /dev/bus/usb/001/001. This option displays detailed information like the v option; you must be root
to do this.
-t Tells lsusb to dump the physical USB device hierarchy as a tree. This overrides the v option.
-V, --version
Print version information on standard output, then exit successfully.
RETURN VALUE
If the specified device is not found, a non-zero exit code is returned.
FILES
/var/lib/usbutils/usb.ids
A list of all known USB ID's (vendors, products, classes, subclasses and protocols).
SEE ALSO lspci(8), usbview(8).
AUTHOR
Thomas Sailer, <sailer@ife.ee.ethz.ch>.
usbutils-007 6 May 2009 lsusb(8)