Sponsored Content
Top Forums Shell Programming and Scripting Syntax error using do command Post 302422634 by Scott on Wednesday 19th of May 2010 03:08:32 AM
Old 05-19-2010
Why do you have all those spaces?

Code:
while IFS=: read printer drv IP port
do
  echo -e "$printer: \n \
  drv: \t $drv \n \
  IP: \t $IP \n \
  port: \t $port \n"
done < diffs.txt

works for me
 

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

until command syntax error

Hi there. I spent too much time away from Unix, now I can't remember how to issue a simple until command in ksh :mad: could you tell me what is wrong with the following code sample: export v = "1" until do echo 'executing repeat_until' v = `expr $v + 1` done I've... (3 Replies)
Discussion started by: 435 Gavea
3 Replies

2. Shell Programming and Scripting

if else command syntax error

can anyone tell me what`s going wrong with my if else statement? set exam=(AAA BBB CCC) foreach ii ($exam) if ($ii -eq "AAA") do echo "PASS" else echo "FAILED" done end (4 Replies)
Discussion started by: c0384
4 Replies

3. UNIX for Dummies Questions & Answers

awk Shell Script error : "Syntax Error : `Split' unexpected

hi there i write one awk script file in shell programing the code is related to dd/mm/yy to month, day year format but i get an error please can anybody help me out in this problem ?????? i give my code here including error awk ` # date-month -- convert mm/dd/yy to month day,... (2 Replies)
Discussion started by: Herry
2 Replies

4. AIX

nim mksysb error :/usr/bin/savevg[33]: 1016,07: syntax error

-------------------------------------------------------------------------------- Hello, help me please. I am trying to create a mksysb bakup using nim. I am geting this error, how to correct it ? : Command : failed stdout: yes stderr: no... (9 Replies)
Discussion started by: astjen
9 Replies

5. Shell Programming and Scripting

bash syntax error: command not found

I am trying to create a shell that asks the user to enter their name, and compare it to my own by saying we have the same name or saying my name and that they have a nice name too. Here is my script... #!/bin/bash-x echo "Enter your name". read name if then echo "My name is Adam too"... (1 Reply)
Discussion started by: amaxey45
1 Replies

6. Shell Programming and Scripting

Syntax error piping to bc on command line - works when assigned to var

I have a script which outputs some timing data a line at a time. There are approx. 10 lines echoed, each line looks something like this: 0.741 http://checkip.dyndns.org 94.170.119.226Since I needed to add all the values in the first column, I piped the output to grep, matching and printing the... (7 Replies)
Discussion started by: gencon
7 Replies

7. Shell Programming and Scripting

Getting syntax error while running awk command

Hello Gurus, I am firing the below command : df -g | grep -v var| awk '{ (if $4 > 90% ) print "Filesystem", $NF,"over sized";}' But I am getting the below error:- ====== syntax error The source line is 1. The error context is {if ($4 > >>> 90%) <<< awk: The... (9 Replies)
Discussion started by: pokhraj_d
9 Replies

8. Shell Programming and Scripting

Syntax error with ps command

i am trying the blow command in vain on Linux Terminal. kill -9 `ps -eaf | grep weblogic.NodeManager | grep wls103 | awk '{print $2}'` kill: usage: kill pid | jobspec ... or kill -l kill -9 $(ps -eaf | grep weblogic.NodeManager | grep wls103| awk '{print $2}') kill: usage: kill pid |... (7 Replies)
Discussion started by: mohtashims
7 Replies

9. UNIX for Advanced & Expert Users

Command syntax error in cron

SCO OSR 507, user's shell is old Bourne sh The same command is OK when run using now, but fails when run in cron, see below: 1) using now, see how it worked and I see resulting DT=2018 in the mail $ at now { dt=`/usr/gnu/bin/date '+%Y'`; echo "DT=$dt"; } job 1522867418.a-6605:0 at Wed... (2 Replies)
Discussion started by: migurus
2 Replies
usba(7D)																  usba(7D)

NAME
usba, usb - Solaris USB Architecture (USBA) USB provides a low-cost means for attaching peripheral devices, including mass-storage devices, keyboards, mice, and printers, to a system. For complete information on USB, go to the USB website at http://www.usb.org. USBA supports 126 hot-pluggable USB devices per USB bus. The maximum data transfer rate is 1.5 Mbits (low speed USB 1.x) or 12 Mbits (full speed USB 1.x) or 480 MBits (high speed USB 2.0) Mbits per second (Mbps). USBA adheres to the Universal Serial Bus 2.0 specification and provides a transport layer abstraction to USB client drivers. FILES
Listed below are drivers and modules which either utilize or are utilized by USBA. Drivers in /kernel/drv are 32 bit drivers ( only). Driv- ers in /kernel/drv/sparcv9 or /kernel/drv/amd64 are 64 bit drivers. +------------------------------------+----------------------------------+ | CLIENT DRIVER | FUNCTION/DEVICE | +------------------------------------+----------------------------------+ |/kernel/drv/[sparcv9|amd64/]hid | HID class | +------------------------------------+----------------------------------+ |/kernel/drv/[sparcv9|amd64/]hubd | hub class | +------------------------------------+----------------------------------+ |/ker- | mass storage class | |nel/drv/[sparcv9|amd64/]scsa2usb | | +------------------------------------+----------------------------------+ |/kernel/drv/[sparcv9|amd64/]usbprn | printer class | +------------------------------------+----------------------------------+ |/kernel/drv/[sparcv9|amd64/]usb_as | audio streaming class | +------------------------------------+----------------------------------+ |/kernel/drv/[sparcv9|amd64/]usb_ac | audio control class | +------------------------------------+----------------------------------+ |/kernel/drv/[sparcv9|amd64/]usb_mid | multi-interface device | +------------------------------------+----------------------------------+ |/kernel/drv/[sparcv9|amd64/]usb- | Edgeport USB to serial port | |ser_edge | | +------------------------------------+----------------------------------+ |/kernel/drv/[sparcv9|amd64/]ugen | generic USB driver | +------------------------------------+----------------------------------+ |/kernel/drv/[sparcv9|amd64/]ohci | open host controller driver | +------------------------------------+----------------------------------+ |/kernel/drv/[sparcv9|amd64/]uhci | universal host controller driver | +------------------------------------+----------------------------------+ |/kernel/drv/[sparcv9|amd64/]ehci | enhanced host controller driver | +------------------------------------+----------------------------------+ +--------------------------------+-----------------------------+ | CLIENT STREAMS MODULES | FUNCTION/DEVICE | +--------------------------------+-----------------------------+ |/kernel/strmod/[sparcv9/]usbkbm | Keyboard | +--------------------------------+-----------------------------+ |/kernel/strmod/[sparcv9/]usbms | Mouse | +--------------------------------+-----------------------------+ |/kernel/strmod/[sparcv9/]usb_ah | audio HID | +--------------------------------+-----------------------------+ +------------------------------------------+----------------+ | HOST CONTROLLER INTERFACE DRIVERS | DEVICE | +------------------------------------------+----------------+ |/kernel/drv/[sparcv9/]ehci | Enhanced HCI | +------------------------------------------+----------------+ |/kernel/drv/[sparcv9/]ohci | Open HCI | +------------------------------------------+----------------+ |/kernel/drv/[sparcv9/]uhci | Universal HCI | +------------------------------------------+----------------+ See attributes(5) for a description of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Architecture |PCI-based systems | +-----------------------------+-----------------------------+ |Availability |SUNWusb | +-----------------------------+-----------------------------+ cfgadm_usb(1M), attributes(5), ehci(7D), hid(7D), hubd(7D), ohci(7D), scsa2usb(7D), uhci(7D), usb_ac(7D), usb_as(7D), usb_mid(7D), usbprn(7D), usbser_edge(7D), ugen(7D), virtualkm(7D) Universal Serial Bus Specification 2.0. System Administration Guide: Basic Administration http://www.sun.com/io NOTES
Booting from USB mass-storage devices is not supported. The messages described below may appear on the system console as well as being logged. All messages are formatted in the following manner: WARNING: Error message... No driver found for device <device_name> (interface <number> node name=<node_name>) The installed Solaris software does not contain a supported driver for this hardware. <number> is the interface number. <name> is either the device path name or the device name. Draining callbacks timed out! An internal error occured. Please reboot your system. If this problem persists, contact your system vendor. 27 June 2005 usba(7D)
All times are GMT -4. The time now is 10:01 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy